23 #error "Please do not include this file directly, use pal.h instead" 45 #define PAL_TICK_TO_MILLI_FACTOR 1000 palStatus_t pal_osSemaphoreRelease(palSemaphoreID_t semaphoreID)
Release a semaphore token.
int32_t pal_osAtomicIncrement(int32_t *valuePtr, int32_t increment)
Perform an atomic increment for a signed 32-bit value.
PAL. This file contains the general API to initiate and destroy the PAL component. This is part of the PAL service API.
uintptr_t palSemaphoreID_t
Definition: pal_rtos.h:52
int32_t pal_tv_usec
Microseconds.
Definition: pal_rtos.h:96
Thread local store struct.
Definition: pal_rtos.h:90
palStatus_t pal_osTimerDelete(palTimerID_t *timerID)
Delete a timer object.
Definition: pal_rtos.h:71
palStatus_t pal_osThreadCreateWithAlloc(palThreadFuncPtr function, void *funcArgument, palThreadPriority_t priority, uint32_t stackSize, palThreadLocalStore_t *store, palThreadID_t *threadID)
Allocates memory for the thread stack, creates and starts the thread function inside the PAL platform...
Definition: pal_rtos.h:79
palStatus_t pal_RTOSDestroy(void)
palThreadID_t pal_osThreadGetId(void)
Get the ID of the current thread.
palStatus_t pal_osMutexCreate(palMutexID_t *mutexID)
Create and initialize a mutex object.
Definition: pal_rtos.h:78
palStatus_t pal_osTimerCreate(palTimerFuncPtr function, void *funcArgument, palTimerType_t timerType, palTimerID_t *timerID)
Create a timer.
enum palTimerType palTimerType_t
Timer types supported in PAL.
palStatus_t pal_osSemaphoreCreate(uint32_t count, palSemaphoreID_t *semaphoreID)
Create and initialize a semaphore object.
palStatus_t pal_osTimerStart(palTimerID_t timerID, uint32_t millisec)
Start or restart a timer.
uint64_t pal_osKernelSysTick(void)
Get the RTOS kernel system timer counter.
Definition: pal_rtos.h:80
Definition: pal_rtos.h:84
void(* palTimerFuncPtr)(void const *funcArgument)
PAL timer function prototype.
Definition: pal_rtos.h:64
Definition: pal_rtos.h:73
pal_osPriority
Available priorities in PAL implementation, each priority can appear only once.
Definition: pal_rtos.h:70
struct pal_timeVal pal_timeVal_t
Definition: pal_rtos.h:74
struct pal_threadLocalStore palThreadLocalStore_t
Thread local store struct.
palStatus_t pal_RTOSInitialize(void *opaqueContext)
Definition: pal_rtos.h:82
uintptr_t palMutexID_t
Definition: pal_rtos.h:51
void(* palThreadFuncPtr)(void const *funcArgument)
PAL thread function prototype.
Definition: pal_rtos.h:67
uintptr_t palMessageQID_t
Definition: pal_rtos.h:54
Definition: pal_rtos.h:59
Definition: pal_rtos.h:81
palStatus_t pal_osSemaphoreDelete(palSemaphoreID_t *semaphoreID)
Delete a semaphore object.
int32_t pal_tv_sec
Seconds.
Definition: pal_rtos.h:95
Definition: pal_rtos.h:58
palStatus_t pal_osThreadTerminate(palThreadID_t *threadID)
Terminate the thread and free the data allocated for it.
palTimerType
Timer types supported in PAL.
Definition: pal_rtos.h:57
void pal_osReboot(void)
Initiates a system reboot.
Definition: pal_rtos.h:83
enum pal_osPriority palThreadPriority_t
Thread priority levels for PAL threads - each thread must have a different priority.
palStatus_t pal_osMutexRelease(palMutexID_t mutexID)
Release a mutex that was obtained by osMutexWait.
uint64_t pal_osKernelSysMilliSecTick(uint64_t sysTicks)
Converts kernel system ticks to milliseconds.
palStatus_t pal_osTimerStop(palTimerID_t timerID)
Stop a timer.
uintptr_t palMemoryPoolID_t
Definition: pal_rtos.h:53
uintptr_t palTimerID_t
Definition: pal_rtos.h:50
Definition: pal_rtos.h:77
uint64_t pal_osKernelSysTickMicroSec(uint64_t microseconds)
Converts a value from microseconds to kernel system ticks.
palStatus_t pal_osMutexWait(palMutexID_t mutexID, uint32_t millisec)
Wait until a mutex becomes available.
palStatus_t pal_osSemaphoreWait(palSemaphoreID_t semaphoreID, uint32_t millisec, int32_t *countersAvailable)
Wait until a semaphore token becomes available.
palStatus_t pal_osDelay(uint32_t milliseconds)
Wait for a specified time period in milliseconds.
Definition: pal_rtos.h:76
uintptr_t palThreadID_t
Primitive ID type declarations.
Definition: pal_rtos.h:49
Definition: pal_rtos.h:72
int32_t palStatus_t
Definition: pal_types.h:49
Definition: pal_rtos.h:94
void * storeData
Definition: pal_rtos.h:91
uint64_t pal_osKernelSysTickFrequency(void)
Get the system tick frequency.
palStatus_t pal_osMutexDelete(palMutexID_t *mutexID)
Delete a mutex object.
Definition: pal_rtos.h:75