FM

Dependencies:   SimpleDMA eeprom mbed-rtos mbed FreescaleIAP

Fork of CDMS_CODE by shubham c

Revision:
343:cd7b1734f7a0
Parent:
338:d63eb331a67d
Child:
344:1675dbde0bae
--- a/main.cpp	Mon Jan 02 14:21:44 2017 +0000
+++ b/main.cpp	Wed Jan 04 10:55:22 2017 +0000
@@ -14,6 +14,8 @@
 #include "DefinitionsAndGlobals.h"
 #include "crc.h"
 #include "i2c.h"
+#include "eeprom.h"
+#include "E2PROM.h"
 #include "COM_SND_TM_functions.h"
 #include "Flash.h"
 #include "cdms_rtc.h"
@@ -84,9 +86,11 @@
     FCTN_CDMS_SD_INIT();/* sd card initialization*/
     
     CDMS_RESET_COUNTER++;
-    FCTN_CDMS_WR_FLASH(17,CDMS_RESET_COUNTER);
+    WRITE_TO_EEPROM(17,(int32_t)CDMS_RESET_COUNTER);
+    //FCTN_CDMS_WR_FLASH(17,CDMS_RESET_COUNTER);
     TIME_LATEST_CDSMS_RESET = FCTN_CDMS_RD_RTC() >> 7;
-    FCTN_CDMS_WR_FLASH(8,TIME_LATEST_CDSMS_RESET);
+    WRITE_TO_EEPROM(8,(int32_t)TIME_LATEST_CDSMS_RESET);
+    //FCTN_CDMS_WR_FLASH(8,TIME_LATEST_CDSMS_RESET);
     
     uint8_t test[512];
     for(int i =0; i<512; i++)