1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-20 06:45:16 +03:00

Enabled CCM RAM for stack. Added stack watermarking

This commit is contained in:
Martin Budden 2016-12-01 09:16:44 +00:00
parent 8af1508c83
commit 2b3cc549e9
10 changed files with 204 additions and 5 deletions

View file

@ -31,6 +31,7 @@
#include "drivers/accgyro.h"
#include "drivers/compass.h"
#include "drivers/serial.h"
#include "drivers/stack_check.h"
#include "fc/config.h"
#include "fc/fc_msp.h"
@ -286,6 +287,9 @@ void fcTasksInit(void)
setTaskEnabled(TASK_CMS, feature(FEATURE_OSD) || feature(FEATURE_DASHBOARD));
#endif
#endif
#ifdef STACK_CHECK
setTaskEnabled(TASK_STACK_CHECK, true);
#endif
}
cfTask_t cfTasks[TASK_COUNT] = {
@ -463,4 +467,13 @@ cfTask_t cfTasks[TASK_COUNT] = {
.staticPriority = TASK_PRIORITY_LOW,
},
#endif
#ifdef STACK_CHECK
[TASK_STACK_CHECK] = {
.taskName = "STACKCHECK",
.taskFunc = taskStackCheck,
.desiredPeriod = TASK_PERIOD_HZ(10), // 10 Hz
.staticPriority = TASK_PRIORITY_IDLE,
},
#endif
};