aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/e300/battery/eeprom.c
diff options
context:
space:
mode:
authorMoritz Fischer <moritz.fischer@ettus.com>2016-01-05 13:57:04 -0800
committerMoritz Fischer <moritz.fischer@ettus.com>2016-01-26 18:25:24 +0100
commitea3040da12af46e5d227fe5edeb4d580e42d7658 (patch)
tree17ca2886d1a78ff34389b137bb4a240c3c80a1e0 /firmware/e300/battery/eeprom.c
parent71bce47ecfc34a4caa0fc508b4ee8e27974e19b7 (diff)
downloaduhd-ea3040da12af46e5d227fe5edeb4d580e42d7658.tar.gz
uhd-ea3040da12af46e5d227fe5edeb4d580e42d7658.tar.bz2
uhd-ea3040da12af46e5d227fe5edeb4d580e42d7658.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.c3
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;