boards: arm: stm32f3_disco: enable PWM

Tested with tests/drivers/pwm/pwm_api/
(requires https://github.com/zephyrproject-rtos/zephyr/pull/27204)
and with oscillo.

Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
This commit is contained in:
Alexandre Bourdiol 2020-07-31 15:52:57 +02:00 committed by Carles Cufí
parent 8098ecbc02
commit cb12440322
4 changed files with 15 additions and 0 deletions

View file

@ -98,6 +98,9 @@ features:
+-----------+------------+-------------------------------------+
| IWDG | on-chip | Independent WatchDoG |
+-----------+------------+-------------------------------------+
| PWM | on-chip | pwm |
+-----------+------------+-------------------------------------+
Other hardware features are not yet supported on Zephyr porting.
@ -148,6 +151,7 @@ Default Zephyr Peripheral Mapping:
- LD8 : PE14
- LD9 : PE12
- LD10 : PE13
- PWM : PA8
System Clock
============

View file

@ -54,6 +54,9 @@ static const struct pin_config pinconf[] = {
{STM32_PIN_PD0, STM32F3_PINMUX_FUNC_PD0_CAN1_RX},
{STM32_PIN_PD1, STM32F3_PINMUX_FUNC_PD1_CAN1_TX},
#endif
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pwm1), okay) && CONFIG_PWM
{ STM32_PIN_PA8, STM32F3_PINMUX_FUNC_PA8_PWM1_CH1},
#endif
};
static int pinmux_stm32_init(struct device *port)

View file

@ -145,3 +145,10 @@
&iwdg {
status = "okay";
};
&timers1 {
status = "okay";
pwm1: pwm {
status = "okay";
};
};

View file

@ -17,3 +17,4 @@ supported:
- lsm303dlhc
- nvs
- can
- pwm