Skip to content
Jim Tremblay edited this page Nov 19, 2016 · 2 revisions

Home

nOS_Init

Definition

nOS_Error nOS_Init (void);

Description

Initialize kernel and system threads enabled by the configuration. It should be called as soon as possible in your application.

Return

Return Description
NOS_OK Kernel initialized successfully.
NOS_E_INIT Kernel already initialized.

Notes

  1. No call to other functions from the nOS API should be done before calling this function.

Example

#include "nOS.h"

void main(void)
{
    disable_interrupts();

    nOS_Init();
    // Add your specific init here

    // ...
}
Clone this wiki locally