Place main and tasks stacks in CCM

This commit is contained in:
Raphael Coeffic
2021-05-29 13:31:50 +02:00
committed by Raphael Coeffic
parent c1979338ab
commit 836733618c
4 changed files with 21 additions and 4 deletions
+2 -1
View File
@@ -296,7 +296,8 @@ template<int SIZE>
return (RTOS_GET_TIME() * RTOS_MS_PER_TICK);
}
#define RTOS_DEFINE_STACK(name, size) TaskStack<size> __ALIGNED(8) name // stack must be aligned to 8 bytes otherwise printf for %f does not work!
// stack must be aligned to 8 bytes otherwise printf for %f does not work!
#define RTOS_DEFINE_STACK(name, size) TaskStack<size> __ALIGNED(8) name __CCMRAM
#define TASK_FUNCTION(task) void task(void * pdata)
#define TASK_RETURN() return