Skip to content
Snippets Groups Projects
Commit 6740eff3 authored by Christos Gentsos's avatar Christos Gentsos
Browse files

Main: enable PA10 adc input pin (ADC_PPERIPH) in the RTSB variant

parent 2c260cde
Branches
No related merge requests found
......@@ -28,6 +28,9 @@
#define PA07 GPIO(GPIO_PORTA, 7)
#define PA08 GPIO(GPIO_PORTA, 8)
#define PA09 GPIO(GPIO_PORTA, 9)
#ifdef MMRTSB
#define PA10 GPIO(GPIO_PORTA, 10)
#endif
#define PA13 GPIO(GPIO_PORTA, 13)
#define PA16 GPIO(GPIO_PORTA, 16)
#define PA17 GPIO(GPIO_PORTA, 17)
......
......@@ -99,6 +99,13 @@ void ADC_0_init(void)
gpio_set_pin_direction(PB03, GPIO_DIRECTION_OFF);
gpio_set_pin_function(PB03, PINMUX_PB03B_ADC_AIN11);
#ifdef MMRTSB
// Disable digital pin circuitry
gpio_set_pin_direction(PA10, GPIO_DIRECTION_OFF);
gpio_set_pin_function(PA10, PINMUX_PA10B_ADC_AIN18);
#endif
}
void EXTERNAL_IRQ_0_init(void)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment