stm32f1: Clean up some ADC definitions
[fw/altos] / src / stm32f1 / ao_adc_single_stm.c
index 01a3fa6a75c307892960c9b78a6f773b183610c0..feaba42d42a56222ca507131daf432331378e8de 100644 (file)
@@ -22,7 +22,7 @@
 
 static uint8_t                 ao_adc_ready;
 
-#define AO_ADC_CR2_VAL(start)  ((HAS_ADC_TEMP << STM_ADC_CR2_TSVREF) | \
+#define AO_ADC_CR2_VAL(start)  ((HAS_ADC_TEMP << STM_ADC_CR2_TSVREFE) |\
                                 ((start) << STM_ADC_CR2_SWSTART) |     \
                                 (0 << STM_ADC_CR2_JWSTART) |           \
                                 (0 << STM_ADC_CR2_EXTTRIG) |           \