Exemple #1
0
static void initAdcHwChannel(adc_channel_e hwChannel) {
	GPIO_TypeDef* port = getAdcChannelPort(hwChannel);
	int pin = getAdcChannelPin(hwChannel);

	initAdcPin(port, pin, "hw");
}
Exemple #2
0
static void initAdcHwChannel(adc_channel_e hwChannel) {
	brain_pin_e pin = getAdcChannelBrainPin("adc", hwChannel);

	initAdcPin(pin, "hw");
}
Exemple #3
0
static void initAdcHwChannel(adc_channel_e hwChannel) {
	ioportid_t port = getAdcChannelPort(hwChannel);
	int pin = getAdcChannelPin(hwChannel);

	initAdcPin(port, pin, "hw");
}