drivers: pinmux: stm32: Add support for STM32F302x8
Add pin muxing for STM32F302x8 by sharing most of the definitions of the STM32F303xC. Add USART3 for both the 302x8 and the 303xC. Add a PWM that is specific to the 302x8. Signed-off-by: Galen Seitz <galens@seitzassoc.com>
This commit is contained in:
parent
8888aa9e29
commit
f5c146dad9
1 changed files with 10 additions and 1 deletions
|
@ -26,6 +26,11 @@
|
|||
#define STM32F3_PINMUX_FUNC_PA3_USART2_RX \
|
||||
(STM32_PINMUX_ALT_FUNC_7 | STM32_PUSHPULL_NOPULL)
|
||||
|
||||
#ifdef CONFIG_SOC_STM32F302X8
|
||||
#define STM32F3_PINMUX_FUNC_PA0_PWM2_CH1 \
|
||||
(STM32_PINMUX_ALT_FUNC_1 | STM32_PUSHPULL_NOPULL)
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_SOC_STM32F334X8
|
||||
#define STM32F3_PINMUX_FUNC_PD5_USART2_TX \
|
||||
(STM32_PINMUX_ALT_FUNC_7 | STM32_PUSHPULL_PULLUP)
|
||||
|
@ -33,7 +38,7 @@
|
|||
(STM32_PINMUX_ALT_FUNC_7 | STM32_PUSHPULL_NOPULL)
|
||||
#endif
|
||||
|
||||
#if CONFIG_SOC_STM32F303XC
|
||||
#if CONFIG_SOC_STM32F302X8 || CONFIG_SOC_STM32F303XC
|
||||
#define STM32F3_PINMUX_FUNC_PA9_I2C2_SCL \
|
||||
(STM32_PINMUX_ALT_FUNC_4 | STM32_OPENDRAIN_PULLUP)
|
||||
#define STM32F3_PINMUX_FUNC_PA10_I2C2_SDA \
|
||||
|
@ -46,6 +51,10 @@
|
|||
(STM32_PINMUX_ALT_FUNC_7 | STM32_PUSHPULL_PULLUP)
|
||||
#define STM32F3_PINMUX_FUNC_PB11_USART3_RX \
|
||||
(STM32_PINMUX_ALT_FUNC_7 | STM32_PUSHPULL_NOPULL)
|
||||
#define STM32F3_PINMUX_FUNC_PC10_USART3_TX \
|
||||
(STM32_PINMUX_ALT_FUNC_7 | STM32_PUSHPULL_PULLUP)
|
||||
#define STM32F3_PINMUX_FUNC_PC11_USART3_RX \
|
||||
(STM32_PINMUX_ALT_FUNC_7 | STM32_PUSHPULL_NOPULL)
|
||||
#define STM32F3_PINMUX_FUNC_PF0_I2C2_SDA \
|
||||
(STM32_PINMUX_ALT_FUNC_4 | STM32_OPENDRAIN_PULLUP)
|
||||
#define STM32F3_PINMUX_FUNC_PF1_I2C2_SCL \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue