STM8S/A Standard Peripherals Drivers
|
This file contains all functions prototypes and macros for the IWDG peripheral. More...
#include "stm8s.h"
Go to the source code of this file.
Defines | |
#define | IS_IWDG_PRESCALER_OK(VALUE) |
Macro used by the assert function in order to check the different values of the prescaler. | |
#define | IS_IWDG_WRITEACCESS_MODE_OK(MODE) (((MODE) == IWDG_WriteAccess_Enable) || ((MODE) == IWDG_WriteAccess_Disable)) |
Macro used by the assert function in order to check the different values of the counter register. | |
#define | IWDG_KEY_ENABLE ((uint8_t)0xCC) |
Define used to start the watchdog counter down. | |
#define | IWDG_KEY_REFRESH ((uint8_t)0xAA) |
Define used to prevent watchdog reset. | |
Enumerations | |
enum | IWDG_Prescaler_TypeDef { IWDG_Prescaler_4 = (uint8_t)0x00, IWDG_Prescaler_8 = (uint8_t)0x01, IWDG_Prescaler_16 = (uint8_t)0x02, IWDG_Prescaler_32 = (uint8_t)0x03, IWDG_Prescaler_64 = (uint8_t)0x04, IWDG_Prescaler_128 = (uint8_t)0x05, IWDG_Prescaler_256 = (uint8_t)0x06 } |
IWDG prescaler enumaration. More... | |
enum | IWDG_WriteAccess_TypeDef { IWDG_WriteAccess_Enable = (uint8_t)0x55, IWDG_WriteAccess_Disable = (uint8_t)0x00 } |
IWDG write access enumeration. More... | |
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. |
Detailed Description
This file contains all functions prototypes and macros for the IWDG peripheral.
- Attention:
© COPYRIGHT 2014 STMicroelectronics
Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:
http://www.st.com/software_license_agreement_liberty_v2
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file stm8s_iwdg.h.