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.

Version: WDT Driver Version 1.0.0
Functions

Function Documentation

WDT_ChangeDisable()

void WDT_ChangeDisable (void )

Disables changing the settings of the WDT module.

Parameters:
None.
Returns:

None.

WDT_ChangeEnable()

void WDT_ChangeEnable (void )

Enables changing the settings of the WDT module.

Parameters:
None.
Returns:

None.

WDT_Disable()

void WDT_Disable (void )

Disables the WDT module.

Parameters:
None.
Returns:

None.

WDT_DisableInterrupt()

void WDT_DisableInterrupt (void )

Disables the interrupt of the WDT module.

Parameters:
None.
Returns:

None.

WDT_Enable()

void WDT_Enable (void )

Enables the WDT module.

Parameters:
None.
Returns:

None.

WDT_EnableInterrupt()

void WDT_EnableInterrupt (void )

Enables the interrupt of the WDT module.

Parameters:
None.
Returns:

None.

WDT_GetInterruptFlagStatus()

bool WDT_GetInterruptFlagStatus (void )

Checks the Interrupt flag status of the WDT module.

Parameters:
None.
Return values:
True

- Watchdog Clock Reset detected.

False

- No Watchdog Clock Reset detected.

WDT_Initialize()

int8_t WDT_Initialize (void )

Initializes the WDT module.

Parameters:
None.
Return values:
0

- WDT initialization was successful.

1

- WDT initialization was not successful.

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

Detailed Description

This file contains the API implementations for the WDT module driver.

WDT Generated Driver File

Version: WDT Driver Version 1.0.0

4.10.2.5.2 source/wdt.h File Reference

#include "../system/utils/compiler.h"
#include <stdint.h>
#include <stdbool.h>

Functions

Detailed Description

WDT Generated Driver API Header File