From 5cc59a0a1e1a11e88a1ba0ca95b18def97f00ff6 Mon Sep 17 00:00:00 2001 From: krzysztof-cabaj Date: Mon, 9 Jun 2025 18:56:06 +0200 Subject: [PATCH] boards/nucleo-l432kc: add ADC configuration --- boards/nucleo-l432kc/include/periph_conf.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/boards/nucleo-l432kc/include/periph_conf.h b/boards/nucleo-l432kc/include/periph_conf.h index 9990dec58b..86ff08ecd0 100644 --- a/boards/nucleo-l432kc/include/periph_conf.h +++ b/boards/nucleo-l432kc/include/periph_conf.h @@ -115,7 +115,13 @@ static const spi_conf_t spi_config[] = { #define SPI_NUMOF ARRAY_SIZE(spi_config) /** @} */ -static const adc_conf_t adc_config[] = {{}}; +static const adc_conf_t adc_config[] = { + {GPIO_PIN(PORT_A, 0), .dev = 0, .chan = 5}, /* ADC12_IN5 */ + {GPIO_PIN(PORT_A, 1), .dev = 0, .chan = 6}, /* ADC12_IN6 */ + {GPIO_PIN(PORT_A, 3), .dev = 0, .chan = 8}, /* ADC12_IN8 */ + {GPIO_PIN(PORT_A, 4), .dev = 0, .chan = 9}, /* ADC12_IN9 */ + {GPIO_PIN(PORT_A, 7), .dev = 0, .chan = 12}, /* ADC12_IN12 */ +}; #define ADC_NUMOF ARRAY_SIZE(adc_config)