Nil RTOS
Macros
Config

Macros

#define NIL_CFG_ENABLE_ASSERTS   FALSE
 System assertions.
 
#define NIL_CFG_FREQUENCY   (F_CPU/16384L)
 System tick frequency.
 
#define NIL_CFG_IDLE_ENTER_HOOK()
 Idle thread enter hook. More...
 
#define NIL_CFG_IDLE_LEAVE_HOOK()
 Idle thread leave hook. More...
 
#define NIL_CFG_NUM_THREADS   2
 Number of user threads in the application. More...
 
#define NIL_CFG_THREAD_EXT_FIELDS   /* Add threads custom fields here.*/
 Threads descriptor structure extension. More...
 
#define NIL_CFG_THREAD_EXT_INIT_HOOK(tr)
 Threads initialization hook.
 
#define NIL_CFG_TIMEDELTA   0
 Time delta constant for the tick-less mode. More...
 
#define WHG_FIX   TRUE
 Problem fixes.
 
#define WHG_MOD   TRUE
 Use mods for Arduino library.
 

Detailed Description

Kernel related settings and hooks.

Macro Definition Documentation

#define NIL_CFG_IDLE_ENTER_HOOK ( )
Value:
{ \
}

Idle thread enter hook.

Note
This hook is invoked within a critical zone, no OS functions should be invoked from here.
This macro can be used to activate a power saving mode.
#define NIL_CFG_IDLE_LEAVE_HOOK ( )
Value:
{ \
}

Idle thread leave hook.

Note
This hook is invoked within a critical zone, no OS functions should be invoked from here.
This macro can be used to deactivate a power saving mode.
#define NIL_CFG_NUM_THREADS   2

Number of user threads in the application.

Note
This number is not inclusive of the idle thread which is Implicitly handled.
#define NIL_CFG_THREAD_EXT_FIELDS   /* Add threads custom fields here.*/

Threads descriptor structure extension.

User fields added to the end of the thread_t structure.

#define NIL_CFG_TIMEDELTA   0

Time delta constant for the tick-less mode.

Note
If this value is zero then the system uses the classic periodic tick. This value represents the minimum number of ticks that is safe to specify in a timeout directive. The value one is not valid, timeouts are rounder up to this value.