STM8S/A Standard Peripherals Drivers
|
IWDG_Public_Functions
Functions | |
void | IWDG_Enable (void) |
Enables IWDG. | |
void | IWDG_ReloadCounter (void) |
Reloads IWDG counter. | |
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 Prescaler and Reload registers. |
Function Documentation
void IWDG_Enable | ( | void | ) |
void IWDG_ReloadCounter | ( | void | ) |
Reloads IWDG counter.
- Note:
- Write access should be enabled
Definition at line 89 of file stm8s_iwdg.c.
References IWDG, and IWDG_KEY_REFRESH.
void IWDG_SetPrescaler | ( | IWDG_Prescaler_TypeDef | IWDG_Prescaler | ) |
Sets IWDG Prescaler value.
- Note:
- Write access should be enabled
Definition at line 63 of file stm8s_iwdg.c.
References IS_IWDG_PRESCALER_OK, and IWDG.
void IWDG_SetReload | ( | uint8_t | IWDG_Reload | ) |
Sets IWDG Reload value.
- Note:
- Write access should be enabled
Definition at line 78 of file stm8s_iwdg.c.
References IWDG.
void IWDG_WriteAccessCmd | ( | IWDG_WriteAccess_TypeDef | IWDG_WriteAccess | ) |
Enables or disables write access to Prescaler and Reload registers.
Definition at line 48 of file stm8s_iwdg.c.
References IS_IWDG_WRITEACCESS_MODE_OK, and IWDG.