Nil RTOS
Macros | Functions
NilRTOS.h File Reference

Nil RTOS Arduino library header file. More...

#include "nil.h"
Include dependency graph for NilRTOS.h:
This graph shows which files directly or indirectly include this file:

Macros

#define NIL_RTOS_VERSION   20140816
 
#define nilIsIdleThread()   (nil.current == nil.idlep)
 Returns true if current thread is the idle thread.
 
#define nilSemFastSignalI(sp)   ((sp)->cnt++)
 Increases the semaphore counter. More...
 
#define nilSemFastWaitI(sp)   ((sp)->cnt--)
 Decreases the semaphore counter. More...
 
#define nilSemGetCounterI(sp)   ((sp)->cnt)
 Returns the semaphore counter current value. More...
 
#define nilThdDelayMilliseconds(msec)   nilThdDelay(MS2ST(msec))
 Delays the invoking thread for the specified number of milliseconds. More...
 
#define SEMAPHORE_DECL(name, n)   semaphore_t name = {n}
 Static semaphore initializer. More...
 

Functions

void boardInit ()
 
cnt_t nilSemGetCounter (semaphore_t *sp)
 Returns the semaphore counter current value. More...
 
bool nilSysBegin ()
 
bool nilSysBeginNoFill ()
 
void nilThdDelay (systime_t time)
 Delay the invoking thread for the specified time. More...
 
void nilThdDelayUntil (systime_t time)
 Delay the invoking thread until the system time reaches to the specified value. More...
 
size_t nilUnusedHeapIdle ()
 
size_t nilUnusedStack (uint8_t nt)
 

Detailed Description

Nil RTOS Arduino library header file.