altos: TM v2 places the MMA6555 upside down compared to Tmega
[fw/altos] / src / cc1111 / ao_adc.c
index bfdc418a6ca2ae204c4f80aaa14726c67c0cf65c..4a58023d50474270d017167ef09240e99184775a 100644 (file)
@@ -144,7 +144,7 @@ ao_adc_isr(void) __interrupt 1
        }
 #endif /* telemini || telenano */
 
-#ifdef TELEFIRE_V_0_1
+#if defined(TELEFIRE_V_0_1) || defined(TELEFIRE_V_0_2)
        a = (uint8_t __xdata *) (&ao_data_ring[ao_data_head].adc.sense[0] + sequence - AO_ADC_FIRST_PIN);
        a[0] = ADCL;
        a[1] = ADCH;
@@ -153,6 +153,15 @@ ao_adc_isr(void) __interrupt 1
 #define GOT_ADC
 #endif /* TELEFIRE_V_0_1 */
 
+#ifdef TELEBT_V_1_0
+       a = (uint8_t __xdata *) (&ao_data_ring[ao_data_head].adc.batt);
+       a[0] = ADCL;
+       a[1] = ADCH;
+       if (0)
+               ;
+#define GOT_ADC
+#endif 
+
 #ifndef GOT_ADC
 #error No known ADC configuration set
 #endif