STM8L15x Standard Peripherals Drivers
|
IWDG driver modules. More...
Modules | |
IWDG_Exported_Constants | |
IWDG_Exported_Types | |
IWDG_Private_Functions | |
Functions | |
void | IWDG_Enable (void) |
Enables IWDG (write access to IWDG_PR and IWDG_RLR registers disabled). | |
void | IWDG_ReloadCounter (void) |
Reloads IWDG counter with value defined in the reload register (write access to IWDG_PR and IWDG_RLR registers disabled). | |
void | IWDG_SetPrescaler (IWDG_Prescaler_TypeDef IWDG_Prescaler) |
Sets IWDG Prescaler value. | |
void | IWDG_SetReload (uint8_t IWDG_Reload) |
Sets IWDG Reload value. | |
void | IWDG_WriteAccessCmd (IWDG_WriteAccess_TypeDef IWDG_WriteAccess) |
Enables or disables write access to IWDG_PR and IWDG_RLR registers. |
Detailed Description
IWDG driver modules.
Function Documentation
void IWDG_Enable | ( | void | ) |
Enables IWDG (write access to IWDG_PR and IWDG_RLR registers disabled).
Definition at line 193 of file stm8l15x_iwdg.c.
References IWDG, and IWDG_KEY_ENABLE.
void IWDG_ReloadCounter | ( | void | ) |
Reloads IWDG counter with value defined in the reload register (write access to IWDG_PR and IWDG_RLR registers disabled).
Definition at line 167 of file stm8l15x_iwdg.c.
References IWDG, and IWDG_KEY_REFRESH.
void IWDG_SetPrescaler | ( | IWDG_Prescaler_TypeDef | IWDG_Prescaler | ) |
Sets IWDG Prescaler value.
Definition at line 142 of file stm8l15x_iwdg.c.
References IS_IWDG_PRESCALER_VALUE, and IWDG.
void IWDG_SetReload | ( | uint8_t | IWDG_Reload | ) |
Sets IWDG Reload value.
- Note:
- Write access should be enabled
Definition at line 156 of file stm8l15x_iwdg.c.
References IWDG.
void IWDG_WriteAccessCmd | ( | IWDG_WriteAccess_TypeDef | IWDG_WriteAccess | ) |
Enables or disables write access to IWDG_PR and IWDG_RLR registers.
Definition at line 122 of file stm8l15x_iwdg.c.
References IS_IWDG_WRITE_ACCESS_MODE, and IWDG.