summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-03-24 15:20:09 -0700
committerKeith Packard <keithp@keithp.com>2013-05-07 20:07:52 -0700
commit3cbec0292d5167bce5c23eeea95f7a2d13bccc79 (patch)
tree7a857447d413fac21fc4eda28556daaadd480bc5
parent4551be8b03a795ece94fd303a1f556c63c0a0096 (diff)
altos/stm: Always declare all romconfig variables
I haven't figured out how to assign addresses for specific initialized variables, so we'll just have to always declare all of them and make sure that we add new ones at the end. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--src/stm/ao_romconfig.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/stm/ao_romconfig.c b/src/stm/ao_romconfig.c
index cbb922ec..5da15072 100644
--- a/src/stm/ao_romconfig.c
+++ b/src/stm/ao_romconfig.c
@@ -20,6 +20,8 @@
AO_ROMCONFIG_SYMBOL (0) uint16_t ao_romconfig_version = AO_ROMCONFIG_VERSION;
AO_ROMCONFIG_SYMBOL (0) uint16_t ao_romconfig_check = ~AO_ROMCONFIG_VERSION;
AO_ROMCONFIG_SYMBOL (0) uint16_t ao_serial_number = 0;
-#ifdef AO_RADIO_CAL_DEFAULT
-AO_ROMCONFIG_SYMBOL (0) uint32_t ao_radio_cal = AO_RADIO_CAL_DEFAULT;
+#ifndef AO_RADIO_CAL_DEFAULT
+#define AO_RADIO_CAL_DEFAULT 0x01020304
#endif
+AO_ROMCONFIG_SYMBOL (0) uint32_t ao_radio_cal = AO_RADIO_CAL_DEFAULT;
+