mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-02 10:24:11 +01:00
Merge remote-tracking branch 'origin/Bertrand/OP-1272_Fix_STM32F4_Watchdog_Freeze_In_Debug_Mode' into next
This commit is contained in:
commit
5866983ba3
@ -73,7 +73,7 @@ uint16_t PIOS_WDG_Init()
|
|||||||
delay = 0x0fff;
|
delay = 0x0fff;
|
||||||
}
|
}
|
||||||
#if defined(PIOS_INCLUDE_WDG)
|
#if defined(PIOS_INCLUDE_WDG)
|
||||||
DBGMCU_Config(DBGMCU_IWDG_STOP, ENABLE); // make the watchdog stop counting in debug mode
|
DBGMCU_APB1PeriphConfig(DBGMCU_IWDG_STOP, ENABLE); // OP-1272 : write in APB1 register
|
||||||
IWDG_WriteAccessCmd(IWDG_WriteAccess_Enable);
|
IWDG_WriteAccessCmd(IWDG_WriteAccess_Enable);
|
||||||
IWDG_SetPrescaler(IWDG_Prescaler_16);
|
IWDG_SetPrescaler(IWDG_Prescaler_16);
|
||||||
IWDG_SetReload(delay);
|
IWDG_SetReload(delay);
|
||||||
|
Loading…
Reference in New Issue
Block a user