diff options
Diffstat (limited to 'src/ao.h')
| -rw-r--r-- | src/ao.h | 8 | 
1 files changed, 8 insertions, 0 deletions
@@ -163,6 +163,11 @@ struct ao_adc {  #endif  #if HAS_ADC + +#ifndef HAS_ACCEL_REF +#error Please define HAS_ACCEL_REF +#endif +  /*   * ao_adc.c   */ @@ -178,6 +183,9 @@ struct ao_adc {   */  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  /* Trigger a conversion sequence (called from the timer interrupt) */  void  | 
