/* Initialises an ADC interface, Prepares an ADC hardware interface for sampling */
int32_t hal_adc_init(adc_dev_t *adc)
/* Initialises an ADC interface, Prepares an ADC hardware interface for sampling */
int32_t hal_adc_init(adc_dev_t *adc)
{
	adc->priv = &hal_adc[adc->port];
	analogin_init(adc->priv, adc_pin2chan[adc->port][0]);
	return 0;
}