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.
Fork of mbed-dev by
Diff: targets/TARGET_ONSEMI/TARGET_NCS36510/analogin_api.c
- Revision:
- 161:2cc1468da177
- Parent:
- 153:fa9ff456f731
diff -r d5399cc887bb -r 2cc1468da177 targets/TARGET_ONSEMI/TARGET_NCS36510/analogin_api.c --- a/targets/TARGET_ONSEMI/TARGET_NCS36510/analogin_api.c Tue Mar 14 16:40:56 2017 +0000 +++ b/targets/TARGET_ONSEMI/TARGET_NCS36510/analogin_api.c Thu Mar 30 13:45:57 2017 +0100 @@ -88,7 +88,7 @@ /* Single sample, absolute conversion, scale = 1 */ obj->adcReg->CONTROL.WORD = ((0 << ADC_CONTROL_MODE_BIT_POS) | (1 << ADC_CONTROL_MEASTYPE_BIT_POS) | - (1 << ADC_CONTROL_INPUTSCALE_BIT_POS) | + (6 << ADC_CONTROL_INPUTSCALE_BIT_POS) | (((uint8_t)adc_pin) << ADC_CONTROL_MEAS_CH_BIT_POS)); /* Prescaler enabled; set to 7 */