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
Revision 161:bd0311f1ad86, committed 2017-05-27
- Comitter:
- tonnyleonard
- Date:
- Sat May 27 01:26:18 2017 +0000
- Parent:
- 160:307a9fd4de22
- Commit message:
- Testing ADC with shunt
Changed in this revision
| targets/TARGET_STM/TARGET_STM32L4/analogin_api.c | Show annotated file Show diff for this revision Revisions of this file |
--- 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;
