60 #if defined(FOXBMS_USES_FREERTOS)
63 #define OS_QUEUE QueueHandle_t
69 #define OS_IDLE_TASK_STACK_SIZE configMINIMAL_STACK_SIZE
71 #if (configUSE_TIMERS > 0) && (configSUPPORT_STATIC_ALLOCATION == 1)
72 #define OS_TIMER_TASK_STACK_SIZE configTIMER_TASK_STACK_DEPTH
153 #if (configUSE_TIMERS > 0) && (configSUPPORT_STATIC_ALLOCATION == 1)
164 extern void vApplicationGetTimerTaskMemory(
165 StaticTask_t **ppxTimerTaskTCBBuffer,
166 StackType_t **ppxTimerTaskStackBuffer,
167 uint32_t *pulTimerTaskStackSize);
219 extern void OS_DelayTaskUntil(uint32_t *pPreviousWakeTime, uint32_t milliseconds);
288 const void *
const pvItemToQueue,
289 long *
const pxHigherPriorityTaskWoken);
313 uint32_t oldTimeStamp_ms,
314 uint32_t currentTimeStamp_ms,
315 uint32_t timeToPass_ms);
328 #ifdef UNITY_UNIT_TEST
enum STD_RETURN_TYPE STD_RETURN_TYPE_e
General macros and definitions for the whole platform.
enum OS_PRIORITY OS_PRIORITY_e
typedef for thread priority. The higher the value, the higher the priority.
struct OS_TASK_DEFINITION OS_TASK_DEFINITION_s
struct for FreeRTOS task definition
enum OS_STD_RETURN OS_STD_RETURN_e
OS_STD_RETURN_e OS_ReceiveFromQueue(OS_QUEUE xQueue, void *const pvBuffer, uint32_t ticksToWait)
Receive an item from a queue.
void OS_StartScheduler(void)
Starts the operating system scheduler.
void OS_SystemTickHandler(void)
Handles the tick increment of operating systick timer.
void OS_DelayTaskUntil(uint32_t *pPreviousWakeTime, uint32_t milliseconds)
Delay a task until a specified time.
OS_STD_RETURN_e OS_SendToBackOfQueueFromIsr(OS_QUEUE xQueue, const void *const pvItemToQueue, long *const pxHigherPriorityTaskWoken)
Post an item to the back the provided queue during an ISR.
uint32_t os_schedulerStartTime
Scheduler "zero" time for task phase control.
void OS_MarkTaskAsRequiringFpuContext(void)
Marks the current task as requiring FPU context.
bool OS_CheckTimeHasPassed(uint32_t oldTimeStamp_ms, uint32_t timeToPass_ms)
This function checks if timeToPass has passed since the last timestamp to now.
STD_RETURN_TYPE_e OS_CheckTimeHasPassedSelfTest(void)
Does a self check if the OS_CheckTimeHasPassedWithTimestamp works as expected.
OS_STD_RETURN_e OS_SendToBackOfQueue(OS_QUEUE xQueue, const void *const pvItemToQueue, TickType_t ticksToWait)
Post an item to the back the provided queue.
bool OS_CheckTimeHasPassedWithTimestamp(uint32_t oldTimeStamp_ms, uint32_t currentTimeStamp_ms, uint32_t timeToPass_ms)
This function checks if timeToPass has passed since the last timestamp to now.
void OS_ExitTaskCritical(void)
Exit Critical interface function for use in FreeRTOS-Tasks and FreeRTOS-ISR.
void OS_InitializeOperatingSystem(void)
Initialization the RTOS interface.
struct OS_TIMER OS_TIMER_s
OS timer.
void vApplicationIdleHook(void)
Hook function for the idle task.
void OS_IncrementTimer(void)
Increments the system timer os_timer.
void OS_EnterTaskCritical(void)
Enter Critical interface function for use in FreeRTOS-Tasks and FreeRTOS-ISR.
enum OS_BOOT_STATE OS_BOOT_STATE_e
enum of OS boot states
OS_BOOT_STATE
enum of OS boot states
@ OS_PRECYCLIC_INIT_HAS_FINISHED
@ OS_INIT_OS_FATALERROR_SCHEDULER
uint32_t OS_GetTickCount(void)
Returns OS based system tick value.
volatile OS_BOOT_STATE_e os_boot
OS_PRIORITY
typedef for thread priority. The higher the value, the higher the priority.
@ OS_PRIORITY_BELOW_REALTIME
@ OS_PRIORITY_BELOW_NORMAL
@ OS_PRIORITY_ABOVE_NORMAL
struct for FreeRTOS task definition