From 7f97c2143ead91076498a372f4d1d9ad6db6a392 Mon Sep 17 00:00:00 2001 From: krzysztof-cabaj Date: Fri, 16 Aug 2024 10:00:23 +0200 Subject: [PATCH] boards/nucleo-f439zi: add initial ADC support --- boards/nucleo-f439zi/Makefile.features | 1 + boards/nucleo-f439zi/include/periph_conf.h | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/boards/nucleo-f439zi/Makefile.features b/boards/nucleo-f439zi/Makefile.features index 8abb89362d..8411620c5b 100644 --- a/boards/nucleo-f439zi/Makefile.features +++ b/boards/nucleo-f439zi/Makefile.features @@ -2,6 +2,7 @@ CPU = stm32 CPU_MODEL = stm32f439zi # Put defined MCU peripherals here (in alphabetical order) +FEATURES_PROVIDED += periph_adc FEATURES_PROVIDED += periph_dma FEATURES_PROVIDED += periph_eth FEATURES_PROVIDED += periph_i2c diff --git a/boards/nucleo-f439zi/include/periph_conf.h b/boards/nucleo-f439zi/include/periph_conf.h index aabd705105..febb5ac9e7 100644 --- a/boards/nucleo-f439zi/include/periph_conf.h +++ b/boards/nucleo-f439zi/include/periph_conf.h @@ -198,6 +198,10 @@ static const eth_conf_t eth_config = { #define ETH_DMA_ISR isr_dma2_stream0 /** @} */ +static const adc_conf_t adc_config[] = {{}}; + +#define ADC_NUMOF ARRAY_SIZE(adc_config) + #ifdef __cplusplus } #endif