mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #2930 from bcostm/adcintch_F0
STM32F0xx - Use ADC internal channels specific definitionspull/2967/head
commit
53a52a1b56
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue