|
@@ -43,7 +43,7 @@
|
43
|
43
|
#include "persistent_store_api.h"
|
44
|
44
|
#include "../../inc/MarlinConfig.h"
|
45
|
45
|
|
46
|
|
-#if ENABLED(FLASH_EEPROM)
|
|
46
|
+#if ENABLED(FLASH_EEPROM_EMULATION)
|
47
|
47
|
|
48
|
48
|
extern "C" {
|
49
|
49
|
#include "lpc17xx_iap.h"
|
|
@@ -54,7 +54,7 @@ extern "C" {
|
54
|
54
|
#define EEPROM_SIZE (4096)
|
55
|
55
|
#define SECTOR_SIZE (32768)
|
56
|
56
|
#define EEPROM_SLOTS (SECTOR_SIZE/EEPROM_SIZE)
|
57
|
|
-#define EEPROM_ERASE (0xff)
|
|
57
|
+#define EEPROM_ERASE (0xFF)
|
58
|
58
|
#define SLOT_ADDRESS(sector, slot) (((uint8_t *)SECTOR_START(sector)) + slot * EEPROM_SIZE)
|
59
|
59
|
|
60
|
60
|
static uint8_t ram_eeprom[EEPROM_SIZE] __attribute__((aligned(4))) = {0};
|
|
@@ -126,6 +126,6 @@ bool PersistentStore::read_data(int &pos, uint8_t* value, size_t size, uint16_t
|
126
|
126
|
|
127
|
127
|
size_t PersistentStore::capacity() { return EEPROM_SIZE; }
|
128
|
128
|
|
129
|
|
-#endif // FLASH_EEPROM
|
|
129
|
+#endif // FLASH_EEPROM_EMULATION
|
130
|
130
|
#endif // EEPROM_SETTINGS
|
131
|
131
|
#endif // TARGET_LPC1768
|