108 #define KR_KEY_RELOAD ((uint16_t)0xAAAA) 109 #define KR_KEY_ENABLE ((uint16_t)0xCCCC) 144 IWDG->KR = IWDG_WriteAccess;
164 IWDG->PR = IWDG_Prescaler;
201 IWDG->WINR = WindowValue;
260 if ((
IWDG->SR & IWDG_FLAG) != (uint32_t)
RESET)
void IWDG_Enable(void)
Enables IWDG (write access to IWDG_PR and IWDG_RLR registers disabled).
#define IS_IWDG_FLAG(FLAG)
void assert_param(int val)
This file contains all the functions prototypes for the IWDG firmware library.
void IWDG_SetWindowValue(uint16_t WindowValue)
Sets the IWDG window value.
#define IS_IWDG_WINDOW_VALUE(VALUE)
void IWDG_WriteAccessCmd(uint16_t IWDG_WriteAccess)
Enables or disables write access to IWDG_PR and IWDG_RLR registers.
void IWDG_ReloadCounter(void)
Reloads IWDG counter with value defined in the reload register (write access to IWDG_PR and IWDG_RLR ...
#define IS_IWDG_RELOAD(RELOAD)
void IWDG_SetReload(uint16_t Reload)
Sets IWDG Reload value.
#define IS_IWDG_PRESCALER(PRESCALER)
void IWDG_SetPrescaler(uint8_t IWDG_Prescaler)
Sets IWDG Prescaler value.
FlagStatus IWDG_GetFlagStatus(uint16_t IWDG_FLAG)
Checks whether the specified IWDG flag is set or not.
#define IS_IWDG_WRITE_ACCESS(ACCESS)