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: DM_FATFileSystem DM_HttpServer DM_USBHost EthernetInterface USBDevice mbed-rpc mbed-rtos mbed-src
Fork of DMSupport by
Diff: Memory/InternalEEPROM.cpp
- Revision:
- 18:e5eb986b2a83
- Parent:
- 17:4ea2509445ac
- Child:
- 20:9df19da50290
diff -r 4ea2509445ac -r e5eb986b2a83 Memory/InternalEEPROM.cpp
--- a/Memory/InternalEEPROM.cpp	Wed Jan 07 14:02:39 2015 +0100
+++ b/Memory/InternalEEPROM.cpp	Wed Jan 07 13:16:17 2015 +0000
@@ -16,7 +16,6 @@
 
 #include "mbed.h"
 #include "InternalEEPROM.h"
-#include "dm_board_config.h"
 
 
 /******************************************************************************
@@ -176,7 +175,6 @@
 
 int InternalEEPROM::write(uint32_t pageAddr, uint32_t pageOffset, const uint8_t* data, uint32_t size)
 {
-#if defined(DM_BOARD_ENABLE_INT_EEPROM_WRITE)
   uint32_t numWritten = 0;
   uint32_t writeOffset = (pageOffset & (EEPROM_PAGE_SIZE - 1));
   uint32_t writeSize = EEPROM_PAGE_SIZE - writeOffset;
@@ -201,15 +199,10 @@
     writeSize = EEPROM_PAGE_SIZE;
   }
   return numWritten;
-#else
-  return 0;
-#endif
 }
 
 void InternalEEPROM::erasePage(uint32_t pageAddr)
 {
-#if defined(DM_BOARD_ENABLE_INT_EEPROM_WRITE)
-    
   powerUp();
 
   clearInterrupt(EEPROM_INT_ENDOFRW);
@@ -220,5 +213,4 @@
     waitForInterrupt(EEPROM_INT_ENDOFRW);
   }
   eraseOrProgramPage(pageAddr);
-#endif
 }
    