49 #define KR_KEY_Reload ((uint16_t)0xAAAA) 50 #define KR_KEY_Enable ((uint16_t)0xCCCC) 96 IWDG->KR = IWDG_WriteAccess;
116 IWDG->PR = IWDG_Prescaler;
166 if ((
IWDG->SR & IWDG_FLAG) != (uint32_t)
RESET)
void IWDG_WriteAccessCmd(uint16_t IWDG_WriteAccess)
Enables or disables write access to IWDG_PR and IWDG_RLR registers.
#define IS_IWDG_FLAG(FLAG)
void IWDG_Enable(void)
Enables IWDG (write access to IWDG_PR and IWDG_RLR registers disabled).
void assert_param(int val)
This file contains all the functions prototypes for the IWDG firmware library.
void IWDG_SetReload(uint16_t Reload)
Sets IWDG Reload value.
void IWDG_SetPrescaler(uint8_t IWDG_Prescaler)
Sets IWDG Prescaler value.
#define IS_IWDG_RELOAD(RELOAD)
FlagStatus IWDG_GetFlagStatus(uint16_t IWDG_FLAG)
Checks whether the specified IWDG flag is set or not.
#define IS_IWDG_PRESCALER(PRESCALER)
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_WRITE_ACCESS(ACCESS)