A board support package for the LPC4088 Display Module.

Dependencies:   DM_HttpServer DM_USBHost

Dependents:   lpc4088_displaymodule_emwin lpc4088_displaymodule_demo_sphere sampleGUI sampleEmptyGUI ... more

Fork of DMSupport by EmbeddedArtists AB

Files at this revision

API Documentation at this revision

Comitter:
embeddedartists
Date:
Wed Jan 07 13:16:17 2015 +0000
Parent:
17:4ea2509445ac
Child:
19:2efb6f5f69a4
Commit message:
Removed flag that disabled writing to the internal EEPROM

Changed in this revision

Memory/InternalEEPROM.cpp Show annotated file Show diff for this revision Revisions of this file
dm_board_config.h.txt Show annotated file Show diff for this revision Revisions of this file
--- 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
 }
--- a/dm_board_config.h.txt	Wed Jan 07 14:02:39 2015 +0100
+++ b/dm_board_config.h.txt	Wed Jan 07 13:16:17 2015 +0000
@@ -29,7 +29,6 @@
 // #define DM_BOARD_USE_TOUCH
 // #define DM_BOARD_USE_ETHERNET
 #define DM_BOARD_USE_FAST_UART
-// #define DM_BOARD_ENABLE_INT_EEPROM_WRITE
 // #define DM_BOARD_DISABLE_STANDARD_PRINTF
 // #define DM_BOARD_ENABLE_MEASSURING_PINS
 // #define DM_BOARD_BIOS_DEVELOPMENT