boards: nucleo_wb55rg: enable PWM2 on nucleo_wb55rg

enable PWM2 Ch 1 on nucleo_wb55rg

Signed-off-by: Rick Conrey <rick.conrey@witiproducts.com>
This commit is contained in:
Rick Conrey 2019-07-10 13:19:33 -07:00 committed by Kumar Gala
parent 4aa21750de
commit bcd60189c2
4 changed files with 14 additions and 0 deletions

View File

@ -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
------------

View File

@ -81,6 +81,13 @@ arduino_spi: &spi1 {
status = "okay";
};
&timers2 {
status = "okay";
pwm {
status = "okay";
};
};
arduino_serial: &lpuart1 {
current-speed = <115200>;
status = "okay";

View File

@ -14,3 +14,4 @@ supported:
- i2c
- counter
- spi
- pwm

View File

@ -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)