Skip to content
Permalink
Browse files

boards: nucleo_wb55rg: enable PWM2 on nucleo_wb55rg

enable PWM2 Ch 1 on nucleo_wb55rg

Signed-off-by: Rick Conrey <rick.conrey@witiproducts.com>
  • Loading branch information...
Rick Conrey authored and galak committed Jul 10, 2019
1 parent 4aa2175 commit bcd60189c2568bcb9e56df0af2d31d7bbd6a438a
@@ -164,6 +164,8 @@ The Zephyr nucleo_wb55rg board configuration supports the following hardware fea
+-----------+------------+-------------------------------------+
| SPI | on-chip | spi |
+-----------+------------+-------------------------------------+
| PWM | on-chip | pwm |
+-----------+------------+-------------------------------------+

Other hardware features are not yet supported on this Zephyr port.

@@ -196,6 +198,7 @@ Default Zephyr Peripheral Mapping:
- SPI_1_SCK : PA5 (arduino_spi)
- SPI_1_MISO : PA6 (arduino_spi)
- SPI_1_MOSI : PA7 (arduino_spi)
- PWM_2 CH 1 : PA0

System Clock
------------
@@ -81,6 +81,13 @@ arduino_spi: &spi1 {
status = "okay";
};

&timers2 {
status = "okay";
pwm {
status = "okay";
};
};

arduino_serial: &lpuart1 {
current-speed = <115200>;
status = "okay";
@@ -14,3 +14,4 @@ supported:
- i2c
- counter
- spi
- pwm
@@ -36,6 +36,9 @@ static const struct pin_config pinconf[] = {
{STM32_PIN_PA6, STM32WBX_PINMUX_FUNC_PA6_SPI1_MISO},
{STM32_PIN_PA7, STM32WBX_PINMUX_FUNC_PA7_SPI1_MOSI},
#endif /* CONFIG_SPI_1 */
#ifdef CONFIG_PWM_STM32_2
{STM32_PIN_PA0, STM32WBX_PINMUX_FUNC_PA0_TMR2_CH1},
#endif /* CONFIG_PWM_STM32_2 */
};

static int pinmux_stm32_init(struct device *port)

0 comments on commit bcd6018

Please sign in to comment.
You can’t perform that action at this time.