aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKévin Redon <kredon@sysmocom.de>2018-07-28 19:04:23 +0200
committerKévin Redon <kredon@sysmocom.de>2018-07-29 09:58:31 +0200
commitd8ebd6ab77fc422232e679a36887f40a56c24e53 (patch)
tree01124841a75f47438fd6c419c4da041d9cebe8a3
parent738a04aefba01a72fbc0e46fc86fa17e7e6cad83 (diff)
cardem: increase watchdog to 2 seconds
a lot of the procedures are done in ISRs, but the watchdog is only reset in the main loop. this causes frequent reset, particularly at the beginning were states have to the initialized. Change-Id: Iad364444fca9d18f9a8cf47d5e0840ccd7bac2ef
-rw-r--r--firmware/apps/cardem/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/apps/cardem/main.c b/firmware/apps/cardem/main.c
index 7d65c7e..6cd3439 100644
--- a/firmware/apps/cardem/main.c
+++ b/firmware/apps/cardem/main.c
@@ -144,9 +144,9 @@ extern int main(void)
led_init();
led_blink(LED_RED, BLINK_3O_5F);
- /* Enable watchdog for 500ms, with no window */
+ /* Enable watchdog for 2000ms, 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);