|
@@ -0,0 +1,19 @@
|
|
|
|
|
+void pet_wwdt(){
|
|
|
|
|
+ //MCU petting the WWDT:
|
|
|
|
|
+ /*
|
|
|
|
|
+ When the Window Watchdog Timer is in watchdog mode it must be periodically serviced to avoid a
|
|
|
|
|
+ hardware reset. This API must be called after the closed window of the watchdog has passed but before the watchdog resets the device.
|
|
|
|
|
+ */
|
|
|
|
|
+ DL_WWDT_restart(WWDT0);
|
|
|
|
|
+
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+void get_wwdt_behavior(){
|
|
|
|
|
+ /*
|
|
|
|
|
+ * Checks if the Window Watchdog Timer is actively running.
|
|
|
|
|
+ */
|
|
|
|
|
+ if (DL_WWDT_isRunning() == false){
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+}
|