diff options
Diffstat (limited to '')
| -rw-r--r-- | spaghetti-monster/fsm-eeprom.c | 4 | ||||
| -rw-r--r-- | spaghetti-monster/fsm-eeprom.h | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/spaghetti-monster/fsm-eeprom.c b/spaghetti-monster/fsm-eeprom.c index 012e088..bb63c7e 100644 --- a/spaghetti-monster/fsm-eeprom.c +++ b/spaghetti-monster/fsm-eeprom.c @@ -23,7 +23,11 @@ #include "fsm-eeprom.h" #if EEPROM_BYTES > 0 +#ifdef EEPROM_OVERRIDE +uint8_t *eeprom; +#else uint8_t eeprom[EEPROM_BYTES]; +#endif uint8_t load_eeprom() { cli(); diff --git a/spaghetti-monster/fsm-eeprom.h b/spaghetti-monster/fsm-eeprom.h index b6e1aea..a668588 100644 --- a/spaghetti-monster/fsm-eeprom.h +++ b/spaghetti-monster/fsm-eeprom.h @@ -36,7 +36,11 @@ #if EEPROM_BYTES >= (EEPSIZE/2) #error Requested EEPROM_BYTES too big. #endif +#ifdef EEPROM_OVERRIDE +uint8_t *eeprom; +#else uint8_t eeprom[EEPROM_BYTES]; +#endif uint8_t load_eeprom(); // returns 1 for success, 0 for no data found void save_eeprom(); #define EEP_START (EEPSIZE/2) |
