Francesco Pistone
/
FORIGO_Modula_V6_R2_DE_2019
new
Diff: watchdog.cpp
- Revision:
- 4:d32258ec411f
- Parent:
- 0:1e09cd7d66b4
--- a/watchdog.cpp Fri Jun 15 17:10:37 2018 +0000 +++ b/watchdog.cpp Wed Jun 27 15:33:42 2018 +0000 @@ -100,7 +100,7 @@ ReloadValue = (uint32_t)(timeout * (LsiFreq/Prescaler)); Calculated_timeout = ((float)(Prescaler * ReloadValue)) / LsiFreq; - printf("WATCHDOG set with prescaler:%d reload value: 0x%X - timeout:%f\n",Prescaler, ReloadValue, Calculated_timeout); + //printf("WATCHDOG set with prescaler:%d reload value: 0x%X - timeout:%f\n",Prescaler, ReloadValue, Calculated_timeout); IWDG->KR = 0x5555; //Disable write protection of IWDG registers IWDG->PR = PrescalerCode; //Set PR value