diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-09-26 16:36:55 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-09-26 16:36:55 +0200 |
commit | 07e2eef57eeff5a2d21945b9ad6ca1dbd714b924 (patch) | |
tree | 63531bad637e201e17d1f58d0dfa42adc316ec2f /stm32f091/idle_task_static_memory.c | |
parent | c82637ccbd2a99466dacd830147ef3df92f86753 (diff) |
freertos compiles without errors
Diffstat (limited to 'stm32f091/idle_task_static_memory.c')
-rw-r--r-- | stm32f091/idle_task_static_memory.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/stm32f091/idle_task_static_memory.c b/stm32f091/idle_task_static_memory.c new file mode 100644 index 0000000..0774224 --- /dev/null +++ b/stm32f091/idle_task_static_memory.c @@ -0,0 +1,18 @@ +#include "idle_task_static_memory.h" + +void vApplicationGetIdleTaskMemory( StaticTask_t **ppxIdleTaskTCBBuffer, StackType_t **ppxIdleTaskStackBuffer, uint32_t *pulIdleTaskStackSize ) { + static StaticTask_t xIdleTaskTCB; + static StackType_t uxIdleTaskStack[ configMINIMAL_STACK_SIZE ]; + *ppxIdleTaskTCBBuffer = &xIdleTaskTCB; + *ppxIdleTaskStackBuffer = uxIdleTaskStack; + *pulIdleTaskStackSize = configMINIMAL_STACK_SIZE; +} + +void vApplicationGetTimerTaskMemory( StaticTask_t **ppxTimerTaskTCBBuffer, StackType_t **ppxTimerTaskStackBuffer, uint32_t *pulTimerTaskStackSize ) { + static StaticTask_t xTimerTaskTCB; + static StackType_t uxTimerTaskStack[ configTIMER_TASK_STACK_DEPTH ]; + *ppxTimerTaskTCBBuffer = &xTimerTaskTCB; + *ppxTimerTaskStackBuffer = uxTimerTaskStack; + *pulTimerTaskStackSize = configTIMER_TASK_STACK_DEPTH; +} + |