From 2a656f2c6313645eaa9f26e5123fa630b96b0363 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 7 Dec 2015 21:29:48 +0100 Subject: Fix stack overflow, it resembles CW now --- src/cw-example/main.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/cw-example/main.c') 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); -- cgit v1.2.3