Remove the call to stop_watchdog() as the Watchdog is OFF upon reset.
authorNathael Pajani <nathael.pajani@ed3l.fr>
Mon, 21 Sep 2015 11:24:13 +0000 (13:24 +0200)
committerNathael Pajani <nathael.pajani@ed3l.fr>
Mon, 21 Sep 2015 11:24:13 +0000 (13:24 +0200)
apps/dtplug/usb/main.c

index cf94c65..8dce714 100644 (file)
@@ -58,15 +58,11 @@ const struct pio_config common_pins[] = {
 /***************************************************************************** */
 void system_init()
 {
-       /* Stop the watchdog */
-       stop_watchdog(); /* Do it right now, before it gets a chance to break in */
-
+       clock_config(SELECTED_FREQ);
        system_brown_out_detection_config(0);
        system_set_default_power_state();
-       clock_config(SELECTED_FREQ);
        set_pins(common_pins);
-       /* System tick timer MUST be configured and running in order to use the sleeping
-        * functions */
+       /* System tick timer MUST be configured and running at 1ms in order to use the sleeping functions */
        systick_timer_on(1); /* 1ms */
        systick_start();
 }