RTOS.c
Go to the documentation of this file.
1 /**
2  * @file RTOS.c
3  * @brief FreeRTOS callbacks
4  * @copyright Copyright (c) 2020 STMicroelectronics.
5  * All rights reserved.
6  * This software component is licensed by ST under Ultimate
7  * Liberty license SLA0044, the "License"; You may not use
8  * this file except in compliance with the License. You may
9  * obtain a copy of the License at: www.st.com/SLA0044
10  */
11 
12 #include "FreeRTOS.h"
13 #include "task.h"
14 
15 static StaticTask_t xIdleTaskTCBBuffer;
16 static StackType_t xIdleStack[configMINIMAL_STACK_SIZE];
17 
18 /**
19  * @brief Provide the memory for use by the RTOS Idle task.
20  * @note Required callback for configSUPPORT_STATIC_ALLOCATION.
21  */
22 void vApplicationGetIdleTaskMemory(StaticTask_t** ppxIdleTaskTCBBuffer, StackType_t** ppxIdleTaskStackBuffer, uint32_t* pulIdleTaskStackSize)
23 {
24  *ppxIdleTaskTCBBuffer = &xIdleTaskTCBBuffer;
25  *ppxIdleTaskStackBuffer = &xIdleStack[0];
26  *pulIdleTaskStackSize = configMINIMAL_STACK_SIZE;
27 }
void vApplicationGetIdleTaskMemory(StaticTask_t **ppxIdleTaskTCBBuffer, StackType_t **ppxIdleTaskStackBuffer, uint32_t *pulIdleTaskStackSize)
Provide the memory for use by the RTOS Idle task.
Definition: RTOS.c:22