Skip to content

Commit 4e276e2

Browse files
ydamigosgalak
authored andcommitted
board: arm: olimexino_stm32: Add PWM1
Add PWM1 on olimexino_stm32 Signed-off-by: Yannis Damigos <[email protected]>
1 parent 247782a commit 4e276e2

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

boards/arm/olimexino_stm32/Kconfig.defconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,11 @@ config SPI_1
3434

3535
endif # SPI
3636

37+
if PWM
38+
39+
config PWM_STM32_1
40+
default y
41+
42+
endif # PWM
43+
3744
endif # BOARD_OLIMEXINO_STM32

boards/arm/olimexino_stm32/pinmux.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ static const struct pin_config pinconf[] = {
3636
{STM32_PIN_PA6, STM32F1_PINMUX_FUNC_PA6_SPI1_MASTER_MISO},
3737
{STM32_PIN_PA7, STM32F1_PINMUX_FUNC_PA7_SPI1_MASTER_MOSI},
3838
#endif
39+
#ifdef CONFIG_PWM_STM32_1
40+
{STM32_PIN_PA8, STM32F1_PINMUX_FUNC_PA8_PWM1_CH1},
41+
#endif /* CONFIG_PWM_STM32_1 */
3942
};
4043

4144
static int pinmux_stm32_init(struct device *port)

0 commit comments

Comments
 (0)