1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-18 03:52:11 +01:00

Zero out watchdog register on init.

This commit is contained in:
Brian Webb 2012-05-24 18:04:42 -07:00
parent 8b98d48fc4
commit a434688b42

View File

@ -73,6 +73,7 @@ uint16_t PIOS_WDG_Init()
// watchdog flags now stored in backup registers // watchdog flags now stored in backup registers
PWR_BackupAccessCmd(ENABLE); PWR_BackupAccessCmd(ENABLE);
BKP_WriteBackupRegister(PIOS_WDG_REGISTER, 0x0);
wdg_configuration.bootup_flags = BKP_ReadBackupRegister(PIOS_WDG_REGISTER); wdg_configuration.bootup_flags = BKP_ReadBackupRegister(PIOS_WDG_REGISTER);
#endif #endif
return delay; return delay;