Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: SDFileSystem ds3231 eeprom_Nikita mbed testUniGraphic_150217
Fork of Int_Demo_09May2017_Suhasini_HRavg_Nik_BT_ba_update4thJuly17_nikita7july by
Diff: eeprom_pgm.cpp
- Revision:
- 22:ffa88619551d
- Parent:
- 4:6bd81bb1790d
- Child:
- 24:d992ee8369f4
--- a/eeprom_pgm.cpp Wed Jun 21 08:39:10 2017 +0000
+++ b/eeprom_pgm.cpp Fri Jun 23 07:25:24 2017 +0000
@@ -9,7 +9,7 @@
-void eprom_write(uint32_t address, int8_t data)
+void eprom_write(uint32_t address, int32_t data)
{
rom.write(address ,data); // write data into the address
@@ -20,8 +20,8 @@
int eprom_read(uint32_t address) // readng the data from the specified address
{
- int8_t rdata;
+ int32_t rdata; // changed to int32_t
rom.read(address, rdata);
- ec.printf("Read back value=%u\n", rdata);
+ ec.printf("Read back value=%d\n", rdata);
return rdata;
}
\ No newline at end of file
