From: Nathael Pajani Date: Mon, 23 Nov 2015 12:05:51 +0000 (+0100) Subject: use startup_watchdog_disable() instead of stop_watchdog() upon startup. X-Git-Url: http://git.techno-innov.fr/?a=commitdiff_plain;h=75061cf96413be559c7ba96d269cbf5b6869f7a0;p=soft%2Flpc122x%2Fexamples use startup_watchdog_disable() instead of stop_watchdog() upon startup. --- diff --git a/adc/main.c b/adc/main.c index b4ef4e7..a8edb7c 100644 --- a/adc/main.c +++ b/adc/main.c @@ -121,7 +121,7 @@ void TMP36_display(int adc_num, int uart_num) 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() */ diff --git a/eeprom/main.c b/eeprom/main.c index 88383a5..1a4f00c 100644 --- a/eeprom/main.c +++ b/eeprom/main.c @@ -183,7 +183,7 @@ int module_desc_set(char* name, uint8_t module_version, uint16_t serial_num) 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() */ diff --git a/epaper/main.c b/epaper/main.c index 7633ea5..ae902ce 100644 --- a/epaper/main.c +++ b/epaper/main.c @@ -109,7 +109,7 @@ struct epaper_definition epaper_def = { 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() */ diff --git a/gpio_intr/main.c b/gpio_intr/main.c index 7ea3ad0..f404271 100644 --- a/gpio_intr/main.c +++ b/gpio_intr/main.c @@ -64,7 +64,7 @@ const struct pio button = LPC_GPIO_0_12; /* ISP button */ 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() */ diff --git a/i2c_temp/main.c b/i2c_temp/main.c index 1039383..f1b0c94 100644 --- a/i2c_temp/main.c +++ b/i2c_temp/main.c @@ -114,7 +114,7 @@ void temp_display(uint8_t addr, int uart_num) 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() */ diff --git a/lcd_char/main.c b/lcd_char/main.c index c1859a8..c095a92 100644 --- a/lcd_char/main.c +++ b/lcd_char/main.c @@ -126,7 +126,7 @@ struct lcdc_definition lcd_two = { 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() */ diff --git a/ledstrip/main.c b/ledstrip/main.c index fb0af3c..75596d8 100644 --- a/ledstrip/main.c +++ b/ledstrip/main.c @@ -80,7 +80,7 @@ const struct pio ws2812_data_out_pin = LPC_GPIO_0_19; /* Led control data pin */ 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() */ diff --git a/ultrasonic_sensor/main.c b/ultrasonic_sensor/main.c index 930acb3..4656180 100644 --- a/ultrasonic_sensor/main.c +++ b/ultrasonic_sensor/main.c @@ -66,7 +66,7 @@ const struct pio sensor = LPC_GPIO_0_7; /* Ultrasonic sensor signal */ 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() */