hal_tick.h changed for the L432KC target in TARGET/../device/ in order to reassign the system ticker from TIM2 to TIM7, since TIM2 was needed as a 32bit encoder counter.
Dependents: Nucleo_L432KC_Quadrature_Decoder_with_ADC_and_DAC
Fork of mbed-dev by
Diff: targets/TARGET_STM/TARGET_STM32L4/analogin_api.c
- Revision:
- 161:bd0311f1ad86
- Parent:
- 150:02e0a0aed4ec
--- a/targets/TARGET_STM/TARGET_STM32L4/analogin_api.c Sat Mar 11 22:55:28 2017 +0000 +++ b/targets/TARGET_STM/TARGET_STM32L4/analogin_api.c Sat May 27 01:26:18 2017 +0000 @@ -163,8 +163,8 @@ } sConfig.Rank = ADC_REGULAR_RANK_1; - sConfig.SamplingTime = ADC_SAMPLETIME_47CYCLES_5; - sConfig.SingleDiff = ADC_SINGLE_ENDED; + sConfig.SamplingTime = ADC_SAMPLETIME_47CYCLES_5; //12 minimum, 47 by default + sConfig.SingleDiff = ADC_SINGLE_ENDED; // SINGlE/DIFFERENTIAL sConfig.OffsetNumber = ADC_OFFSET_NONE; sConfig.Offset = 0;