diff options
Diffstat (limited to 'eeprom_driver.h')
-rw-r--r-- | eeprom_driver.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/eeprom_driver.h b/eeprom_driver.h index 90cc8e3..bcd8814 100644 --- a/eeprom_driver.h +++ b/eeprom_driver.h @@ -61,13 +61,15 @@ #include "avr_compiler.h"
+#ifndef MAPPED_EEPROM_START
#define MAPPED_EEPROM_START 0x1000
+#endif
+
#define EEPROM_PAGESIZE 32
#define EEPROM(_pageAddr, _byteAddr) \
((uint8_t *) MAPPED_EEPROM_START)[_pageAddr*EEPROM_PAGESIZE + _byteAddr]
-
/* Definitions of macros. */
/*! \brief Enable EEPROM block sleep-when-not-used mode.
|