summaryrefslogtreecommitdiff
path: root/src/cc1111/ao_arch.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-07-17 01:24:52 -0700
committerKeith Packard <keithp@keithp.com>2012-07-17 01:24:52 -0700
commita5d873d47b3b16ca32559b4de668bf07b25eddb0 (patch)
tree47c2ca395d776b4e4574ca59dbfdb49d8b6ea870 /src/cc1111/ao_arch.h
parent20877ae9de8bb5d3a29e2a96024e53afbd396f55 (diff)
altos: Place STM config values at fixed addresses for re-use
Just like cc1111, stick the serial number and radio calibration values at known fixed addresses so that when re-flashing the board, we can go find the existing values. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/cc1111/ao_arch.h')
-rw-r--r--src/cc1111/ao_arch.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/cc1111/ao_arch.h b/src/cc1111/ao_arch.h
index 8d9e4952..06b04b93 100644
--- a/src/cc1111/ao_arch.h
+++ b/src/cc1111/ao_arch.h
@@ -59,10 +59,12 @@
#define AO_ROMCONFIG_VERSION 2
-extern __code __at (0x00a0) uint16_t ao_romconfig_version;
-extern __code __at (0x00a2) uint16_t ao_romconfig_check;
-extern __code __at (0x00a4) uint16_t ao_serial_number;
-extern __code __at (0x00a6) uint32_t ao_radio_cal;
+#define AO_ROMCONFIG_SYMBOL(a) __code __at(a)
+
+extern AO_ROMCONFIG_SYMBOL(0x00a0) uint16_t ao_romconfig_version;
+extern AO_ROMCONFIG_SYMBOL(0x00a2) uint16_t ao_romconfig_check;
+extern AO_ROMCONFIG_SYMBOL(0x00a4) uint16_t ao_serial_number;
+extern AO_ROMCONFIG_SYMBOL(0x00a6) uint32_t ao_radio_cal;
#ifndef HAS_USB
#error Please define HAS_USB