feed wdt in bootloader if enabled. Since it is impossible to disable wdt

This commit is contained in:
hathach
2018-11-19 17:01:45 +07:00
parent 37690823ac
commit 94e23a928c
10 changed files with 6385 additions and 6375 deletions

View File

@ -68,12 +68,6 @@ void board_init(void)
NRF_CLOCK->LFCLKSRC = CLOCK_LFCLKSRC_SRC_RC;
NRF_CLOCK->TASKS_LFCLKSTART = 1UL;
// stop WDT if started by application, when jumping from application using BLE DFU
if ( NRF_WDT->RUNSTATUS )
{
NRF_WDT->TASKS_START = 0;
}
button_init(BUTTON_DFU);
button_init(BUTTON_FRESET);
NRFX_DELAY_US(100); // wait for the pin state is stable