drivers: pinmux: enable PWM pins on STM32WB
Enable PWM pins on STM32WB Signed-off-by: Rick Conrey <rick.conrey@witiproducts.com>
This commit is contained in:
parent
c78acb75e4
commit
69af47d058
|
@ -45,6 +45,38 @@
|
|||
#define STM32WBX_PINMUX_FUNC_PA9_SPI2_SCK \
|
||||
(STM32_PINMUX_ALT_FUNC_5 | STM32_PUSHPULL_NOPULL)
|
||||
|
||||
/* Timer 1 */
|
||||
#define STM32WBX_PINMUX_FUNC_PA8_TMR1_CH1 \
|
||||
(STM32_PINMUX_ALT_FUNC_1 | STM32_PUSHPULL_NOPULL)
|
||||
#define STM32WBX_PINMUX_FUNC_PA9_TMR1_CH2 \
|
||||
(STM32_PINMUX_ALT_FUNC_1 | STM32_PUSHPULL_NOPULL)
|
||||
#define STM32WBX_PINMUX_FUNC_PA10_TMR1_CH3 \
|
||||
(STM32_PINMUX_ALT_FUNC_1 | STM32_PUSHPULL_NOPULL)
|
||||
#define STM32WBX_PINMUX_FUNC_PA11_TMR1_CH4 \
|
||||
(STM32_PINMUX_ALT_FUNC_1 | STM32_PUSHPULL_NOPULL)
|
||||
|
||||
/* Timer 2 */
|
||||
#define STM32WBX_PINMUX_FUNC_PA0_TMR2_CH1 \
|
||||
(STM32_PINMUX_ALT_FUNC_1 | STM32_PUSHPULL_NOPULL)
|
||||
#define STM32WBX_PINMUX_FUNC_PA1_TMR2_CH2 \
|
||||
(STM32_PINMUX_ALT_FUNC_1 | STM32_PUSHPULL_NOPULL)
|
||||
#define STM32WBX_PINMUX_FUNC_PA2_TMR2_CH3 \
|
||||
(STM32_PINMUX_ALT_FUNC_1 | STM32_PUSHPULL_NOPULL)
|
||||
#define STM32WBX_PINMUX_FUNC_PA3_TMR2_CH4 \
|
||||
(STM32_PINMUX_ALT_FUNC_1 | STM32_PUSHPULL_NOPULL)
|
||||
#define STM32WBX_PINMUX_FUNC_PA5_TMR2_CH1 \
|
||||
(STM32_PINMUX_ALT_FUNC_1 | STM32_PUSHPULL_NOPULL)
|
||||
#define STM32WBX_PINMUX_FUNC_PA15_TMR2_CH1 \
|
||||
(STM32_PINMUX_ALT_FUNC_1 | STM32_PUSHPULL_NOPULL)
|
||||
|
||||
/* Timer 16 */
|
||||
#define STM32WBX_PINMUX_FUNC_PA6_TMR16_CH1 \
|
||||
(STM32_PINMUX_ALT_FUNC_14 | STM32_PUSHPULL_NOPULL)
|
||||
|
||||
/* Timer 17 */
|
||||
#define STM32WBX_PINMUX_FUNC_PA7_TMR17_CH1 \
|
||||
(STM32_PINMUX_ALT_FUNC_14 | STM32_PUSHPULL_NOPULL)
|
||||
|
||||
/* Port B */
|
||||
#define STM32WBX_PINMUX_FUNC_PB5_LPUART1_TX \
|
||||
(STM32_PINMUX_ALT_FUNC_8 | STM32_PUSHPULL_PULLUP)
|
||||
|
@ -85,6 +117,22 @@
|
|||
#define STM32WBX_PINMUX_FUNC_PB15_SPI2_MOSI \
|
||||
(STM32_PINMUX_ALT_FUNC_5 | STM32_PUSHPULL_NOPULL)
|
||||
|
||||
/* Timer 2 */
|
||||
#define STM32WBX_PINMUX_FUNC_PB3_TMR2_CH2 \
|
||||
(STM32_PINMUX_ALT_FUNC_1 | STM32_PUSHPULL_NOPULL)
|
||||
#define STM32WBX_PINMUX_FUNC_PB10_TMR2_CH3 \
|
||||
(STM32_PINMUX_ALT_FUNC_1 | STM32_PUSHPULL_NOPULL)
|
||||
#define STM32WBX_PINMUX_FUNC_PB11_TMR2_CH4 \
|
||||
(STM32_PINMUX_ALT_FUNC_1 | STM32_PUSHPULL_NOPULL)
|
||||
|
||||
/* Timer 16 */
|
||||
#define STM32WBX_PINMUX_FUNC_PB8_TMR16_CH1 \
|
||||
(STM32_PINMUX_ALT_FUNC_14 | STM32_PUSHPULL_NOPULL)
|
||||
|
||||
/* Timer 17 */
|
||||
#define STM32WBX_PINMUX_FUNC_PB9_TMR17_CH1 \
|
||||
(STM32_PINMUX_ALT_FUNC_14 | STM32_PUSHPULL_NOPULL)
|
||||
|
||||
/* Port C */
|
||||
#define STM32WBX_PINMUX_FUNC_PC0_LPUART1_RX \
|
||||
(STM32_PINMUX_ALT_FUNC_8 | STM32_PUSHPULL_NOPULL)
|
||||
|
@ -116,6 +164,12 @@
|
|||
#define STM32WBX_PINMUX_FUNC_PD4_SPI2_MOSI \
|
||||
(STM32_PINMUX_ALT_FUNC_5 | STM32_PUSHPULL_NOPULL)
|
||||
|
||||
/* Timer 1 */
|
||||
#define STM32WBX_PINMUX_FUNC_PD14_TMR1_CH1 \
|
||||
(STM32_PINMUX_ALT_FUNC_1 | STM32_PUSHPULL_NOPULL)
|
||||
#define STM32WBX_PINMUX_FUNC_PD15_TMR1_CH2 \
|
||||
(STM32_PINMUX_ALT_FUNC_1 | STM32_PUSHPULL_NOPULL)
|
||||
|
||||
/* Port E */
|
||||
|
||||
/* Port H */
|
||||
|
|
Loading…
Reference in a new issue