summaryrefslogtreecommitdiff
path: root/src/cc1111
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-08-26 18:46:02 -0700
committerKeith Packard <keithp@keithp.com>2013-08-26 18:47:27 -0700
commita73b02518fcbc9fc0807ed8e141d3a06e8ad8214 (patch)
treee3701ea26fa97e1f94457cb6108352f4d3f479c9 /src/cc1111
parentd54156caf856ab5570f050692b333a2c5d991265 (diff)
altos: Don't use ao_data on cc1111 projectstelemini
cc1111 ao_adc.c supplies the needed globals at this point, and linking both into the program leads to two different versions of each at different addresses (yay SDCC linker!) Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/cc1111')
-rw-r--r--src/cc1111/ao_adc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cc1111/ao_adc.c b/src/cc1111/ao_adc.c
index 97a39c4d..15429677 100644
--- a/src/cc1111/ao_adc.c
+++ b/src/cc1111/ao_adc.c
@@ -19,6 +19,9 @@
volatile __xdata struct ao_data ao_data_ring[AO_DATA_RING];
volatile __data uint8_t ao_data_head;
+#if (AO_DATA_ALL & ~(AO_DATA_ADC))
+volatile __data uint8_t ao_data_present;
+#endif
#ifdef TELENANO_V_0_1
# define AO_ADC_FIRST_PIN 1