|
ChibiOS 21.11.4
|
OSAL module code. More...
#include "osal.h"Go to the source code of this file.
Functions | |
| void | osalInit (void) |
| OSAL module initialization. | |
| void | osalSysHalt (const char *reason) |
| System halt with error message. | |
| void | osalSysPolledDelayX (rtcnt_t cycles) |
| Polled delay. | |
| void | osalOsTimerHandlerI (void) |
| System timer handler. | |
| void | osalOsRescheduleS (void) |
| Checks if a reschedule is required and performs it. | |
| systime_t | osalOsGetSystemTimeX (void) |
| Current system time. | |
| void | osalThreadSleepS (sysinterval_t time) |
| Suspends the invoking thread for the specified time. | |
| void | osalThreadSleep (sysinterval_t time) |
| Suspends the invoking thread for the specified time. | |
| msg_t | osalThreadSuspendS (thread_reference_t *trp) |
| Sends the current thread sleeping and sets a reference variable. | |
| msg_t | osalThreadSuspendTimeoutS (thread_reference_t *trp, sysinterval_t timeout) |
| Sends the current thread sleeping and sets a reference variable. | |
| void | osalThreadResumeI (thread_reference_t *trp, msg_t msg) |
| Wakes up a thread waiting on a thread reference object. | |
| void | osalThreadResumeS (thread_reference_t *trp, msg_t msg) |
| Wakes up a thread waiting on a thread reference object. | |
| msg_t | osalThreadEnqueueTimeoutS (threads_queue_t *tqp, sysinterval_t timeout) |
| Enqueues the caller thread. | |
| void | osalThreadDequeueNextI (threads_queue_t *tqp, msg_t msg) |
| Dequeues and wakes up one thread from the queue, if any. | |
| void | osalThreadDequeueAllI (threads_queue_t *tqp, msg_t msg) |
| Dequeues and wakes up all threads from the queue. | |
| void | osalEventBroadcastFlagsI (event_source_t *esp, eventflags_t flags) |
| Add flags to an event source object. | |
| void | osalEventBroadcastFlags (event_source_t *esp, eventflags_t flags) |
| Add flags to an event source object. | |
| void | osalEventSetCallback (event_source_t *esp, eventcallback_t cb, void *param) |
| Event callback setup. | |
| void | osalMutexLock (mutex_t *mp) |
| Locks the specified mutex. | |
| void | osalMutexUnlock (mutex_t *mp) |
| Unlocks the specified mutex. | |
Variables | |
| const char * | osal_halt_msg |
| Pointer to a halt error message. | |
OSAL module code.
Definition in file osal.c.