18 #ifndef _PAL_PLAT_RTOS_H 19 #define _PAL_PLAT_RTOS_H 29 #if PAL_UNIQUE_THREAD_PRIORITY 47 #define PRIORYT_INDEX_OFFSET 3 48 #endif //PAL_UNIQUE_THREAD_PRIORITY 367 #define pal_plat_printf(ARGS...) printf(ARGS) 368 #define pal_plat_vprintf(FORMAT,LIST) vprintf(FORMAT,LIST) 374 #endif //_PAL_COMMON_H palStatus_t pal_plat_osPoolFree(palMemoryPoolID_t memoryPoolID, void *block)
Definition: pal_plat_rtos.c:795
+
palStatus_t pal_plat_osSemaphoreDelete(palSemaphoreID_t *semaphoreID)
Definition: pal_plat_rtos.c:686
uintptr_t palSemaphoreID_t
Definition: pal_rtos.h:37
-
void pal_plat_osReboot(void)
Definition: pal_plat_rtos.c:159
+
void pal_plat_osReboot(void)
Definition: pal_plat_rtos.c:181
Definition: pal_rtos.h:67
uint64_t pal_plat_osKernelSysTick64(void)
-
palStatus_t pal_plat_osTimerStart(palTimerID_t timerID, uint32_t millisec)
Definition: pal_plat_rtos.c:389
-
void * pal_plat_osThreadGetLocalStore()
Definition: pal_plat_rtos.c:335
-
uint64_t pal_plat_osKernelSysTickMicroSec(uint64_t microseconds)
Definition: pal_plat_rtos.c:218
-
palStatus_t pal_plat_osSemaphoreCreate(uint32_t count, palSemaphoreID_t *semaphoreID)
Definition: pal_plat_rtos.c:581
-
palStatus_t pal_plat_osSemaphoreWait(palSemaphoreID_t semaphoreID, uint32_t millisec, int32_t *countersAvailable)
Definition: pal_plat_rtos.c:616
+
palStatus_t pal_plat_osTimerStart(palTimerID_t timerID, uint32_t millisec)
Definition: pal_plat_rtos.c:411
+
void * pal_plat_osThreadGetLocalStore()
Definition: pal_plat_rtos.c:357
+
uint64_t pal_plat_osKernelSysTickMicroSec(uint64_t microseconds)
Definition: pal_plat_rtos.c:240
+
palStatus_t pal_plat_osSemaphoreCreate(uint32_t count, palSemaphoreID_t *semaphoreID)
Definition: pal_plat_rtos.c:603
+
palStatus_t pal_plat_osSemaphoreWait(palSemaphoreID_t semaphoreID, uint32_t millisec, int32_t *countersAvailable)
Definition: pal_plat_rtos.c:638
enum palTimerType palTimerType_t
Timers types supported in PAL.
-
palStatus_t pal_plat_osTimerCreate(palTimerFuncPtr function, void *funcArgument, palTimerType_t timerType, palTimerID_t *timerID)
Definition: pal_plat_rtos.c:352
-
void pal_plat_RTOSDestroy(void)
Definition: pal_plat_rtos.c:184
-
void * pal_plat_osPoolCAlloc(palMemoryPoolID_t memoryPoolID)
Definition: pal_plat_rtos.c:757
-
int32_t pal_plat_osAtomicIncrement(int32_t *valuePtr, int32_t increment)
Definition: pal_plat_rtos.c:968
+
palStatus_t pal_plat_osTimerCreate(palTimerFuncPtr function, void *funcArgument, palTimerType_t timerType, palTimerID_t *timerID)
Definition: pal_plat_rtos.c:374
+
void pal_plat_RTOSDestroy(void)
Definition: pal_plat_rtos.c:206
+
void * pal_plat_osPoolCAlloc(palMemoryPoolID_t memoryPoolID)
Definition: pal_plat_rtos.c:779
+
int32_t pal_plat_osAtomicIncrement(int32_t *valuePtr, int32_t increment)
Definition: pal_plat_rtos.c:965
-
palStatus_t pal_plat_osMessageQueueDestroy(palMessageQID_t *messageQID)
Definition: pal_plat_rtos.c:925
+
palStatus_t pal_plat_osMessageQueueDestroy(palMessageQID_t *messageQID)
Definition: pal_plat_rtos.c:947
void(* palTimerFuncPtr)(void const *funcArgument)
PAL timer function prototype.
Definition: pal_rtos.h:48
#define PAL_MAX_NUMBER_OF_THREADS
number of valid priorities limits the number of threads- if priorities are added this value should be...
Definition: pal_configuration.h:34
-
palStatus_t pal_plat_osMutexRelease(palMutexID_t mutexID)
Definition: pal_plat_rtos.c:529
-
palStatus_t pal_plat_osMessagePut(palMessageQID_t messageQID, uint32_t info, uint32_t timeout)
Definition: pal_plat_rtos.c:864
+
+
palStatus_t pal_plat_osMutexRelease(palMutexID_t mutexID)
Definition: pal_plat_rtos.c:551
+
palStatus_t pal_plat_osMessagePut(palMessageQID_t messageQID, uint32_t info, uint32_t timeout)
Definition: pal_plat_rtos.c:886
uintptr_t palMutexID_t
Definition: pal_rtos.h:36
-
uint8_t g_palThreadPriorities[PAL_MAX_NUMBER_OF_THREADS]
An array of PAL thread priorities. The size of the array is defined in the Service API (pal_rtos...
void(* palThreadFuncPtr)(void const *funcArgument)
PAL thread function prototype.
Definition: pal_rtos.h:51
-
palStatus_t pal_plat_osTimerStop(palTimerID_t timerID)
Definition: pal_plat_rtos.c:414
+
palStatus_t pal_plat_osTimerStop(palTimerID_t timerID)
Definition: pal_plat_rtos.c:436
uintptr_t palMessageQID_t
Definition: pal_rtos.h:39
-
palStatus_t pal_plat_osDelay(uint32_t milliseconds)
Definition: pal_plat_rtos.c:196
-
palStatus_t pal_plat_osMutexDelete(palMutexID_t *mutexID)
Definition: pal_plat_rtos.c:554
-
palStatus_t pal_plat_osPoolDestroy(palMemoryPoolID_t *memoryPoolID)
Definition: pal_plat_rtos.c:798
-
palStatus_t pal_plat_osMutexCreate(palMutexID_t *mutexID)
Definition: pal_plat_rtos.c:467
+
palStatus_t pal_plat_osDelay(uint32_t milliseconds)
Definition: pal_plat_rtos.c:218
+
palStatus_t pal_plat_osMutexDelete(palMutexID_t *mutexID)
Definition: pal_plat_rtos.c:576
+
palStatus_t pal_plat_osPoolDestroy(palMemoryPoolID_t *memoryPoolID)
Definition: pal_plat_rtos.c:820
+
palStatus_t pal_plat_osMutexCreate(palMutexID_t *mutexID)
Definition: pal_plat_rtos.c:489
enum pal_osPriority palThreadPriority_t
Available priorities in PAL implementation, each priority can appear only once.
-
palStatus_t pal_plat_osMessageQueueCreate(uint32_t messageQSize, palMessageQID_t *messageQID)
Definition: pal_plat_rtos.c:815
-
palThreadID_t pal_plat_osThreadGetId()
Definition: pal_plat_rtos.c:293
-
palStatus_t pal_plat_RTOSInitialize(void *opaqueContext)
Definition: pal_plat_rtos.c:164
-
uint32_t pal_plat_osKernelSysTick()
Definition: pal_plat_rtos.c:211
+
palStatus_t pal_plat_osMessageQueueCreate(uint32_t messageQSize, palMessageQID_t *messageQID)
Definition: pal_plat_rtos.c:837
+
palThreadID_t pal_plat_osThreadGetId()
Definition: pal_plat_rtos.c:315
+
palStatus_t pal_plat_RTOSInitialize(void *opaqueContext)
Definition: pal_plat_rtos.c:186
+
uint32_t pal_plat_osKernelSysTick()
Definition: pal_plat_rtos.c:233
uintptr_t palMemoryPoolID_t
Definition: pal_rtos.h:38
uintptr_t palTimerID_t
Definition: pal_rtos.h:35
-
palStatus_t pal_plat_osSemaphoreRelease(palSemaphoreID_t semaphoreID)
Definition: pal_plat_rtos.c:639
-
palStatus_t pal_plat_osMutexWait(palMutexID_t mutexID, uint32_t millisec)
Definition: pal_plat_rtos.c:503
-
palStatus_t pal_plat_osThreadCreate(palThreadFuncPtr function, void *funcArgument, palThreadPriority_t priority, uint32_t stackSize, uint32_t *stackPtr, palThreadLocalStore_t *store, palThreadID_t *threadID)
Definition: pal_plat_rtos.c:236
-
void * pal_plat_osPoolAlloc(palMemoryPoolID_t memoryPoolID)
Definition: pal_plat_rtos.c:741
+
palStatus_t pal_plat_osSemaphoreRelease(palSemaphoreID_t semaphoreID)
Definition: pal_plat_rtos.c:661
+
palStatus_t pal_plat_osMutexWait(palMutexID_t mutexID, uint32_t millisec)
Definition: pal_plat_rtos.c:525
+
palStatus_t pal_plat_osThreadCreate(palThreadFuncPtr function, void *funcArgument, palThreadPriority_t priority, uint32_t stackSize, uint32_t *stackPtr, palThreadLocalStore_t *store, palThreadID_t *threadID)
Definition: pal_plat_rtos.c:258
+
void * pal_plat_osPoolAlloc(palMemoryPoolID_t memoryPoolID)
Definition: pal_plat_rtos.c:763
uintptr_t palThreadID_t
Primitives IDs types declarations.
Definition: pal_rtos.h:34
-
palStatus_t pal_plat_osMessageGet(palMessageQID_t messageQID, uint32_t timeout, uint32_t *messageValue)
Definition: pal_plat_rtos.c:889
-
uint64_t pal_plat_osKernelSysMilliSecTick(uint64_t sysTicks)
Definition: pal_plat_rtos.c:225
-
uint64_t pal_plat_osKernelSysTickFrequency(void)
Definition: pal_plat_rtos.c:231
+
palStatus_t pal_plat_osMessageGet(palMessageQID_t messageQID, uint32_t timeout, uint32_t *messageValue)
Definition: pal_plat_rtos.c:911
+
uint64_t pal_plat_osKernelSysMilliSecTick(uint64_t sysTicks)
Definition: pal_plat_rtos.c:247
+
uint64_t pal_plat_osKernelSysTickFrequency(void)
Definition: pal_plat_rtos.c:253
int32_t palStatus_t
Definition: pal_types.h:31
-
palStatus_t pal_plat_osThreadTerminate(palThreadID_t *threadID)
Definition: pal_plat_rtos.c:300
-
palStatus_t pal_plat_osTimerDelete(palTimerID_t *timerID)
Definition: pal_plat_rtos.c:439
-
palStatus_t pal_plat_osPoolCreate(uint32_t blockSize, uint32_t blockCount, palMemoryPoolID_t *memoryPoolID)
Definition: pal_plat_rtos.c:691
+
palStatus_t pal_plat_osThreadTerminate(palThreadID_t *threadID)
Definition: pal_plat_rtos.c:322
+
palStatus_t pal_plat_osTimerDelete(palTimerID_t *timerID)
Definition: pal_plat_rtos.c:461
+
palStatus_t pal_plat_osPoolCreate(uint32_t blockSize, uint32_t blockCount, palMemoryPoolID_t *memoryPoolID)
Definition: pal_plat_rtos.c:713