test

Fork of mbed-dev by mbed official

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 */