use startup_watchdog_disable() instead of stop_watchdog() upon startup.
authorNathael Pajani <nathael.pajani@ed3l.fr>
Mon, 23 Nov 2015 12:05:51 +0000 (13:05 +0100)
committerNathael Pajani <nathael.pajani@ed3l.fr>
Mon, 6 Feb 2023 04:03:03 +0000 (05:03 +0100)
remote_bitbang/main.c

index 2bf364b..4133615 100644 (file)
@@ -72,7 +72,7 @@ const struct pio swd_clk = LPC_GPIO_0_24;
 void system_init()
 {
        /* Stop the watchdog */
-       stop_watchdog(); /* Do it right now, before it gets a chance to break in */
+       startup_watchdog_disable(); /* Do it right now, before it gets a chance to break in */
 
        /* Note: Brown-Out detection must be powered to operate the ADC. adc_on() will power
         *  it back on if called after system_init() */