-
Notifications
You must be signed in to change notification settings - Fork 47
nOS_Init
Jim Tremblay edited this page Nov 19, 2016
·
2 revisions
nOS_Error nOS_Init (void);Initialize kernel and system threads enabled by the configuration. It should be called as soon as possible in your application.
| Return | Description |
|---|---|
| NOS_OK | Kernel initialized successfully. |
| NOS_E_INIT | Kernel already initialized. |
- No call to other functions from the nOS API should be done before calling this function.
#include "nOS.h"
void main(void)
{
disable_interrupts();
nOS_Init();
// Add your specific init here
// ...
}