working version

Dependencies:   mbed mbed-rtos SimpleDMA FreescaleIAP eeprom

Fork of CDMS_CODE_FM_28JAN2017 by samp Srinivasan

Revision:
357:f3d48d62e00e
Parent:
289:9bd62b69874c
--- a/RESET_functions.h	Sat Feb 10 09:06:26 2018 +0000
+++ b/RESET_functions.h	Sun Apr 03 15:35:53 2022 +0000
@@ -1,6 +1,7 @@
 
 void RESET_COMRX();
 void RESET_RTC();
+void RESET_WATCHDOG();
 
 void RESET_COMRX()
 {
@@ -35,4 +36,15 @@
     gCS_RTC=0;
     spi.write(0x8F);
     spi.write(0x00);
+}
+
+void RESET_WATCHDOG(){
+    gPC.printf("\r WD\n");
+    int i=0;
+    WDTrigger = 1;
+    while(i<5){
+        i++;
+    }
+    WDTrigger = 0;
+    
 }
\ No newline at end of file