summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-05-18 02:54:30 -0700
committerKeith Packard <keithp@keithp.com>2013-05-18 02:54:30 -0700
commit52063c2679752033135fff928c7686e368d2a825 (patch)
tree107c2e87375416463562e7670b771cbd4b156ead /src
parente4385d29fc1b233b3ad56d4af68a175e760c1751 (diff)
altos: ao_data_get is in ao_data.c now, not ao_adc.c
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r--src/core/ao_adc.h4
-rw-r--r--src/core/ao_data.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/core/ao_adc.h b/src/core/ao_adc.h
index 0dd87080..373db1c4 100644
--- a/src/core/ao_adc.h
+++ b/src/core/ao_adc.h
@@ -28,10 +28,6 @@ ao_adc_poll(void);
void
ao_adc_sleep(void);
-/* Get a copy of the last complete sample set */
-void
-ao_data_get(__xdata struct ao_data *packet);
-
/* Initialize the A/D converter */
void
ao_adc_init(void);
diff --git a/src/core/ao_data.h b/src/core/ao_data.h
index 7e2f85d8..b0f086f8 100644
--- a/src/core/ao_data.h
+++ b/src/core/ao_data.h
@@ -82,6 +82,10 @@ struct ao_data {
#define ao_data_ring_next(n) (((n) + 1) & (AO_DATA_RING - 1))
#define ao_data_ring_prev(n) (((n) - 1) & (AO_DATA_RING - 1))
+/* Get a copy of the last complete sample set */
+void
+ao_data_get(__xdata struct ao_data *packet);
+
extern volatile __xdata struct ao_data ao_data_ring[AO_DATA_RING];
extern volatile __data uint8_t ao_data_head;
extern volatile __data uint8_t ao_data_present;