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 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
if (!gWatchdogHandle) {
}
Instance Close Example
Watchdog Service Example
API
APIs for WDT