diff options
author | Moritz Fischer <moritz.fischer@ettus.com> | 2016-01-05 13:57:04 -0800 |
---|---|---|
committer | Moritz Fischer <moritz.fischer@ettus.com> | 2016-01-26 18:27:09 +0100 |
commit | 2ba7395f88df4a0ad73621a978f2fa3043234d32 (patch) | |
tree | 378ea22f84d4aec106a7c955381574a4800bd09d /firmware/e300/battery/eeprom.c | |
parent | 45335d1e1ca9da7872f4ab9a91b9d214e5ef6ba6 (diff) | |
download | uhd-2ba7395f88df4a0ad73621a978f2fa3043234d32.tar.gz uhd-2ba7395f88df4a0ad73621a978f2fa3043234d32.tar.bz2 uhd-2ba7395f88df4a0ad73621a978f2fa3043234d32.zip |
firmware: e3xx: Added .eeprom section that gets written.
The EEPROM section was not getting written by make install,
so whatever was in there is in there.
Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
Diffstat (limited to 'firmware/e300/battery/eeprom.c')
-rw-r--r-- | firmware/e300/battery/eeprom.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/e300/battery/eeprom.c b/firmware/e300/battery/eeprom.c index f8bc172d2..79b1f9052 100644 --- a/firmware/e300/battery/eeprom.c +++ b/firmware/e300/battery/eeprom.c @@ -16,6 +16,9 @@ #include "eeprom.h" #include <avr/eeprom.h> +/* default values for eeprom */ +char eeprom[] EEMEM = {0x00, 0x00, 0x00}; + /* the avr libc wants it this way ... */ static uint8_t* EEPROM_AUTOBOOT_OFFSET = (uint8_t *) 0x00; static uint16_t *EEPROM_LAST_FULL_OFFSET = (uint16_t *) 0x04; |