Searched refs:inputctrl (Results 1 – 2 of 2) sorted by relevance
184 uint32_t inputctrl = 0; in adc_sam0_channel_setup() local189 inputctrl = ADC_INPUTCTRL_GAIN_1X; in adc_sam0_channel_setup()194 inputctrl = ADC_INPUTCTRL_GAIN_DIV2; in adc_sam0_channel_setup()199 inputctrl = ADC_INPUTCTRL_GAIN_2X; in adc_sam0_channel_setup()204 inputctrl = ADC_INPUTCTRL_GAIN_4X; in adc_sam0_channel_setup()209 inputctrl = ADC_INPUTCTRL_GAIN_8X; in adc_sam0_channel_setup()214 inputctrl = ADC_INPUTCTRL_GAIN_16X; in adc_sam0_channel_setup()222 inputctrl |= ADC_INPUTCTRL_MUXPOS(channel_cfg->input_positive); in adc_sam0_channel_setup()224 inputctrl |= ADC_INPUTCTRL_MUXNEG(channel_cfg->input_negative); in adc_sam0_channel_setup()228 inputctrl |= ADC_INPUTCTRL_MUXNEG_GND; in adc_sam0_channel_setup()[all …]
21 #define ADC_DIFF(adc) (inputctrl)