export test

Dependencies:   SDFileSystem ds3231 eeprom_Nikita mbed testUniGraphic_150217

Fork of Int_Demo_09May2017_Suhasini_HRavg_Nikita_ili9341 by nikita teggi

Revision:
24:d992ee8369f4
Parent:
22:ffa88619551d
Child:
31:37d3ae1fa1eb
--- a/eeprom_pgm.cpp	Fri Jun 23 07:26:55 2017 +0000
+++ b/eeprom_pgm.cpp	Sat Jun 24 10:24:32 2017 +0000
@@ -15,13 +15,39 @@
  
 }
 
+void eprom_write_8(uint32_t address, int8_t data) 
+{
+    rom.write(address ,data);           // write data into the address
+ 
+}
+
+void eprom_write_16(uint32_t address, int16_t data) 
+{
+    rom.write(address ,data);           // write data into the address
+ 
+}
 
 
-
-int eprom_read(uint32_t address)       // readng the data from the specified address
+int32_t eprom_read(uint32_t address)       // readng the data from the specified address
 {
     int32_t rdata;                     // changed to int32_t
     rom.read(address, rdata);        
-    ec.printf("Read back value=%d\n", rdata);  
+   // ec.printf("Read back value=%d\n", rdata);  
+    return rdata;
+}
+
+int8_t eprom_read_8(uint32_t address)       // readng the data from the specified address
+{
+    int8_t rdata;                     // changed to int32_t
+    rom.read(address, rdata);        
+    //ec.printf("Read back value=%d\n", rdata);  
+    return rdata;
+}
+
+int16_t eprom_read_16(uint32_t address)       // readng the data from the specified address
+{
+    int16_t rdata;                     // changed to int32_t
+    rom.read(address, rdata);        
+    //ec.printf("Read back value=%d\n", rdata);  
     return rdata;
 }
\ No newline at end of file