AM64x MCU+ SDK  08.02.00
WATCHDOG

The WATCHDOG driver provides API for safety diagnostic which can detect a runaway CPU and generate either a reset or NMI (non-maskable interrupt) response. It generates resets or NMIs after a programmable period, or if no correct key sequence was written to the RTIWDKEY register.

Features Supported

  • Supports Watchdog interrupt mode.
  • Supports digital windowed Watchdog feature.

SysConfig Features

Note
It is strongly recommend to use SysConfig where it is available instead of using direct SW API calls. This will help simplify the SW application and also catch common mistakes early in the development cycle.
  • Selection of Watchdog instances.
  • Option to select Watchdog Window size.
  • Option to select Watchdog expiry time in millisecond.

Features NOT Supported

Important Usage Guidelines

  • Important Usage Guildelines

Example Usage

Include the below file to access the APIs

Instance Open Example

gWatchdogHandle = Watchdog_open(CONFIG_WDT0, &params);
if (!gWatchdogHandle) {
DebugP_assert(FALSE);
}

Instance Close Example

Watchdog_close(gWatchdogHandle);

Watchdog Service Example

Watchdog_clear(gWatchdogHandle);

API

APIs for WDT

Watchdog_paramsInit
void Watchdog_paramsInit(Watchdog_Params *params)
Function to set default values of Watchdog_Params in params.
watchdog.h
Watchdog_open
Watchdog_Handle Watchdog_open(uint8_t index, Watchdog_Params *params)
Opens a Watchdog object with the index and parameters specified, and returns a Watchdog_Handle.
Watchdog_Params
Watchdog Parameters.
Definition: watchdog_rti.h:163
Watchdog_close
void Watchdog_close(Watchdog_Handle handle)
The function closes a Watchdog peripheral specified by the Watchdog handle. It stops (holds) the Watc...
Watchdog_Params::resetMode
Watchdog_ResetMode resetMode
Definition: watchdog_rti.h:166
Watchdog_RESET_ON
@ Watchdog_RESET_ON
Definition: watchdog_rti.h:124
DebugP_assert
#define DebugP_assert(expression)
Function to call for assert check.
Definition: DebugP.h:159
Watchdog_clear
void Watchdog_clear(Watchdog_Handle handle)
The function clears the Watchdog to prevent a reset signal from being generated if the module is in W...