11 #ifndef __MG32L003_WWDG_H 12 #define __MG32L003_WWDG_H 39 #define WWDG_PRESCALER_MIN ((uint32_t)0x00000000U) 40 #define WWDG_PRESCALER_MAX ((uint32_t)0x000FFFFFU) 49 #define WWDG_WINDOW_MIN ((uint8_t)0x00000010U) 50 #define WWDG_WINDOW_MAX ((uint8_t)0x000000FFU) 51 #define WWDG_RELOAD_MIN ((uint8_t)0x00000020U) 52 #define WWDG_RELOAD_MAX ((uint8_t)0x000000FFU) 63 #define IS_WWDG_PRESCALER_VALUE(VALUE) ((VALUE) <= WWDG_PRESCALER_MAX) 65 #define IS_WWDG_WINDOW_VALUE(VALUE) (((VALUE) >= WWDG_WINDOW_MIN) && \ 66 ((VALUE) <= WWDG_WINDOW_MAX)) 68 #define IS_WWDG_RELOAD_VALUE(VALUE) (((VALUE) >= WWDG_RELOAD_MIN) && \ 69 ((VALUE) <= WWDG_RELOAD_MAX)) 78 void WWDG_Cmd(FunctionalState NewState);
void WWDG_IT_Cmd(FunctionalState NewState)
Enables or disable the WWDG's interrupt.
Definition: mg32l003_wwdg.c:90
void WWDG_DeInit(void)
Deinitializes the WWDG peripheral registers to their default reset values.
Definition: mg32l003_wwdg.c:38
void WWDG_SetCounter(uint8_t Counter)
Sets the WWDG counter value.
Definition: mg32l003_wwdg.c:108
void WWDG_Cmd(FunctionalState NewState)
Enables or disables the WWDG peripheral.
Definition: mg32l003_wwdg.c:123
void WWDG_SetWindowValue(uint8_t WindowValue)
Sets the WWDG window value.
Definition: mg32l003_wwdg.c:68
void WWDG_ClearFlag(void)
Clears Early Wakeup interrupt flag.
Definition: mg32l003_wwdg.c:152
void WWDG_SetPrescaler(uint32_t WWDG_Prescaler)
Sets the WWDG Prescaler.
Definition: mg32l003_wwdg.c:49
FlagStatus WWDG_GetFlagStatus(void)
Checks whether the Early Wakeup interrupt flag is set or not.
Definition: mg32l003_wwdg.c:142