Functions | |
void | thread_ap_watchdog_HardResetHelper (void) |
This function is used to assist in performing a hard reset of the chip using Watch Dog Timer. More... | |
BOOL8 | thread_ap_watchdog_ConfigureTime (UINT8 time_s) |
This function sets the Watchdog timer value and restarts the watchdog. More... | |
void thread_ap_watchdog_HardResetHelper | ( | void | ) |
This function is used to assist in performing a hard reset of the chip using Watch Dog Timer.
This function does not take into consideration disabling interrupts, hence it is the responsibility of the caller to ensure that all interrupts are disabled before calling this API.
BOOL8 thread_ap_watchdog_ConfigureTime | ( | UINT8 | time_s | ) |
This function sets the Watchdog timer value and restarts the watchdog.
As it restarts the WDT, this function can also be used to pet the WDT from the application. This API expects time_s variable to be an "integral" number of seconds, ie, the Watchdog timer value should be set in increments of 1s. Allowed values for the timer are 2s to 5s. Any value less than 2s will cause the timer to be set to 2s. Any value more than 5s will cause the timer to be set to 5s.