/* ADC Enable Analog Watchdog for a Selected Channel.  */
void adc_enable_analog_watchdog_on_selected_channel(uint32_t adc, uint8_t chan)
/* ADC Enable Analog Watchdog for a Selected Channel.  */
void adc_enable_analog_watchdog_on_selected_channel(uint32_t adc, uint8_t chan)
{
	ADC_CFGR1(adc) = (ADC_CFGR1(adc) & ~ADC_CFGR1_AWD1CH) |
			  ADC_CFGR1_AWD1CH_VAL(chan);
	ADC_CFGR1(adc) |= ADC_CFGR1_AWD1EN | ADC_CFGR1_AWD1SGL;
}