From 99849ca2cc6895675ee5ebbe9ccdae9c3b3d9a25 Mon Sep 17 00:00:00 2001 From: Jeroen Domburg Date: Mon, 19 Dec 2016 18:17:54 +0800 Subject: [PATCH] Fix timer example; it had too little stack resulting in a stack overflow --- examples/13_timer_group/main/timer_group.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/13_timer_group/main/timer_group.c b/examples/13_timer_group/main/timer_group.c index 9db471054..37e22faaf 100644 --- a/examples/13_timer_group/main/timer_group.c +++ b/examples/13_timer_group/main/timer_group.c @@ -83,7 +83,7 @@ void IRAM_ATTR timer_group0_isr(void *para) uint32_t intr_status = TIMERG0.int_st_timers.val; timer_event_t evt; if((intr_status & BIT(timer_idx)) && timer_idx == TIMER_0) { - /*Timer0 is an example that don't reload counter value*/ + /*Timer0 is an example that doesn't reload counter value*/ TIMERG0.hw_timer[timer_idx].update = 1; /* We don't call a API here because they are not declared with IRAM_ATTR. @@ -197,9 +197,9 @@ void tg0_timer1_init() */ void app_main() { + timer_queue = xQueueCreate(10, sizeof(timer_event_t)); tg0_timer0_init(); tg0_timer1_init(); - timer_queue = xQueueCreate(10, sizeof(timer_event_t)); - xTaskCreate(timer_evt_task, "timer_evt_task", 1024, NULL, 5, NULL); + xTaskCreate(timer_evt_task, "timer_evt_task", 2048, NULL, 5, NULL); }