chore: freeRTOS task stack diagnostics (#2976)

* migrated stack diagnostics (available, free) to using built in FreeRTOS builtin function

Note: main stack must be and is treated differently as it is not under FreeRTOS control. main stack is painted by the STM32 startup routine. free main stack is calculated checking the remaining painted stack area.

* corrected my merge error

* missed a blank
This commit is contained in:
Michael
2023-01-15 11:48:04 +10:00
committed by GitHub
parent cb9f411036
commit 34ea422e39
7 changed files with 31 additions and 49 deletions
+7 -6
View File
@@ -46,22 +46,23 @@
#define CLI_TASK_PRIO (1)
#endif
extern RTOS_TASK_HANDLE menusTaskId;
extern RTOS_DEFINE_STACK(menusStack, MENUS_STACK_SIZE);
extern RTOS_MUTEX_HANDLE mixerMutex;
extern RTOS_TASK_HANDLE menusTaskId;
extern TaskStack<MENUS_STACK_SIZE> menusStack;
extern RTOS_TASK_HANDLE mixerTaskId;
extern RTOS_DEFINE_STACK(mixerStack, MIXER_STACK_SIZE);
extern TaskStack<MIXER_STACK_SIZE> mixerStack;
extern RTOS_TASK_HANDLE audioTaskId;
extern RTOS_DEFINE_STACK(audioStack, AUDIO_STACK_SIZE);
extern TaskStack<AUDIO_STACK_SIZE> audioStack;
#if defined(CLI)
extern RTOS_TASK_HANDLE cliTaskId;
extern RTOS_DEFINE_STACK(cliStack, CLI_STACK_SIZE);
extern TaskStack<CLI_STACK_SIZE> cliStack;
#endif
void stackPaint();
void tasksStart();
extern volatile uint16_t timeForcePowerOffPressed;