Merge pull request #2930 from bcostm/adcintch_F0

STM32F0xx - Use ADC internal channels specific definitions
pull/2967/head
Sam Grove 2016-10-07 11:13:43 -05:00 committed by GitHub
commit 53a52a1b56
1 changed files with 4 additions and 4 deletions

View File

@ -153,14 +153,14 @@ static inline uint16_t adc_read(analogin_t *obj) {
sConfig.Channel = ADC_CHANNEL_15;
break;
case 16:
sConfig.Channel = ADC_CHANNEL_16;
sConfig.Channel = ADC_CHANNEL_TEMPSENSOR;
break;
case 17:
sConfig.Channel = ADC_CHANNEL_17;
sConfig.Channel = ADC_CHANNEL_VREFINT;
break;
#ifdef ADC_CHANNEL_18
#ifdef ADC_CHANNEL_VBAT
case 18:
sConfig.Channel = ADC_CHANNEL_18;
sConfig.Channel = ADC_CHANNEL_VBAT;
break;
#endif
default: