HAL_ChibiOS: fixed watchdog timeout setting

This commit is contained in:
Andrew Tridgell 2019-04-20 16:30:20 +10:00 committed by Randy Mackay
parent 756a629b24
commit 3222084f2d
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ void stm32_watchdog_init(void)
{ {
// setup for 2s reset // setup for 2s reset
IWDGD.KR = 0x5555; IWDGD.KR = 0x5555;
IWDGD.PR = 16; IWDGD.PR = 2; // div16
IWDGD.RLR = 0xFFF; IWDGD.RLR = 0xFFF;
IWDGD.KR = 0xCCCC; IWDGD.KR = 0xCCCC;
watchdog_enabled = true; watchdog_enabled = true;