From 13f720b65005b66e090e5801e245ce39eddd40cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Redon?= Date: Mon, 25 Jun 2018 15:57:44 +0200 Subject: trace: increase watchdog for 500 to 2000 ms to provide more time handling buffered data --- firmware/apps/trace/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/firmware/apps/trace/main.c b/firmware/apps/trace/main.c index e705a17..3dcbde1 100644 --- a/firmware/apps/trace/main.c +++ b/firmware/apps/trace/main.c @@ -40,7 +40,7 @@ typedef struct { void (*exit) (void); /* main loop content for given configuration */ void (*run) (void); - /* Interrupt handler for USART1 */ + /* Interrupt handler for USART0 */ void (*usart0_irq) (void); /* Interrupt handler for USART1 */ void (*usart1_irq) (void); @@ -148,9 +148,9 @@ extern int main(void) led_init(); led_blink(LED_RED, BLINK_3O_5F); - /* Enable watchdog for 500ms, with no window */ + /* Enable watchdog for 2000 ms, with no window */ WDT_Enable(WDT, WDT_MR_WDRSTEN | WDT_MR_WDDBGHLT | WDT_MR_WDIDLEHLT | - (WDT_GetPeriod(500) << 16) | WDT_GetPeriod(500)); + (WDT_GetPeriod(2000) << 16) | WDT_GetPeriod(2000)); PIO_InitializeInterrupts(0); -- cgit v1.2.3