diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-12-07 21:29:48 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-12-07 21:29:48 +0100 |
commit | 2a656f2c6313645eaa9f26e5123fa630b96b0363 (patch) | |
tree | cbf5658a5bd49a5266be7d1d059cd6e350c938ce /src/cw-example/main.c | |
parent | 63545495ed0dd1fe6e03cb2b4a5673695d5b7103 (diff) | |
download | glutte-o-matic-2a656f2c6313645eaa9f26e5123fa630b96b0363.tar.gz glutte-o-matic-2a656f2c6313645eaa9f26e5123fa630b96b0363.tar.bz2 glutte-o-matic-2a656f2c6313645eaa9f26e5123fa630b96b0363.zip |
Fix stack overflow, it resembles CW now
Diffstat (limited to 'src/cw-example/main.c')
-rw-r--r-- | src/cw-example/main.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/cw-example/main.c b/src/cw-example/main.c index 456d4fe..2b19177 100644 --- a/src/cw-example/main.c +++ b/src/cw-example/main.c @@ -29,6 +29,12 @@ struct cw_msg_s { int dit_duration; }; +void vApplicationStackOverflowHook( TaskHandle_t xTask, + signed char *pcTaskName ) +{ + while (1) {}; +} + int main(void) { init(); @@ -40,7 +46,7 @@ int main(void) { xTaskCreate( detect_button_press, "TaskButton", - configMINIMAL_STACK_SIZE, + 4*configMINIMAL_STACK_SIZE, (void*) NULL, tskIDLE_PRIORITY + 2UL, NULL); |