diff --git a/boards/rpi-pico/Makefile.features b/boards/rpi-pico/Makefile.features index f68cf169c8..b57a6d9cc7 100644 --- a/boards/rpi-pico/Makefile.features +++ b/boards/rpi-pico/Makefile.features @@ -4,5 +4,6 @@ CPU := rpx0xx FEATURES_PROVIDED += periph_adc FEATURES_PROVIDED += periph_i2c FEATURES_PROVIDED += periph_spi +FEATURES_PROVIDED += periph_pwm FEATURES_PROVIDED += periph_timer FEATURES_PROVIDED += periph_uart diff --git a/boards/rpi-pico/include/periph_conf.h b/boards/rpi-pico/include/periph_conf.h index 76d5abfa02..fec980584f 100644 --- a/boards/rpi-pico/include/periph_conf.h +++ b/boards/rpi-pico/include/periph_conf.h @@ -176,6 +176,23 @@ static const pio_i2c_conf_t pio_i2c_config[] = { #endif /** @} */ +/** + * @name PWM configuration + * @{ + */ +static const pwm_conf_t pwm_config[] = { + { + .pwm_slice = 4, + .chan = { + { .pin = GPIO_PIN(0, 25), .cc_chan = 1 }, /* rpi-pico onboard LED */ + { .pin = GPIO_UNDEF, .cc_chan = 0 }, + }, + }, +}; + +#define PWM_NUMOF ARRAY_SIZE(pwm_config) +/** @} */ + #ifdef __cplusplus } #endif