X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fcore%2Fao_adc.h;h=373db1c4794ccf81ad5f4496e3ba997c59d29860;hb=57b4d82dee10b142b820aa306028a288a85214f6;hp=db5bfab31c86f1e801fb13e9f703cf7dabcc129d;hpb=040a6eb119451026e1ec7c3a6a8e76b439c632d5;p=fw%2Faltos diff --git a/src/core/ao_adc.h b/src/core/ao_adc.h index db5bfab3..373db1c4 100644 --- a/src/core/ao_adc.h +++ b/src/core/ao_adc.h @@ -18,30 +18,7 @@ #ifndef _AO_ADC_H_ #define _AO_ADC_H_ - - -/* - * One set of samples read from the A/D converter or telemetry - */ - - -/* - * ao_adc.c - */ - -#define ao_adc_ring_next(n) (((n) + 1) & (AO_ADC_RING - 1)) -#define ao_adc_ring_prev(n) (((n) - 1) & (AO_ADC_RING - 1)) - - -/* - * A/D data is stored in a ring, with the next sample to be written - * at ao_adc_head - */ -extern volatile __xdata struct ao_adc ao_adc_ring[AO_ADC_RING]; -extern volatile __data uint8_t ao_adc_head; -#if HAS_ACCEL_REF -extern volatile __xdata uint16_t ao_accel_ref[AO_ADC_RING]; -#endif +#include /* Trigger a conversion sequence (called from the timer interrupt) */ void @@ -51,10 +28,6 @@ ao_adc_poll(void); void ao_adc_sleep(void); -/* Get a copy of the last complete A/D sample set */ -void -ao_adc_get(__xdata struct ao_adc *packet); - /* Initialize the A/D converter */ void ao_adc_init(void);