30 #ifndef __STM32F4xx_WWDG_H
31 #define __STM32F4xx_WWDG_H
38 #include "stm32f4xx.h"
59 #define WWDG_Prescaler_1 ((uint32_t)0x00000000)
60 #define WWDG_Prescaler_2 ((uint32_t)0x00000080)
61 #define WWDG_Prescaler_4 ((uint32_t)0x00000100)
62 #define WWDG_Prescaler_8 ((uint32_t)0x00000180)
63 #define IS_WWDG_PRESCALER(PRESCALER) (((PRESCALER) == WWDG_Prescaler_1) || \
64 ((PRESCALER) == WWDG_Prescaler_2) || \
65 ((PRESCALER) == WWDG_Prescaler_4) || \
66 ((PRESCALER) == WWDG_Prescaler_8))
67 #define IS_WWDG_WINDOW_VALUE(VALUE) ((VALUE) <= 0x7F)
68 #define IS_WWDG_COUNTER(COUNTER) (((COUNTER) >= 0x40) && ((COUNTER) <= 0x7F))
void WWDG_Enable(uint8_t Counter)
Enables WWDG and load the counter value.
void WWDG_DeInit(void)
Deinitializes the WWDG peripheral registers to their default reset values.
void WWDG_SetCounter(uint8_t Counter)
Sets the WWDG counter value.
void WWDG_EnableIT(void)
Enables the WWDG Early Wakeup interrupt(EWI).
void WWDG_SetWindowValue(uint8_t WindowValue)
Sets the WWDG window value.
void WWDG_ClearFlag(void)
Clears Early Wakeup interrupt flag.
void WWDG_SetPrescaler(uint32_t WWDG_Prescaler)
Sets the WWDG Prescaler.
FlagStatus WWDG_GetFlagStatus(void)
Checks whether the Early Wakeup interrupt flag is set or not.