STM8L15x Standard Peripherals Drivers: stm8l15x_iwdg.c File Reference
From STM8L15x/16x Standard Peripherals Drivers
|
STM8L15x Standard Peripherals Drivers
|
stm8l15x_iwdg.c File Reference
This file provides firmware functions to manage the following functionalities of the Independent watchdog (IWDG) peripheral:
- Prescaler and Counter configuration
- IWDG activation.
#include "stm8l15x_iwdg.h"
Go to the source code of this file.
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
This file provides firmware functions to manage the following functionalities of the Independent watchdog (IWDG) peripheral:
- Prescaler and Counter configuration
- IWDG activation.
- Attention:
THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
© COPYRIGHT 2011 STMicroelectronics
Definition in file stm8l15x_iwdg.c.