ADuCM302x Device Drivers API Reference Manual
Release 3.1.2.0
|
Watchdog Timer (WDT) Driver. More...
Modules | |
Static Configuration | |
Enumerations | |
enum | ADI_WDT_RESULT { ADI_WDT_SUCCESS, ADI_WDT_FAILURE_LOCKED } |
Functions | |
ADI_WDT_RESULT | adi_wdt_Enable (bool const bEnable, ADI_CALLBACK const pfCallback) |
WDT Enable. More... | |
void | adi_wdt_Kick (void) |
WDT Reset. More... | |
void | adi_wdt_GetCount (uint16_t *const pCurCount) |
WDT Read Count. More... | |
Watchdog Timer (WDT) Driver.
The watchdog timer driver allows the user to enable the timer with the static configuration parameters, reset the timer, and read the timer count. No interface is provided for setting the timer parameters are runtime since the WDT may only be configured once for the program lifetime. The timer is disabled by default by the ADuCM4x50 boot kernel.
enum ADI_WDT_RESULT |
ADI_WDT_RESULT adi_wdt_Enable | ( | bool const | bEnable, |
ADI_CALLBACK const | pfCallback | ||
) |
WDT Enable.
Enables/disables the WDT with the paramters supplied in adi_wdt_config.h
[in] | bEnable | : True to turn WDT on, false to turn it off |
[in] | pfCallback | : If interrupt mode is enabled, specify application callback function, otherwise simply pass NULL for the argument. |
void adi_wdt_Kick | ( | void | ) |
WDT Reset.
Resets the WDT
Definition at line 172 of file adi_wdt.c.
Referenced by adi_wdt_GetCount().