Merge pull request #5200 from nvlsianpu/nrf51_adcIn_range_extend

Extend nRF51 AnalogIn voltage range to 3.6 V
pull/5283/merge
Jimmy Brisson 2017-10-09 11:14:41 -05:00 committed by GitHub
commit 5c3ce0a84c
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ uint16_t analogin_read_u16(analogin_t *obj)
// initialization by assigment because IAR dosen't support variable initializer in declaration statement.
adc_channel.config.config.resolution = NRF_ADC_CONFIG_RES_10BIT;
adc_channel.config.config.input = NRF_ADC_CONFIG_SCALING_INPUT_FULL_SCALE;
adc_channel.config.config.input = NRF_ADC_CONFIG_SCALING_INPUT_ONE_THIRD;
adc_channel.config.config.reference = NRF_ADC_CONFIG_REF_VBG;
adc_channel.config.config.ain = (obj->adc_pin);
adc_channel.p_next = NULL;