K64F: Fix the watchdog mode settings

Enable the Watchdog Timer for the low-power stop modes of operation,
including the VLPS used in deepsleep.
Enable the Watchdog Timer for the Debug mode.
pull/11773/head
Filip Jagodzinski 2019-11-04 10:58:56 +01:00
parent 8640da4f9d
commit 945a9b3ad5
1 changed files with 2 additions and 2 deletions

View File

@ -75,8 +75,8 @@ watchdog_status_t hal_watchdog_init(const watchdog_config_t *config)
cfg.enableInterrupt = false;
cfg.enableWindowMode = false;
cfg.workMode.enableWait = true;
cfg.workMode.enableStop = false;
cfg.workMode.enableDebug = false;
cfg.workMode.enableStop = true;
cfg.workMode.enableDebug = true;
const uint32_t prescaler = calculate_prescaler_value(config->timeout_ms);