4.10.2 Enhanced WDT
Enhanced Watchdog Timer
4.10.2.1 Introduction
The Enhanced WDT is a timer counting cycles of a separate on-chip 128kHz oscillator. The Enhanced WDT gives an interrupt or a system reset when the counter reaches a given time-out value. In normal operation mode, it is required that the system uses the WDR - watchdog timer reset - instruction to restart the counter before the time-out value is reached. If the system doesn't restart the counter, an interrupt or system reset will be issued.
4.10.2.2 Supported Device Families
ATmega32xx |
4.10.2.3 Required Header Files:
#include "mcc_generated_files/system/wdt.h"
4.10.2.4 Module Documentation
4.10.2.4.1 WDT
This file contains the API prototypes for the Watchdog Timer (WDT) driver.
Module description
This file contains the API prototypes for the Watchdog Timer (WDT) driver.
Functions
int8_t WDT_Initialize (void)
Initializes the WDT module.
bool WDT_GetInterruptFlagStatus (void)
Checks the Interrupt flag status of the WDT module.
void WDT_EnableInterrupt (void)
Enables the interrupt of the WDT module.
void WDT_DisableInterrupt (void)
Disables the interrupt of the WDT module.
void WDT_Enable (void)
Enables the WDT module.
void WDT_Disable (void)
Disables the WDT module.
void WDT_ChangeEnable (void)
Enables changing the settings of the WDT module.
void WDT_ChangeDisable (void)
Disables changing the settings of the WDT module.
Function Documentation
WDT_ChangeDisable()
void WDT_ChangeDisable (void )
Disables changing the settings of the WDT module.
|
None. |
WDT_ChangeEnable()
void WDT_ChangeEnable (void )
Enables changing the settings of the WDT module.
|
None. |
WDT_Disable()
void WDT_Disable (void )
Disables the WDT module.
|
None. |
WDT_DisableInterrupt()
void WDT_DisableInterrupt (void )
Disables the interrupt of the WDT module.
|
None. |
WDT_Enable()
void WDT_Enable (void )
Enables the WDT module.
|
None. |
WDT_EnableInterrupt()
void WDT_EnableInterrupt (void )
Enables the interrupt of the WDT module.
|
None. |
WDT_GetInterruptFlagStatus()
bool WDT_GetInterruptFlagStatus (void )
Checks the Interrupt flag status of the WDT module.
|
|
WDT_Initialize()
int8_t WDT_Initialize (void )
Initializes the WDT module.
|
|
4.10.2.5 File Documentation
4.10.2.5.1 source/wdt.c File Reference
This file contains the API implementations for the WDT module driver.
#include <avr/io.h> #include "../wdt.h"
Functions
int8_t WDT_Initialize (void)
Initializes the WDT module.
void WDT_EnableInterrupt (void)
Enables the interrupt of the WDT module.
void WDT_DisableInterrupt (void)
Disables the interrupt of the WDT module.
void WDT_Enable (void)
Enables the WDT module.
void WDT_Disable (void)
Disables the WDT module.
void WDT_ChangeEnable (void)
Enables changing the settings of the WDT module.
void WDT_ChangeDisable (void)
Disables changing the settings of the WDT module.
bool WDT_GetInterruptFlagStatus (void)
Checks the Interrupt flag status of the WDT module.
Detailed Description
This file contains the API implementations for the WDT module driver.
WDT Generated Driver File
4.10.2.5.2 source/wdt.h File Reference
#include "../system/utils/compiler.h" #include <stdint.h> #include <stdbool.h>
Functions
int8_t WDT_Initialize (void)
Initializes the WDT module.
bool WDT_GetInterruptFlagStatus (void)
Checks the Interrupt flag status of the WDT module.
void WDT_EnableInterrupt (void)
Enables the interrupt of the WDT module.
void WDT_DisableInterrupt (void)
Disables the interrupt of the WDT module.
void WDT_Enable (void)
Enables the WDT module.
void WDT_Disable (void)
Disables the WDT module.
void WDT_ChangeEnable (void)
Enables changing the settings of the WDT module.
void WDT_ChangeDisable (void)
Disables changing the settings of the WDT module.
Detailed Description
WDT Generated Driver API Header File