Home
last modified time | relevance | path

Searched refs:hdf_iwdg (Results 1 - 1 of 1) sorted by relevance

/drivers/hdf_core/adapter/platform/watchdog/
H A Dwatchdog_stm32f4xx.c31 static IWDG_TypeDef *hdf_iwdg = NULL; variable
276 hdf_iwdg = IWDG; // Point to watchdog register
277 hdf_iwdg->KR = IWDG_KEY_ENABLE;
278 hdf_iwdg->KR = IWDG_KEY_WRITE_ACCESS_ENABLE;
279 hdf_iwdg->PR = IWDG_PRESCALER_32; // 32 frequency division
280 hdf_iwdg->RLR = timeout - 1; // 32K crystal oscillator corresponds to 1-4096ms under 32 prescaled frequency
284 while ((hdf_iwdg->SR & (IWDG_SR_RVU | IWDG_SR_PVU)) != 0x00u) {
286 if ((hdf_iwdg->SR & (IWDG_SR_RVU | IWDG_SR_PVU)) != 0x00u) {
291 hdf_iwdg->KR = IWDG_KEY_RELOAD; // Reload initial value
353 if (hdf_iwdg !
[all...]

Completed in 1 milliseconds