Hallo,

für den ADC-Empfang möchte ich eine Funktion schreiben:
Code:
static uint16_t get_adcb(uint8_t channel)
{
	ADCB.CH1.CTRL |= 0x80;
	while(!(ADCB.CH1.INTFLAGS && 0x01)); 
	return ADCB.CH1.RES;
	ADCB.CH1.INTFLAGS = 0x01;
}
mit channel soll der ADC-Kanal übergeben werden. Wie setzte ich den channel statt CH1 "hübsch" ein?

Günter