Larger stack required
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -176,4 +176,5 @@ fabric.properties
|
|||||||
|
|
||||||
CoreCompileInputs.cache
|
CoreCompileInputs.cache
|
||||||
.vscode/settings.json
|
.vscode/settings.json
|
||||||
source/compile_commands.json
|
source/compile_commands.json
|
||||||
|
.idea/
|
||||||
|
|||||||
@@ -15,22 +15,22 @@ bool settingsWereReset = false;
|
|||||||
// FreeRTOS variables
|
// FreeRTOS variables
|
||||||
|
|
||||||
osThreadId GUITaskHandle;
|
osThreadId GUITaskHandle;
|
||||||
static const size_t GUITaskStackSize = 1024 / 4;
|
static const size_t GUITaskStackSize = 1024 / 3;
|
||||||
uint32_t GUITaskBuffer[GUITaskStackSize];
|
uint32_t GUITaskBuffer[GUITaskStackSize];
|
||||||
osStaticThreadDef_t GUITaskControlBlock;
|
osStaticThreadDef_t GUITaskControlBlock;
|
||||||
|
|
||||||
osThreadId PIDTaskHandle;
|
osThreadId PIDTaskHandle;
|
||||||
static const size_t PIDTaskStackSize = 1024 / 4;
|
static const size_t PIDTaskStackSize = 1024 / 3;
|
||||||
uint32_t PIDTaskBuffer[PIDTaskStackSize];
|
uint32_t PIDTaskBuffer[PIDTaskStackSize];
|
||||||
osStaticThreadDef_t PIDTaskControlBlock;
|
osStaticThreadDef_t PIDTaskControlBlock;
|
||||||
|
|
||||||
osThreadId MOVTaskHandle;
|
osThreadId MOVTaskHandle;
|
||||||
static const size_t MOVTaskStackSize = 1024 / 4;
|
static const size_t MOVTaskStackSize = 1024 / 3;
|
||||||
uint32_t MOVTaskBuffer[MOVTaskStackSize];
|
uint32_t MOVTaskBuffer[MOVTaskStackSize];
|
||||||
osStaticThreadDef_t MOVTaskControlBlock;
|
osStaticThreadDef_t MOVTaskControlBlock;
|
||||||
|
|
||||||
osThreadId POWTaskHandle;
|
osThreadId POWTaskHandle;
|
||||||
static const size_t POWTaskStackSize = 512 / 4;
|
static const size_t POWTaskStackSize = 512 / 3;
|
||||||
uint32_t POWTaskBuffer[POWTaskStackSize];
|
uint32_t POWTaskBuffer[POWTaskStackSize];
|
||||||
osStaticThreadDef_t POWTaskControlBlock;
|
osStaticThreadDef_t POWTaskControlBlock;
|
||||||
|
|
||||||
@@ -38,11 +38,11 @@ osStaticThreadDef_t POWTaskControlBlock;
|
|||||||
// Main sets up the hardware then hands over to the FreeRTOS kernel
|
// Main sets up the hardware then hands over to the FreeRTOS kernel
|
||||||
int main(void) {
|
int main(void) {
|
||||||
preRToSInit();
|
preRToSInit();
|
||||||
MSG((char *)"wdg\r\n");
|
|
||||||
resetWatchdog();
|
resetWatchdog();
|
||||||
// Testing for which accelerometer is mounted
|
// Testing for which accelerometer is mounted
|
||||||
settingsWereReset = loadSettings(); // load the settings from flash
|
settingsWereReset = loadSettings(); // load the settings from flash
|
||||||
MSG((char *)"tip\r\n");
|
|
||||||
setTipX10Watts(0); // force tip off
|
setTipX10Watts(0); // force tip off
|
||||||
|
|
||||||
MSG((char *)"main\r\n");
|
MSG((char *)"main\r\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user