diff options
author | Kévin Redon <kredon@sysmocom.de> | 2018-06-25 15:57:44 +0200 |
---|---|---|
committer | King Kévin <kingkevin@cuvoodoo.info> | 2018-07-04 14:29:28 +0200 |
commit | 866d20b10eb7587dba5d680eeec9dfab8c2c2a99 (patch) | |
tree | 376cbc715eb581ceedbbf6e9f047889d17c63446 /firmware | |
parent | 4fe99fad59d58d9c2396491e0db6a87709511582 (diff) |
trace: increase watchdog for 500 to 2000 ms to provide more time handling buffered data
Change-Id: Iacd85525f05e692b44183bd4c4585b9e70865cfe
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/apps/trace/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/apps/trace/main.c b/firmware/apps/trace/main.c index e7ce7b7..8c89907 100644 --- a/firmware/apps/trace/main.c +++ b/firmware/apps/trace/main.c @@ -22,7 +22,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); @@ -127,9 +127,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); |