ChibiOS/HAL  6.1.0
osal.c File Reference

OSAL module code. More...

#include "osal.h"

Go to the source code of this file.

Functions

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

Variables

const char * osal_halt_msg
 Pointer to a halt error message. More...
 

Detailed Description

OSAL module code.

Definition in file osal.c.