STM8L15x Standard Peripherals Drivers
|
WWDG driver modules. More...
Modules | |
WWDG_Exported_Macros | |
WWDG_Private_Functions | |
Defines | |
#define | BIT_MASK ((uint8_t)0x7F) |
Functions | |
void | WWDG_Enable (uint8_t Counter) |
Enables WWDG and load the counter value. | |
uint8_t | WWDG_GetCounter (void) |
Gets the WWDG Counter Value. | |
void | WWDG_Init (uint8_t Counter, uint8_t WindowValue) |
Initializes the WWDG peripheral. | |
void | WWDG_SetCounter (uint8_t Counter) |
Sets the WWDG counter value. | |
void | WWDG_SetWindowValue (uint8_t WindowValue) |
Sets the WWDG window value. | |
void | WWDG_SWReset (void) |
Generates immediate WWDG RESET. |
Detailed Description
WWDG driver modules.
Define Documentation
#define BIT_MASK ((uint8_t)0x7F) |
Definition at line 83 of file stm8l15x_wwdg.c.
Referenced by WWDG_Init(), WWDG_SetCounter(), and WWDG_SetWindowValue().
Function Documentation
void WWDG_Enable | ( | uint8_t | Counter | ) |
Enables WWDG and load the counter value.
Definition at line 181 of file stm8l15x_wwdg.c.
References IS_WWDG_COUNTER_VALUE, WWDG, and WWDG_CR_WDGA.
uint8_t WWDG_GetCounter | ( | void | ) |
Gets the WWDG Counter Value.
This value could be used to check if WWDG is in the window, where refresh is allowed.
Definition at line 210 of file stm8l15x_wwdg.c.
References WWDG.
Initializes the WWDG peripheral.
This function set Window Register = WindowValue, Counter Register according to Counter and ENABLE WWDG
Definition at line 113 of file stm8l15x_wwdg.c.
References BIT_MASK, IS_WWDG_WINDOW_LIMIT_VALUE, WWDG, WWDG_CR_WDGA, and WWDG_WR_RESET_VALUE.
void WWDG_SetCounter | ( | uint8_t | Counter | ) |
Sets the WWDG counter value.
Definition at line 150 of file stm8l15x_wwdg.c.
References BIT_MASK, IS_WWDG_COUNTER_VALUE, and WWDG.
void WWDG_SetWindowValue | ( | uint8_t | WindowValue | ) |
Sets the WWDG window value.
Definition at line 129 of file stm8l15x_wwdg.c.
References __IO, BIT_MASK, IS_WWDG_WINDOW_LIMIT_VALUE, and WWDG.
void WWDG_SWReset | ( | void | ) |
Generates immediate WWDG RESET.
Definition at line 220 of file stm8l15x_wwdg.c.
References WWDG, and WWDG_CR_WDGA.