mbed library sources. Supersedes mbed-src.
Fork of mbed-dev by
Diff: targets/TARGET_STM/TARGET_STM32L0/analogin_api.c
- Revision:
- 153:fa9ff456f731
- Parent:
- 150:02e0a0aed4ec
- Child:
- 160:d5399cc887bb
diff -r 9a67f0b066fc -r fa9ff456f731 targets/TARGET_STM/TARGET_STM32L0/analogin_api.c --- a/targets/TARGET_STM/TARGET_STM32L0/analogin_api.c Thu Dec 15 11:48:27 2016 +0000 +++ b/targets/TARGET_STM/TARGET_STM32L0/analogin_api.c Tue Dec 20 17:27:56 2016 +0000 @@ -105,6 +105,7 @@ AdcHandle.Instance = (ADC_TypeDef *)(obj->adc); // Configure ADC channel + sConfig.Rank = ADC_RANK_CHANNEL_NUMBER; switch (obj->channel) { case 0: sConfig.Channel = ADC_CHANNEL_0;