Nil RTOS
Functions | Variables
nil.c File Reference

Nil RTOS main source file. More...

#include "nil.h"
Include dependency graph for nil.c:

Functions

msg_t nilSchGoSleepTimeoutS (tstate_t newstate, systime_t timeout)
 Puts the current thread to sleep into the specified state with timeout specification. More...
 
thread_ref_t nilSchReadyI (thread_ref_t tr, msg_t msg)
 Makes the specified thread ready for execution. More...
 
void nilSchRescheduleS ()
 Reschedules. More...
 
void nilSemReset (semaphore_t *sp, cnt_t n)
 Performs a reset operation on the semaphore. More...
 
void nilSemResetI (semaphore_t *sp, cnt_t n)
 Performs a reset operation on the semaphore. More...
 
void nilSemSignal (semaphore_t *sp)
 Performs a signal operation on a semaphore. More...
 
void nilSemSignalI (semaphore_t *sp)
 Performs a signal operation on a semaphore. More...
 
msg_t nilSemWaitTimeout (semaphore_t *sp, systime_t timeout)
 Performs a wait operation on a semaphore with timeout specification. More...
 
msg_t nilSemWaitTimeoutS (semaphore_t *sp, systime_t timeout)
 Performs a wait operation on a semaphore with timeout specification. More...
 
void nilSysInit (void)
 Initializes the kernel. More...
 
void nilSysTimerHandlerI (void)
 Time management handler. More...
 
void nilThdResumeI (thread_ref_t *trp, msg_t msg)
 Wakes up a thread waiting on a thread reference object. More...
 
void nilThdSleep (systime_t time)
 Suspends the invoking thread for the specified time. More...
 
void nilThdSleepUntil (systime_t time)
 Suspends the invoking thread until the system time arrives to the specified value. More...
 
msg_t nilThdSuspendTimeoutS (thread_ref_t *trp, systime_t timeout)
 Sends the current thread sleeping and sets a reference variable. More...
 
systime_t nilTimeNow (void)
 Current system time. More...
 
bool nilTimeNowIsWithin (systime_t start, systime_t end)
 Checks if the current system time is within the specified time window. More...
 

Variables

nil_system_t nil
 System variables.
 

Detailed Description

Nil RTOS main source file.