Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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;