From b2ef0c67d795cd655032964d9664b537ef3a10cc Mon Sep 17 00:00:00 2001 From: krzysztof-cabaj Date: Mon, 5 Aug 2024 16:07:04 +0200 Subject: [PATCH] boards/stm32l476g-disco: add initial PWM config --- boards/stm32l476g-disco/Makefile.features | 1 + boards/stm32l476g-disco/include/periph_conf.h | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/boards/stm32l476g-disco/Makefile.features b/boards/stm32l476g-disco/Makefile.features index 92ab935753..d6744b44ba 100644 --- a/boards/stm32l476g-disco/Makefile.features +++ b/boards/stm32l476g-disco/Makefile.features @@ -3,6 +3,7 @@ CPU_MODEL = stm32l476vg # Put defined MCU peripherals here (in alphabetical order) FEATURES_PROVIDED += periph_adc +FEATURES_PROVIDED += periph_pwm FEATURES_PROVIDED += periph_rtc FEATURES_PROVIDED += periph_rtt FEATURES_PROVIDED += periph_timer diff --git a/boards/stm32l476g-disco/include/periph_conf.h b/boards/stm32l476g-disco/include/periph_conf.h index 205f848059..1d9164ac6a 100644 --- a/boards/stm32l476g-disco/include/periph_conf.h +++ b/boards/stm32l476g-disco/include/periph_conf.h @@ -129,6 +129,15 @@ static const adc_conf_t adc_config[] = { #define ADC_NUMOF ARRAY_SIZE(adc_config) /** @} */ +/** + * @name PWM configuration + * @{ + */ +static const pwm_conf_t pwm_config[] = {{}}; + +#define PWM_NUMOF ARRAY_SIZE(pwm_config) +/** @} */ + #ifdef __cplusplus } #endif