74 #if !defined(__DOXYGEN__) 75 __attribute__((weak, noreturn))
328 if (esp->
cb != NULL) {
uint32_t eventflags_t
Type of an event flags mask.
msg_t osalThreadSuspendS(thread_reference_t *trp)
Sends the current thread sleeping and sets a reference variable.
void osalThreadDequeueAllI(threads_queue_t *tqp, msg_t msg)
Dequeues and wakes up all threads from the queue.
void osalThreadSleep(sysinterval_t time)
Suspends the invoking thread for the specified time.
void osalSysHalt(const char *reason)
System halt with error message.
void osalOsTimerHandlerI(void)
System timer handler.
static void osalSysDisable(void)
Disables interrupts globally.
#define osalDbgCheckClassI()
I-Class state check.
void osalMutexLock(mutex_t *mp)
Locks the specified mutex.
static void osalSysUnlock(void)
Leaves a critical zone from thread context.
void osalOsRescheduleS(void)
Checks if a reschedule is required and performs it.
uint32_t systime_t
Type of system time counter.
void osalSysPolledDelayX(rtcnt_t cycles)
Polled delay.
int32_t msg_t
Type of a message.
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 osalThreadSleepS(sysinterval_t time)
Suspends the invoking thread for the specified time.
void(* eventcallback_t)(event_source_t *esp)
Type of an event source callback.
uint32_t rtcnt_t
Type of realtime counter.
#define osalDbgCheck(c)
Function parameters check.
void osalEventSetCallback(event_source_t *esp, eventcallback_t cb, void *param)
Event callback setup.
volatile eventflags_t flags
Stored event flags.
uint32_t sysinterval_t
Type of system time interval.
systime_t osalOsGetSystemTimeX(void)
Current system time.
void osalThreadDequeueNextI(threads_queue_t *tqp, msg_t msg)
Dequeues and wakes up one thread from the queue, if any.
void osalInit(void)
OSAL module initialization.
msg_t osalThreadEnqueueTimeoutS(threads_queue_t *tqp, sysinterval_t timeout)
Enqueues the caller thread.
void * param
User defined field.
msg_t osalThreadSuspendTimeoutS(thread_reference_t *trp, sysinterval_t timeout)
Sends the current thread sleeping and sets a reference variable.
void * thread_reference_t
Type of a thread reference.
void osalThreadResumeS(thread_reference_t *trp, msg_t msg)
Wakes up a thread waiting on a thread reference object.
static void osalSysLock(void)
Enters a critical zone from thread context.
const char * osal_halt_msg
Pointer to a halt error message.
eventcallback_t cb
Event source callback.
void osalMutexUnlock(mutex_t *mp)
Unlocks the specified mutex.
void osalThreadResumeI(thread_reference_t *trp, msg_t msg)
Wakes up a thread waiting on a thread reference object.
uint32_t mutex_t
Type of a mutex.