100 #define KR_KEY_RELOAD ((uint16_t)0xAAAA)
101 #define KR_KEY_ENABLE ((uint16_t)0xCCCC)
135 assert_param(IS_IWDG_WRITE_ACCESS(IWDG_WriteAccess));
136 IWDG->KR = IWDG_WriteAccess;
155 assert_param(IS_IWDG_PRESCALER(IWDG_Prescaler));
156 IWDG->PR = IWDG_Prescaler;
168 assert_param(IS_IWDG_RELOAD(Reload));
180 IWDG->KR = KR_KEY_RELOAD;
206 IWDG->KR = KR_KEY_ENABLE;
235 FlagStatus bitstatus = RESET;
237 assert_param(IS_IWDG_FLAG(IWDG_FLAG));
238 if ((IWDG->SR & IWDG_FLAG) != (uint32_t)RESET)
FlagStatus IWDG_GetFlagStatus(uint16_t IWDG_FLAG)
Checks whether the specified IWDG flag is set or not.
void IWDG_WriteAccessCmd(uint16_t IWDG_WriteAccess)
Enables or disables write access to IWDG_PR and IWDG_RLR registers.
void IWDG_Enable(void)
Enables IWDG (write access to IWDG_PR and IWDG_RLR registers disabled).
void IWDG_SetPrescaler(uint8_t IWDG_Prescaler)
Sets IWDG Prescaler value.
void IWDG_ReloadCounter(void)
Reloads IWDG counter with value defined in the reload register (write access to IWDG_PR and IWDG_RLR ...
This file contains all the functions prototypes for the IWDG firmware library.
void IWDG_SetReload(uint16_t Reload)
Sets IWDG Reload value.