ChibiOS
21.6.0
|
Nil RTOS main source file. More...
#include "ch.h"
Go to the source code of this file.
Functions | |
thread_t * | nil_find_thread (tstate_t state, void *p) |
Retrieves the highest priority thread in the specified state and associated to the specified object. More... | |
cnt_t | nil_ready_all (void *p, cnt_t cnt, msg_t msg) |
Puts in ready state all thread matching the specified status and associated object. More... | |
void | __dbg_check_disable (void) |
Guard code for chSysDisable() . More... | |
void | __dbg_check_suspend (void) |
Guard code for chSysSuspend() . More... | |
void | __dbg_check_enable (void) |
Guard code for chSysEnable() . More... | |
void | __dbg_check_lock (void) |
Guard code for chSysLock() . More... | |
void | __dbg_check_unlock (void) |
Guard code for chSysUnlock() . More... | |
void | __dbg_check_lock_from_isr (void) |
Guard code for chSysLockFromIsr() . More... | |
void | __dbg_check_unlock_from_isr (void) |
Guard code for chSysUnlockFromIsr() . More... | |
void | __dbg_check_enter_isr (void) |
Guard code for CH_IRQ_PROLOGUE() . More... | |
void | __dbg_check_leave_isr (void) |
Guard code for CH_IRQ_EPILOGUE() . More... | |
void | chDbgCheckClassI (void) |
I-class functions context check. More... | |
void | chDbgCheckClassS (void) |
S-class functions context check. More... | |
void | chSysInit (void) |
Initializes the kernel. More... | |
void | chSysHalt (const char *reason) |
Halts the system. More... | |
void | chSysTimerHandlerI (void) |
Time management handler. More... | |
void | chSysUnconditionalLock (void) |
Unconditionally enters the kernel lock state. More... | |
void | chSysUnconditionalUnlock (void) |
Unconditionally leaves the kernel lock state. More... | |
syssts_t | chSysGetStatusAndLockX (void) |
Returns the execution status and enters a critical zone. More... | |
void | chSysRestoreStatusX (syssts_t sts) |
Restores the specified execution status and leaves a critical zone. More... | |
bool | chSysIsCounterWithinX (rtcnt_t cnt, rtcnt_t start, rtcnt_t end) |
Realtime window test. More... | |
void | chSysPolledDelayX (rtcnt_t cycles) |
Polled delay. More... | |
thread_t * | chSchReadyI (thread_t *tp, msg_t msg) |
Makes the specified thread ready for execution. More... | |
bool | chSchIsPreemptionRequired (void) |
Evaluates if preemption is required. More... | |
void | chSchDoPreemption (void) |
Switches to the first thread on the runnable queue. More... | |
void | chSchRescheduleS (void) |
Reschedules if needed. More... | |
msg_t | chSchGoSleepTimeoutS (tstate_t newstate, sysinterval_t timeout) |
Puts the current thread to sleep into the specified state with timeout specification. More... | |
bool | chTimeIsInRangeX (systime_t time, systime_t start, systime_t end) |
Checks if the specified time is within the specified time range. More... | |
thread_t * | chThdCreateI (const thread_descriptor_t *tdp) |
Creates a new thread into a static memory area. More... | |
thread_t * | chThdCreate (const thread_descriptor_t *tdp) |
Creates a new thread into a static memory area. More... | |
void | chThdExit (msg_t msg) |
Terminates the current thread. More... | |
msg_t | chThdWait (thread_t *tp) |
Blocks the execution of the invoking thread until the specified thread terminates then the exit code is returned. More... | |
msg_t | chThdSuspendTimeoutS (thread_reference_t *trp, sysinterval_t timeout) |
Sends the current thread sleeping and sets a reference variable. More... | |
void | chThdResumeI (thread_reference_t *trp, msg_t msg) |
Wakes up a thread waiting on a thread reference object. More... | |
void | chThdResume (thread_reference_t *trp, msg_t msg) |
Wakes up a thread waiting on a thread reference object. More... | |
void | chThdSleep (sysinterval_t timeout) |
Suspends the invoking thread for the specified time. More... | |
void | chThdSleepUntil (systime_t abstime) |
Suspends the invoking thread until the system time arrives to the specified value. More... | |
msg_t | chThdEnqueueTimeoutS (threads_queue_t *tqp, sysinterval_t timeout) |
Enqueues the caller thread on a threads queue object. More... | |
void | chThdDoDequeueNextI (threads_queue_t *tqp, msg_t msg) |
Dequeues and wakes up one thread from the threads queue object. More... | |
void | chThdDequeueNextI (threads_queue_t *tqp, msg_t msg) |
Dequeues and wakes up one thread from the threads queue object, if any. More... | |
void | chThdDequeueAllI (threads_queue_t *tqp, msg_t msg) |
Dequeues and wakes up all threads from the threads queue object. More... | |
Variables | |
os_instance_t | nil |
System data structures. More... | |
Nil RTOS main source file.
Definition in file ch.c.