From b88b53b1f3360e44fe0a8e951d08222388f363f3 Mon Sep 17 00:00:00 2001 From: krzysztof-cabaj Date: Tue, 31 Oct 2023 21:04:27 +0100 Subject: [PATCH] boards/nucleo-l4r5zi:PWM config: Kconfig, Makefile.features, periph_conf.h --- boards/nucleo-l4r5zi/Kconfig | 1 + boards/nucleo-l4r5zi/Makefile.features | 1 + boards/nucleo-l4r5zi/include/periph_conf.h | 5 +++++ 3 files changed, 7 insertions(+) diff --git a/boards/nucleo-l4r5zi/Kconfig b/boards/nucleo-l4r5zi/Kconfig index faeda83cfb..5db0afd3a6 100644 --- a/boards/nucleo-l4r5zi/Kconfig +++ b/boards/nucleo-l4r5zi/Kconfig @@ -18,6 +18,7 @@ config BOARD_NUCLEO_L4R5ZI select HAS_PERIPH_ADC select HAS_PERIPH_I2C select HAS_PERIPH_LPUART + select HAS_PERIPH_PWM select HAS_PERIPH_RTC select HAS_PERIPH_RTT select HAS_PERIPH_SPI diff --git a/boards/nucleo-l4r5zi/Makefile.features b/boards/nucleo-l4r5zi/Makefile.features index dc8f256e03..be171d6a0a 100644 --- a/boards/nucleo-l4r5zi/Makefile.features +++ b/boards/nucleo-l4r5zi/Makefile.features @@ -5,6 +5,7 @@ CPU_MODEL = stm32l4r5zi FEATURES_PROVIDED += periph_adc FEATURES_PROVIDED += periph_i2c FEATURES_PROVIDED += periph_lpuart +FEATURES_PROVIDED += periph_pwm FEATURES_PROVIDED += periph_rtc FEATURES_PROVIDED += periph_rtt FEATURES_PROVIDED += periph_spi diff --git a/boards/nucleo-l4r5zi/include/periph_conf.h b/boards/nucleo-l4r5zi/include/periph_conf.h index 79908c2d81..987aecd0cd 100644 --- a/boards/nucleo-l4r5zi/include/periph_conf.h +++ b/boards/nucleo-l4r5zi/include/periph_conf.h @@ -167,6 +167,11 @@ static const adc_conf_t adc_config[] = { /** @} */ +static const pwm_conf_t pwm_config[] = {{},}; + +#define PWM_NUMOF ARRAY_SIZE(pwm_config) + + #ifdef __cplusplus } #endif