2.1.1.2 Functions
void DIAG_WWDT_Startup (void)
Checks that the Windowed Watchdog Timer (WWDT) is able to issue a timely system reset, that a WWDT counter reset in the open window does not cause a system reset and that a WWDT counter reset in the closed window causes a system reset. This diagnostic is intended to be executed at start-up before entering the main function as it involves multiple device resets. The diagnostic supports both the scenario where the WWDT is enabled (and thus locked) through the FUSE and when it is not. In the former scenario, the diagnostic execution time will depend on the timeout period chosen for the WWDT while in the latter scenario the WWDT is enabled with the shortest WWDT timeout period and disabled upon exiting the diagnostic.
diag_result_t DIAG_WWDT_GetResult (void)
Returns the result of the DIAG_WWDT_Startup diagnostic.
uint8_t DIAG_WWDT_GetRSTFRCopy (void)
Returns the copy/backup of the RSTFR. Call in main after performing the DIAG_WWDT_Startup diagnostic to ensure that the reset reason is handled by the application. This is required because the DIAG_WWDT_Startup diagnostic clears the RSTFR register.