mbed library sources. Supersedes mbed-src.
Dependents: Hobbyking_Cheetah_Compact Hobbyking_Cheetah_Compact_DRV8323_14bit Hobbyking_Cheetah_Compact_DRV8323_V51_201907 HKC_MiniCheetah ... more
Fork of mbed-dev by
Diff: targets/TARGET_ONSEMI/TARGET_NCS36510/analogin_api.c
- Revision:
- 161:2cc1468da177
- Parent:
- 153:fa9ff456f731
--- 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 */