MG32L003 Standard Peripherals Firmware Library
Macros | Functions
mg32l003_wwdg.h File Reference

This file contains all the functions prototypes for the WWDG firmware library. More...

#include "mg32l003.h"

Go to the source code of this file.

Macros

#define WWDG_PRESCALER_MIN   ((uint32_t)0x00000000U)
 
#define WWDG_PRESCALER_MAX   ((uint32_t)0x000FFFFFU)
 
#define WWDG_WINDOW_MIN   ((uint8_t)0x00000010U)
 
#define WWDG_WINDOW_MAX   ((uint8_t)0x000000FFU)
 
#define WWDG_RELOAD_MIN   ((uint8_t)0x00000020U)
 
#define WWDG_RELOAD_MAX   ((uint8_t)0x000000FFU)
 
#define IS_WWDG_PRESCALER_VALUE(VALUE)   ((VALUE) <= WWDG_PRESCALER_MAX)
 
#define IS_WWDG_WINDOW_VALUE(VALUE)
 
#define IS_WWDG_RELOAD_VALUE(VALUE)
 

Functions

void WWDG_DeInit (void)
 Deinitializes the WWDG peripheral registers to their default reset values. More...
 
void WWDG_SetPrescaler (uint32_t WWDG_Prescaler)
 Sets the WWDG Prescaler. More...
 
void WWDG_SetWindowValue (uint8_t WindowValue)
 Sets the WWDG window value. More...
 
void WWDG_IT_Cmd (FunctionalState NewState)
 Enables or disable the WWDG's interrupt. More...
 
void WWDG_SetCounter (uint8_t Counter)
 Sets the WWDG counter value. More...
 
void WWDG_Cmd (FunctionalState NewState)
 Enables or disables the WWDG peripheral. More...
 
FlagStatus WWDG_GetFlagStatus (void)
 Checks whether the Early Wakeup interrupt flag is set or not. More...
 
void WWDG_ClearFlag (void)
 Clears Early Wakeup interrupt flag. More...
 

Detailed Description

This file contains all the functions prototypes for the WWDG firmware library.

Author
megawin Application Team
Version
V0.0.5
Date
13-August-2024