drivers: pinmux: stm32: add pinmux support for ADC of stm32
This commit adds pinmux defines for all the external ADC lines supported by stm32. All defines are named after the datasheet of the corresponding product lines. Signed-off-by: Song Qiang <songqiang1304521@gmail.com>
This commit is contained in:
parent
da56cad3a4
commit
5e942638a2
|
@ -108,4 +108,37 @@
|
|||
#define STM32F0_PINMUX_FUNC_PD1_CAN_TX \
|
||||
(STM32_PINMUX_ALT_FUNC_0 | STM32_PUSHPULL_NOPULL)
|
||||
|
||||
#define STM32F0_PINMUX_FUNC_PA0_ADC_IN0 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F0_PINMUX_FUNC_PA1_ADC_IN1 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F0_PINMUX_FUNC_PA2_ADC_IN2 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F0_PINMUX_FUNC_PA3_ADC_IN3 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F0_PINMUX_FUNC_PA4_ADC_IN4 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F0_PINMUX_FUNC_PA5_ADC_IN5 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F0_PINMUX_FUNC_PA6_ADC_IN6 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F0_PINMUX_FUNC_PA7_ADC_IN7 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F0_PINMUX_FUNC_PB0_ADC_IN8 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F0_PINMUX_FUNC_PB1_ADC_IN9 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F0_PINMUX_FUNC_PC0_ADC_IN10 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F0_PINMUX_FUNC_PC1_ADC_IN11 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F0_PINMUX_FUNC_PC2_ADC_IN12 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F0_PINMUX_FUNC_PC3_ADC_IN13 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F0_PINMUX_FUNC_PC4_ADC_IN14 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F0_PINMUX_FUNC_PC5_ADC_IN15 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#endif /* ZEPHYR_DRIVERS_PINMUX_STM32_PINMUX_STM32F0_H_ */
|
||||
|
|
|
@ -70,4 +70,26 @@
|
|||
|
||||
#define STM32F1_PINMUX_FUNC_PA8_PWM1_CH1 STM32_PIN_PWM
|
||||
|
||||
#define STM32F1_PINMUX_FUNC_PF6_ADC3_IN4 STM32_CNF_IN_ANALOG
|
||||
#define STM32F1_PINMUX_FUNC_PF7_ADC3_IN5 STM32_CNF_IN_ANALOG
|
||||
#define STM32F1_PINMUX_FUNC_PF8_ADC3_IN6 STM32_CNF_IN_ANALOG
|
||||
#define STM32F1_PINMUX_FUNC_PF9_ADC3_IN7 STM32_CNF_IN_ANALOG
|
||||
#define STM32F1_PINMUX_FUNC_PF10_ADC3_IN8 STM32_CNF_IN_ANALOG
|
||||
#define STM32F1_PINMUX_FUNC_PC0_ADC123_IN10 STM32_CNF_IN_ANALOG
|
||||
#define STM32F1_PINMUX_FUNC_PC1_ADC123_IN11 STM32_CNF_IN_ANALOG
|
||||
#define STM32F1_PINMUX_FUNC_PC2_ADC123_IN12 STM32_CNF_IN_ANALOG
|
||||
#define STM32F1_PINMUX_FUNC_PC3_ADC123_IN13 STM32_CNF_IN_ANALOG
|
||||
#define STM32F1_PINMUX_FUNC_PA0_ADC123_IN0 STM32_CNF_IN_ANALOG
|
||||
#define STM32F1_PINMUX_FUNC_PA1_ADC123_IN1 STM32_CNF_IN_ANALOG
|
||||
#define STM32F1_PINMUX_FUNC_PA2_ADC123_IN2 STM32_CNF_IN_ANALOG
|
||||
#define STM32F1_PINMUX_FUNC_PA3_ADC123_IN3 STM32_CNF_IN_ANALOG
|
||||
#define STM32F1_PINMUX_FUNC_PA4_ADC12_IN4 STM32_CNF_IN_ANALOG
|
||||
#define STM32F1_PINMUX_FUNC_PA5_ADC12_IN5 STM32_CNF_IN_ANALOG
|
||||
#define STM32F1_PINMUX_FUNC_PA6_ADC12_IN6 STM32_CNF_IN_ANALOG
|
||||
#define STM32F1_PINMUX_FUNC_PA7_ADC12_IN7 STM32_CNF_IN_ANALOG
|
||||
#define STM32F1_PINMUX_FUNC_PC4_ADC12_IN14 STM32_CNF_IN_ANALOG
|
||||
#define STM32F1_PINMUX_FUNC_PC4_ADC12_IN15 STM32_CNF_IN_ANALOG
|
||||
#define STM32F1_PINMUX_FUNC_PB0_ADC12_IN8 STM32_CNF_IN_ANALOG
|
||||
#define STM32F1_PINMUX_FUNC_PB1_ADC12_IN9 STM32_CNF_IN_ANALOG
|
||||
|
||||
#endif /* ZEPHYR_DRIVERS_PINMUX_STM32_PINMUX_STM32F1_H_ */
|
||||
|
|
|
@ -24,25 +24,44 @@
|
|||
#define STM32F2_PINMUX_FUNC_PA1_ETH \
|
||||
(STM32_PINMUX_ALT_FUNC_11 | STM32_PUSHPULL_NOPULL | \
|
||||
STM32_OSPEEDR_VERY_HIGH_SPEED)
|
||||
#define STM32F2_PINMUX_FUNC_PA0_ADC123_IN0 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F2_PINMUX_FUNC_PA1_UART4_RX \
|
||||
(STM32_PINMUX_ALT_FUNC_8 | STM32_PUSHPULL_NOPULL)
|
||||
#define STM32F2_PINMUX_FUNC_PA1_ADC123_IN1 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F2_PINMUX_FUNC_PA2_USART2_TX \
|
||||
(STM32_PINMUX_ALT_FUNC_7 | STM32_PUSHPULL_PULLUP)
|
||||
#define STM32F2_PINMUX_FUNC_PA2_ETH \
|
||||
(STM32_PINMUX_ALT_FUNC_11 | STM32_PUSHPULL_NOPULL | \
|
||||
STM32_OSPEEDR_VERY_HIGH_SPEED)
|
||||
#define STM32F2_PINMUX_FUNC_PA2_ADC123_IN2 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F2_PINMUX_FUNC_PA3_USART2_RX \
|
||||
(STM32_PINMUX_ALT_FUNC_7 | STM32_PUSHPULL_NOPULL)
|
||||
#define STM32F2_PINMUX_FUNC_PA3_ETH \
|
||||
(STM32_PINMUX_ALT_FUNC_11 | STM32_PUSHPULL_NOPULL | \
|
||||
STM32_OSPEEDR_VERY_HIGH_SPEED)
|
||||
#define STM32F2_PINMUX_FUNC_PA3_ADC123_IN3 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F2_PINMUX_FUNC_PA4_ADC12_IN4 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F2_PINMUX_FUNC_PA5_ADC12_IN5 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F2_PINMUX_FUNC_PA6_ADC12_IN6 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F2_PINMUX_FUNC_PA7_ETH \
|
||||
(STM32_PINMUX_ALT_FUNC_11 | STM32_PUSHPULL_NOPULL | \
|
||||
STM32_OSPEEDR_VERY_HIGH_SPEED)
|
||||
#define STM32F2_PINMUX_FUNC_PA7_ADC12_IN7 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F2_PINMUX_FUNC_PA9_USART1_TX \
|
||||
(STM32_PINMUX_ALT_FUNC_7 | STM32_PUSHPULL_PULLUP)
|
||||
|
@ -57,6 +76,12 @@
|
|||
(STM32_PINMUX_ALT_FUNC_10 | STM32_PUSHPULL_NOPULL)
|
||||
|
||||
/* Port B */
|
||||
#define STM32F2_PINMUX_FUNC_PB0_ADC12_IN8 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F2_PINMUX_FUNC_PB1_ADC12_IN9 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F2_PINMUX_FUNC_PB6_USART1_TX \
|
||||
(STM32_PINMUX_ALT_FUNC_7 | STM32_PUSHPULL_PULLUP)
|
||||
|
||||
|
@ -81,17 +106,32 @@
|
|||
STM32_OSPEEDR_VERY_HIGH_SPEED)
|
||||
|
||||
/* Port C */
|
||||
#define STM32F2_PINMUX_FUNC_PC0_ADC123_IN10 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F2_PINMUX_FUNC_PC1_ETH \
|
||||
(STM32_PINMUX_ALT_FUNC_11 | STM32_PUSHPULL_NOPULL | \
|
||||
STM32_OSPEEDR_VERY_HIGH_SPEED)
|
||||
#define STM32F2_PINMUX_FUNC_PC1_ADC123_IN11 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F2_PINMUX_FUNC_PC2_ADC123_IN12 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F2_PINMUX_FUNC_PC3_ADC123_IN13 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F2_PINMUX_FUNC_PC4_ETH \
|
||||
(STM32_PINMUX_ALT_FUNC_11 | STM32_PUSHPULL_NOPULL | \
|
||||
STM32_OSPEEDR_VERY_HIGH_SPEED)
|
||||
#define STM32F2_PINMUX_FUNC_PC4_ADC12_IN14 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F2_PINMUX_FUNC_PC5_ETH \
|
||||
(STM32_PINMUX_ALT_FUNC_11 | STM32_PUSHPULL_NOPULL | \
|
||||
STM32_OSPEEDR_VERY_HIGH_SPEED)
|
||||
#define STM32F2_PINMUX_FUNC_PC5_ADC12_IN15 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F2_PINMUX_FUNC_PC6_USART6_TX \
|
||||
(STM32_PINMUX_ALT_FUNC_8 | STM32_PUSHPULL_PULLUP)
|
||||
|
@ -131,6 +171,22 @@
|
|||
/* Port E */
|
||||
|
||||
/* Port F */
|
||||
#define STM32F2_PINMUX_FUNC_PF3_ADC3_IN9 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F2_PINMUX_FUNC_PF4_ADC3_IN14 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F2_PINMUX_FUNC_PF5_ADC3_IN15 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F2_PINMUX_FUNC_PF6_ADC3_IN4 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F2_PINMUX_FUNC_PF7_ADC3_IN5 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F2_PINMUX_FUNC_PF8_ADC3_IN6 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F2_PINMUX_FUNC_PF9_ADC3_IN7 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F2_PINMUX_FUNC_PF10_ADC3_IN8 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
/* Port G */
|
||||
#define STM32F2_PINMUX_FUNC_PG9_USART6_RX \
|
||||
|
|
|
@ -115,4 +115,85 @@
|
|||
#define STM32F3_PINMUX_FUNC_PB15_SPI2_MOSI \
|
||||
(STM32_PINMUX_ALT_FUNC_5 | STM32_PUSHPULL_NOPULL)
|
||||
|
||||
#define STM32F3_PINMUX_FUNC_PF2_ADC12_IN10 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F3_PINMUX_FUNC_PF4_ADC1_IN5 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F3_PINMUX_FUNC_PC0_ADC12_IN6 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F3_PINMUX_FUNC_PC1_ADC12_IN7 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F3_PINMUX_FUNC_PC2_ADC12_IN8 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F3_PINMUX_FUNC_PC3_ADC12_IN9 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F3_PINMUX_FUNC_PA0_ADC1_IN1 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F3_PINMUX_FUNC_PA1_ADC1_IN2 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F3_PINMUX_FUNC_PA2_ADC1_IN3 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F3_PINMUX_FUNC_PA3_ADC1_IN4 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F3_PINMUX_FUNC_PA4_ADC2_IN1 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F3_PINMUX_FUNC_PA5_ADC2_IN2 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F3_PINMUX_FUNC_PA6_ADC2_IN3 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F3_PINMUX_FUNC_PA7_ADC2_IN4 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F3_PINMUX_FUNC_PC4_ADC2_IN5 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F3_PINMUX_FUNC_PC5_ADC2_IN11 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F3_PINMUX_FUNC_PB0_ADC3_IN12 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F3_PINMUX_FUNC_PB1_ADC3_IN1 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F3_PINMUX_FUNC_PB2_ADC2_IN12 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F3_PINMUX_FUNC_PE7_ADC3_IN13 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F3_PINMUX_FUNC_PE8_ADC34_IN6 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F3_PINMUX_FUNC_PE9_ADC3_IN2 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F3_PINMUX_FUNC_PE10_ADC3_IN14 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F3_PINMUX_FUNC_PE11_ADC3_IN15 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F3_PINMUX_FUNC_PE12_ADC3_IN16 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F3_PINMUX_FUNC_PE13_ADC3_IN3 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F3_PINMUX_FUNC_PE14_ADC4_IN1 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F3_PINMUX_FUNC_PE15_ADC4_IN12 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F3_PINMUX_FUNC_PB11_ADC12_IN14 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F3_PINMUX_FUNC_PB12_ADC4_IN3 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F3_PINMUX_FUNC_PB13_ADC3_IN5 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F3_PINMUX_FUNC_PB14_ADC4_IN4 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F3_PINMUX_FUNC_PB15_ADC4_IN5 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F3_PINMUX_FUNC_PD8_ADC4_IN12 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F3_PINMUX_FUNC_PD9_ADC4_IN13 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F3_PINMUX_FUNC_PD10_ADC34_IN7 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F3_PINMUX_FUNC_PD11_ADC12_IN8 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F3_PINMUX_FUNC_PD12_ADC34_IN9 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F3_PINMUX_FUNC_PD13_ADC34_IN10 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32F3_PINMUX_FUNC_PD14_ADC34_IN11 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#endif /* ZEPHYR_DRIVERS_PINMUX_STM32_PINMUX_STM32F3_H_ */
|
||||
|
|
|
@ -28,6 +28,8 @@
|
|||
#define STM32F4_PINMUX_FUNC_PA0_ETH \
|
||||
(STM32_PINMUX_ALT_FUNC_11 | STM32_PUSHPULL_NOPULL | \
|
||||
STM32_OSPEEDR_VERY_HIGH_SPEED)
|
||||
#define STM32F4_PINMUX_FUNC_PA0_ADC123_IN0 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F4_PINMUX_FUNC_PA1_I2S4_SD \
|
||||
(STM32_PINMUX_ALT_FUNC_5 | STM32_PUSHPULL_PULLUP)
|
||||
|
@ -38,18 +40,24 @@
|
|||
#define STM32F4_PINMUX_FUNC_PA1_ETH \
|
||||
(STM32_PINMUX_ALT_FUNC_11 | STM32_PUSHPULL_NOPULL | \
|
||||
STM32_OSPEEDR_VERY_HIGH_SPEED)
|
||||
#define STM32F4_PINMUX_FUNC_PA1_ADC123_IN1 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F4_PINMUX_FUNC_PA2_USART2_TX \
|
||||
(STM32_PINMUX_ALT_FUNC_7 | STM32_PUSHPULL_PULLUP)
|
||||
#define STM32F4_PINMUX_FUNC_PA2_ETH \
|
||||
(STM32_PINMUX_ALT_FUNC_11 | STM32_PUSHPULL_NOPULL | \
|
||||
STM32_OSPEEDR_VERY_HIGH_SPEED)
|
||||
#define STM32F4_PINMUX_FUNC_PA2_ADC123_IN2 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F4_PINMUX_FUNC_PA3_USART2_RX \
|
||||
(STM32_PINMUX_ALT_FUNC_7 | STM32_PUSHPULL_NOPULL)
|
||||
#define STM32F4_PINMUX_FUNC_PA3_ETH \
|
||||
(STM32_PINMUX_ALT_FUNC_11 | STM32_PUSHPULL_NOPULL | \
|
||||
STM32_OSPEEDR_VERY_HIGH_SPEED)
|
||||
#define STM32F4_PINMUX_FUNC_PA3_ADC123_IN3 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F4_PINMUX_FUNC_PA4_SPI1_NSS \
|
||||
(STM32_PINMUX_ALT_FUNC_5 | STM32_PUSHPULL_NOPULL)
|
||||
|
@ -57,6 +65,8 @@
|
|||
(STM32_PINMUX_ALT_FUNC_5 | STM32_PUSHPULL_NOPULL)
|
||||
#define STM32F4_PINMUX_FUNC_PA4_I2S3_WS \
|
||||
(STM32_PINMUX_ALT_FUNC_6 | STM32_PUSHPULL_NOPULL)
|
||||
#define STM32F4_PINMUX_FUNC_PA4_ADC12_IN4 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F4_PINMUX_FUNC_PA5_SPI1_SCK \
|
||||
(STM32_PINMUX_ALT_FUNC_5 | STM32_PUSHPULL_NOPULL | \
|
||||
|
@ -64,9 +74,13 @@
|
|||
#define STM32F4_PINMUX_FUNC_PA5_I2S1_CK \
|
||||
(STM32_PINMUX_ALT_FUNC_5 | STM32_PUSHPULL_NOPULL | \
|
||||
STM32_OSPEEDR_VERY_HIGH_SPEED)
|
||||
#define STM32F4_PINMUX_FUNC_PA5_ADC12_IN5 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F4_PINMUX_FUNC_PA6_SPI1_MISO \
|
||||
(STM32_PINMUX_ALT_FUNC_5 | STM32_PUSHPULL_NOPULL)
|
||||
#define STM32F4_PINMUX_FUNC_PA6_ADC12_IN6 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F4_PINMUX_FUNC_PA7_SPI1_MOSI \
|
||||
(STM32_PINMUX_ALT_FUNC_5 | STM32_PUSHPULL_NOPULL)
|
||||
|
@ -75,6 +89,8 @@
|
|||
#define STM32F4_PINMUX_FUNC_PA7_ETH \
|
||||
(STM32_PINMUX_ALT_FUNC_11 | STM32_PUSHPULL_NOPULL | \
|
||||
STM32_OSPEEDR_VERY_HIGH_SPEED)
|
||||
#define STM32F4_PINMUX_FUNC_PA7_ADC12_IN7 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F4_PINMUX_FUNC_PA8_MCO \
|
||||
(STM32_PINMUX_ALT_FUNC_0 | STM32_PUSHPULL_NOPULL | \
|
||||
|
@ -120,6 +136,11 @@
|
|||
#define STM32F4_PINMUX_FUNC_PB0_ETH \
|
||||
(STM32_PINMUX_ALT_FUNC_11 | STM32_PUSHPULL_NOPULL | \
|
||||
STM32_OSPEEDR_VERY_HIGH_SPEED)
|
||||
#define STM32F4_PINMUX_FUNC_PB0_ADC12_IN8 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F4_PINMUX_FUNC_PB1_ADC12_IN9 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F4_PINMUX_FUNC_PB3_I2S3_CK \
|
||||
(STM32_PINMUX_ALT_FUNC_6 | STM32_PUSHPULL_NOPULL | \
|
||||
|
@ -256,29 +277,42 @@
|
|||
(STM32_PINMUX_ALT_FUNC_12 | STM32_PUSHPULL_NOPULL)
|
||||
|
||||
/* Port C */
|
||||
#define STM32F4_PINMUX_FUNC_PC0_ADC123_IN10 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F4_PINMUX_FUNC_PC1_ETH \
|
||||
(STM32_PINMUX_ALT_FUNC_11 | STM32_PUSHPULL_NOPULL | \
|
||||
STM32_OSPEEDR_VERY_HIGH_SPEED)
|
||||
#define STM32F4_PINMUX_FUNC_PC1_I2S2_SD \
|
||||
(STM32_PINMUX_ALT_FUNC_7 | STM32_PUSHPULL_NOPULL)
|
||||
#define STM32F4_PINMUX_FUNC_PC1_ADC123_IN11 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F4_PINMUX_FUNC_PC2_ETH \
|
||||
(STM32_PINMUX_ALT_FUNC_11 | STM32_PUSHPULL_NOPULL | \
|
||||
STM32_OSPEEDR_VERY_HIGH_SPEED)
|
||||
#define STM32F4_PINMUX_FUNC_PC2_ADC123_IN12 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F4_PINMUX_FUNC_PC3_ETH \
|
||||
(STM32_PINMUX_ALT_FUNC_11 | STM32_PUSHPULL_NOPULL | \
|
||||
STM32_OSPEEDR_VERY_HIGH_SPEED)
|
||||
#define STM32F4_PINMUX_FUNC_PC3_ADC123_IN13 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F4_PINMUX_FUNC_PC4_ETH \
|
||||
(STM32_PINMUX_ALT_FUNC_11 | STM32_PUSHPULL_NOPULL | \
|
||||
STM32_OSPEEDR_VERY_HIGH_SPEED)
|
||||
#define STM32F4_PINMUX_FUNC_PC4_ADC12_IN14 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F4_PINMUX_FUNC_PC5_USART3_RX \
|
||||
(STM32_PINMUX_ALT_FUNC_7 | STM32_PUSHPULL_NOPULL)
|
||||
#define STM32F4_PINMUX_FUNC_PC5_ETH \
|
||||
(STM32_PINMUX_ALT_FUNC_11 | STM32_PUSHPULL_NOPULL | \
|
||||
STM32_OSPEEDR_VERY_HIGH_SPEED)
|
||||
#define STM32F4_PINMUX_FUNC_PC5_ADC12_IN15 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F4_PINMUX_FUNC_PC6_PWM3_CH1 \
|
||||
(STM32_PINMUX_ALT_FUNC_2 | STM32_PUSHPULL_NOPULL)
|
||||
|
@ -410,17 +444,37 @@
|
|||
#define STM32F4_PINMUX_FUNC_PF1_I2C2_SCL \
|
||||
(STM32_PINMUX_ALT_FUNC_4 | STM32_OPENDRAIN_PULLUP)
|
||||
|
||||
#define STM32F4_PINMUX_FUNC_PF3_ADC3_IN9 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F4_PINMUX_FUNC_PF4_ADC3_IN14 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F4_PINMUX_FUNC_PF5_ADC3_IN15 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F4_PINMUX_FUNC_PF6_UART7_RX \
|
||||
(STM32_PINMUX_ALT_FUNC_8 | STM32_PUSHPULL_NOPULL)
|
||||
#define STM32F4_PINMUX_FUNC_PF6_ADC3_IN4 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F4_PINMUX_FUNC_PF7_UART7_TX \
|
||||
(STM32_PINMUX_ALT_FUNC_8 | STM32_PUSHPULL_PULLUP)
|
||||
#define STM32F4_PINMUX_FUNC_PF7_ADC3_IN5 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F4_PINMUX_FUNC_PF8_UART8_RX \
|
||||
(STM32_PINMUX_ALT_FUNC_8 | STM32_PUSHPULL_NOPULL)
|
||||
#define STM32F4_PINMUX_FUNC_PF8_ADC3_IN6 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F4_PINMUX_FUNC_PF9_UART8_TX \
|
||||
(STM32_PINMUX_ALT_FUNC_8 | STM32_PUSHPULL_PULLUP)
|
||||
#define STM32F4_PINMUX_FUNC_PF9_ADC3_IN7 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F4_PINMUX_FUNC_PF10_ADC3_IN8 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
/* Port G */
|
||||
#define STM32F4_PINMUX_FUNC_PG0_UART9_RX \
|
||||
|
|
|
@ -20,6 +20,8 @@
|
|||
(STM32_PINMUX_ALT_FUNC_7 | STM32_PUSHPULL_PULLUP)
|
||||
#define STM32F7_PINMUX_FUNC_PA0_UART4_TX \
|
||||
(STM32_PINMUX_ALT_FUNC_8 | STM32_PUSHPULL_PULLUP)
|
||||
#define STM32F7_PINMUX_FUNC_PA0_ADC123_IN0 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F7_PINMUX_FUNC_PA1_PWM2_CH2 \
|
||||
(STM32_PINMUX_ALT_FUNC_1 | STM32_PUSHPULL_PULLUP)
|
||||
|
@ -34,6 +36,8 @@
|
|||
STM32_OSPEEDR_VERY_HIGH_SPEED)
|
||||
#define STM32F7_PINMUX_FUNC_PA1_LTDC_R2 \
|
||||
(STM32_PINMUX_ALT_FUNC_14 | STM32_PUSHPULL_NOPULL)
|
||||
#define STM32F7_PINMUX_FUNC_PA1_ADC123_IN1 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F7_PINMUX_FUNC_PA2_PWM2_CH3 \
|
||||
(STM32_PINMUX_ALT_FUNC_1 | STM32_PUSHPULL_PULLUP)
|
||||
|
@ -48,6 +52,8 @@
|
|||
STM32_OSPEEDR_VERY_HIGH_SPEED)
|
||||
#define STM32F7_PINMUX_FUNC_PA2_LTDC_R1 \
|
||||
(STM32_PINMUX_ALT_FUNC_14 | STM32_PUSHPULL_NOPULL)
|
||||
#define STM32F7_PINMUX_FUNC_PA2_ADC123_IN2 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F7_PINMUX_FUNC_PA3_PWM2_CH4 \
|
||||
(STM32_PINMUX_ALT_FUNC_1 | STM32_PUSHPULL_PULLUP)
|
||||
|
@ -62,11 +68,15 @@
|
|||
STM32_OSPEEDR_VERY_HIGH_SPEED)
|
||||
#define STM32F7_PINMUX_FUNC_PA3_LTDC_B5 \
|
||||
(STM32_PINMUX_ALT_FUNC_14 | STM32_PUSHPULL_NOPULL)
|
||||
#define STM32F7_PINMUX_FUNC_PA3_ADC123_IN3 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F7_PINMUX_FUNC_PA4_SPI1_NSS \
|
||||
(STM32_PINMUX_ALT_FUNC_5 | STM32_PUSHPULL_NOPULL)
|
||||
#define STM32F7_PINMUX_FUNC_PA4_LTDC_VSYNC \
|
||||
(STM32_PINMUX_ALT_FUNC_14 | STM32_PUSHPULL_NOPULL)
|
||||
#define STM32F7_PINMUX_FUNC_PA4_ADC12_IN4 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F7_PINMUX_FUNC_PA5_PWM2_CH1 \
|
||||
(STM32_PINMUX_ALT_FUNC_1 | STM32_PUSHPULL_PULLUP)
|
||||
|
@ -76,6 +86,8 @@
|
|||
(STM32_PINMUX_ALT_FUNC_5 | STM32_PUSHPULL_NOPULL)
|
||||
#define STM32F7_PINMUX_FUNC_PA5_LTDC_R4 \
|
||||
(STM32_PINMUX_ALT_FUNC_14 | STM32_PUSHPULL_NOPULL)
|
||||
#define STM32F7_PINMUX_FUNC_PA5_ADC12_IN5 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F7_PINMUX_FUNC_PA6_PWM3_CH1 \
|
||||
(STM32_PINMUX_ALT_FUNC_2 | STM32_PUSHPULL_PULLUP)
|
||||
|
@ -85,6 +97,8 @@
|
|||
(STM32_PINMUX_ALT_FUNC_5 | STM32_PUSHPULL_NOPULL)
|
||||
#define STM32F7_PINMUX_FUNC_PA6_LTDC_G2 \
|
||||
(STM32_PINMUX_ALT_FUNC_14 | STM32_PUSHPULL_NOPULL)
|
||||
#define STM32F7_PINMUX_FUNC_PA6_ADC12_IN6 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F7_PINMUX_FUNC_PA7_PWM1_CH1N \
|
||||
(STM32_PINMUX_ALT_FUNC_1 | STM32_PUSHPULL_PULLUP)
|
||||
|
@ -99,6 +113,8 @@
|
|||
(STM32_PINMUX_ALT_FUNC_9 | STM32_PUSHPULL_PULLUP)
|
||||
#define STM32F7_PINMUX_FUNC_PA7_SPI1_MOSI \
|
||||
(STM32_PINMUX_ALT_FUNC_5 | STM32_PUSHPULL_NOPULL)
|
||||
#define STM32F7_PINMUX_FUNC_PA7_ADC12_IN7 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F7_PINMUX_FUNC_PA8_PWM1_CH1 \
|
||||
(STM32_PINMUX_ALT_FUNC_1 | STM32_PUSHPULL_PULLUP)
|
||||
|
@ -153,6 +169,8 @@
|
|||
(STM32_PINMUX_ALT_FUNC_8 | STM32_PUSHPULL_PULLUP)
|
||||
#define STM32F7_PINMUX_FUNC_PB0_LTDC_R3 \
|
||||
(STM32_PINMUX_ALT_FUNC_9 | STM32_PUSHPULL_NOPULL)
|
||||
#define STM32F7_PINMUX_FUNC_PB0_ADC12_IN8 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F7_PINMUX_FUNC_PB1_PWM1_CH3N \
|
||||
(STM32_PINMUX_ALT_FUNC_1 | STM32_PUSHPULL_PULLUP)
|
||||
|
@ -162,6 +180,8 @@
|
|||
(STM32_PINMUX_ALT_FUNC_3 | STM32_PUSHPULL_PULLUP)
|
||||
#define STM32F7_PINMUX_FUNC_PB1_LTDC_R6 \
|
||||
(STM32_PINMUX_ALT_FUNC_9 | STM32_PUSHPULL_NOPULL)
|
||||
#define STM32F7_PINMUX_FUNC_PB1_ADC12_IN9 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F7_PINMUX_FUNC_PB3_PWM2_CH2 \
|
||||
(STM32_PINMUX_ALT_FUNC_1 | STM32_PUSHPULL_PULLUP)
|
||||
|
@ -279,26 +299,38 @@
|
|||
/* Port C */
|
||||
#define STM32F7_PINMUX_FUNC_PC0_LTDC_R5 \
|
||||
(STM32_PINMUX_ALT_FUNC_14 | STM32_PUSHPULL_NOPULL)
|
||||
#define STM32F7_PINMUX_FUNC_PC0_ADC123_IN10 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F7_PINMUX_FUNC_PC1_ETH \
|
||||
(STM32_PINMUX_ALT_FUNC_11 | STM32_PUSHPULL_NOPULL | \
|
||||
STM32_OSPEEDR_VERY_HIGH_SPEED)
|
||||
#define STM32F7_PINMUX_FUNC_PC1_SPI2_MOSI \
|
||||
(STM32_PINMUX_ALT_FUNC_5 | STM32_PUSHPULL_NOPULL)
|
||||
#define STM32F7_PINMUX_FUNC_PC1_ADC123_IN11 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F7_PINMUX_FUNC_PC2_SPI2_MISO \
|
||||
(STM32_PINMUX_ALT_FUNC_5 | STM32_PUSHPULL_NOPULL)
|
||||
#define STM32F7_PINMUX_FUNC_PC2_ADC123_IN12 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F7_PINMUX_FUNC_PC3_SPI2_MOSI \
|
||||
(STM32_PINMUX_ALT_FUNC_5 | STM32_PUSHPULL_NOPULL)
|
||||
#define STM32F7_PINMUX_FUNC_PC3_ADC123_IN13 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F7_PINMUX_FUNC_PC4_ETH \
|
||||
(STM32_PINMUX_ALT_FUNC_11 | STM32_PUSHPULL_NOPULL | \
|
||||
STM32_OSPEEDR_VERY_HIGH_SPEED)
|
||||
#define STM32F7_PINMUX_FUNC_PC4_ADC12_IN14 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F7_PINMUX_FUNC_PC5_ETH \
|
||||
(STM32_PINMUX_ALT_FUNC_11 | STM32_PUSHPULL_NOPULL | \
|
||||
STM32_OSPEEDR_VERY_HIGH_SPEED)
|
||||
#define STM32F7_PINMUX_FUNC_PC5_ADC12_IN15 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F7_PINMUX_FUNC_PC6_PWM3_CH1 \
|
||||
(STM32_PINMUX_ALT_FUNC_2 | STM32_PUSHPULL_PULLUP)
|
||||
|
@ -476,25 +508,45 @@
|
|||
#define STM32F7_PINMUX_FUNC_PF1_I2C2_SCL \
|
||||
(STM32_PINMUX_ALT_FUNC_4 | STM32_OPENDRAIN_PULLUP)
|
||||
|
||||
#define STM32F7_PINMUX_FUNC_PF3_ADC3_IN9 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F7_PINMUX_FUNC_PF4_ADC3_IN14 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F7_PINMUX_FUNC_PF5_ADC3_IN15 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F7_PINMUX_FUNC_PF6_PWM10_CH1 \
|
||||
(STM32_PINMUX_ALT_FUNC_3 | STM32_PUSHPULL_PULLUP)
|
||||
#define STM32F7_PINMUX_FUNC_PF6_UART7_RX \
|
||||
(STM32_PINMUX_ALT_FUNC_8 | STM32_PUSHPULL_NOPULL)
|
||||
#define STM32F7_PINMUX_FUNC_PF6_ADC3_IN4 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F7_PINMUX_FUNC_PF7_PWM11_CH1 \
|
||||
(STM32_PINMUX_ALT_FUNC_3 | STM32_PUSHPULL_PULLUP)
|
||||
#define STM32F7_PINMUX_FUNC_PF7_UART7_TX \
|
||||
(STM32_PINMUX_ALT_FUNC_8 | STM32_PUSHPULL_PULLUP)
|
||||
#define STM32F7_PINMUX_FUNC_PF7_ADC3_IN5 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F7_PINMUX_FUNC_PF8_UART7_RTS \
|
||||
(STM32_PINMUX_ALT_FUNC_8 | STM32_PUSHPULL_PULLUP)
|
||||
#define STM32F7_PINMUX_FUNC_PF8_PWM13_CH1 \
|
||||
(STM32_PINMUX_ALT_FUNC_9 | STM32_PUSHPULL_PULLUP)
|
||||
#define STM32F7_PINMUX_FUNC_PF8_ADC3_IN6 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F7_PINMUX_FUNC_PF9_UART7_CTS \
|
||||
(STM32_PINMUX_ALT_FUNC_8 | STM32_PUSHPULL_PULLUP)
|
||||
#define STM32F7_PINMUX_FUNC_PF9_PWM14_CH1 \
|
||||
(STM32_PINMUX_ALT_FUNC_9 | STM32_PUSHPULL_PULLUP)
|
||||
#define STM32F7_PINMUX_FUNC_PF9_ADC3_IN7 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F7_PINMUX_FUNC_PF10_ADC3_IN8 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32F7_PINMUX_FUNC_PF10_LTDC_DE \
|
||||
(STM32_PINMUX_ALT_FUNC_14 | STM32_PUSHPULL_NOPULL)
|
||||
|
|
|
@ -108,4 +108,37 @@
|
|||
#define STM32L0_PINMUX_FUNC_PC3_SPI2_MOSI \
|
||||
(STM32_PINMUX_ALT_FUNC_2 | STM32_PUSHPULL_NOPULL)
|
||||
|
||||
#define STM32L0_PINMUX_FUNC_PC0_ADC_IN10 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32L0_PINMUX_FUNC_PC1_ADC_IN11 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32L0_PINMUX_FUNC_PC2_ADC_IN12 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32L0_PINMUX_FUNC_PC3_ADC_IN13 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32L0_PINMUX_FUNC_PA0_ADC_IN0 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32L0_PINMUX_FUNC_PA1_ADC_IN1 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32L0_PINMUX_FUNC_PA2_ADC_IN2 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32L0_PINMUX_FUNC_PA3_ADC_IN3 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32L0_PINMUX_FUNC_PA4_ADC_IN4 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32L0_PINMUX_FUNC_PA5_ADC_IN5 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32L0_PINMUX_FUNC_PA6_ADC_IN6 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32L0_PINMUX_FUNC_PA7_ADC_IN7 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32L0_PINMUX_FUNC_PC4_ADC_IN14 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32L0_PINMUX_FUNC_PC5_ADC_IN15 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32L0_PINMUX_FUNC_PB0_ADC_IN8 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32L0_PINMUX_FUNC_PB1_ADC_IN9 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#endif /* ZEPHYR_DRIVERS_PINMUX_STM32_PINMUX_STM32L0_H_ */
|
||||
|
|
|
@ -20,23 +20,35 @@
|
|||
(STM32_PINMUX_ALT_FUNC_7 | STM32_OPENDRAIN_PULLUP)
|
||||
#define STM32L4X_PINMUX_FUNC_PA0_UART4_TX \
|
||||
(STM32_PINMUX_ALT_FUNC_8 | STM32_PUSHPULL_PULLUP)
|
||||
#define STM32L4X_PINMUX_FUNC_PA0_ADC12_IN5 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32L4X_PINMUX_FUNC_PA1_USART2_RTS \
|
||||
(STM32_PINMUX_ALT_FUNC_7 | STM32_OPENDRAIN_PULLUP)
|
||||
#define STM32L4X_PINMUX_FUNC_PA1_UART4_RX \
|
||||
(STM32_PINMUX_ALT_FUNC_8 | STM32_PUPDR_NO_PULL)
|
||||
#define STM32L4X_PINMUX_FUNC_PA1_ADC12_IN6 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32L4X_PINMUX_FUNC_PA2_USART2_TX \
|
||||
(STM32_PINMUX_ALT_FUNC_7 | STM32_PUSHPULL_PULLUP)
|
||||
#define STM32L4X_PINMUX_FUNC_PA2_ADC12_IN7 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32L4X_PINMUX_FUNC_PA3_USART2_RX \
|
||||
(STM32_PINMUX_ALT_FUNC_7 | STM32_PUPDR_NO_PULL)
|
||||
#define STM32L4X_PINMUX_FUNC_PA3_ADC12_IN8 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32L4X_PINMUX_FUNC_PA4_SPI1_NSS \
|
||||
(STM32_PINMUX_ALT_FUNC_5 | STM32_PUSHPULL_NOPULL)
|
||||
#define STM32L4X_PINMUX_FUNC_PA4_ADC12_IN9 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32L4X_PINMUX_FUNC_PA5_SPI1_SCK \
|
||||
(STM32_PINMUX_ALT_FUNC_5 | STM32_PUSHPULL_NOPULL)
|
||||
#define STM32L4X_PINMUX_FUNC_PA5_ADC12_IN10 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32L4X_PINMUX_FUNC_PA6_SPI1_MISO \
|
||||
(STM32_PINMUX_ALT_FUNC_5 | STM32_PUSHPULL_NOPULL)
|
||||
|
@ -44,9 +56,13 @@
|
|||
(STM32_PINMUX_ALT_FUNC_7 | STM32_OPENDRAIN_PULLUP)
|
||||
#define STM32L4X_PINMUX_FUNC_PA6_LPUART1_CTS \
|
||||
(STM32_PINMUX_ALT_FUNC_8 | STM32_OPENDRAIN_PULLUP)
|
||||
#define STM32L4X_PINMUX_FUNC_PA6_ADC12_IN11 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32L4X_PINMUX_FUNC_PA7_SPI1_MOSI \
|
||||
(STM32_PINMUX_ALT_FUNC_5 | STM32_PUSHPULL_NOPULL)
|
||||
#define STM32L4X_PINMUX_FUNC_PA7_ADC12_IN12 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32L4X_PINMUX_FUNC_PA9_USART1_TX \
|
||||
(STM32_PINMUX_ALT_FUNC_7 | STM32_PUSHPULL_PULLUP)
|
||||
|
@ -80,10 +96,15 @@
|
|||
(STM32_PINMUX_ALT_FUNC_8 | STM32_OPENDRAIN_PULLUP)
|
||||
|
||||
/* Port B */
|
||||
#define STM32L4X_PINMUX_FUNC_PB0_ADC12_IN15 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32L4X_PINMUX_FUNC_PB1_USART3_RTS \
|
||||
(STM32_PINMUX_ALT_FUNC_7 | STM32_OPENDRAIN_PULLUP)
|
||||
#define STM32L4X_PINMUX_FUNC_PB1_LPUART1_RTS \
|
||||
(STM32_PINMUX_ALT_FUNC_8 | STM32_OPENDRAIN_PULLUP)
|
||||
#define STM32L4X_PINMUX_FUNC_PB1_ADC12_IN16 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32L4X_PINMUX_FUNC_PB3_SPI1_SCK \
|
||||
(STM32_PINMUX_ALT_FUNC_5 | STM32_PUSHPULL_NOPULL)
|
||||
|
@ -154,17 +175,31 @@
|
|||
(STM32_PINMUX_ALT_FUNC_4 | STM32_OPENDRAIN_PULLUP)
|
||||
#define STM32L4X_PINMUX_FUNC_PC0_LPUART1_RX \
|
||||
(STM32_PINMUX_ALT_FUNC_8 | STM32_PUPDR_NO_PULL)
|
||||
#define STM32L4X_PINMUX_FUNC_PC0_ADC123_IN1 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32L4X_PINMUX_FUNC_PC1_I2C3_SDA \
|
||||
(STM32_PINMUX_ALT_FUNC_4 | STM32_OPENDRAIN_PULLUP)
|
||||
#define STM32L4X_PINMUX_FUNC_PC1_LPUART1_TX \
|
||||
(STM32_PINMUX_ALT_FUNC_8 | STM32_PUSHPULL_PULLUP)
|
||||
#define STM32L4X_PINMUX_FUNC_PC1_ADC123_IN2 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32L4X_PINMUX_FUNC_PC2_ADC123_IN3 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32L4X_PINMUX_FUNC_PC3_ADC123_IN4 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32L4X_PINMUX_FUNC_PC4_USART3_TX \
|
||||
(STM32_PINMUX_ALT_FUNC_7 | STM32_PUSHPULL_PULLUP)
|
||||
#define STM32L4X_PINMUX_FUNC_PC4_ADC12_IN13 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32L4X_PINMUX_FUNC_PC5_USART3_RX \
|
||||
(STM32_PINMUX_ALT_FUNC_7 | STM32_PUPDR_NO_PULL)
|
||||
#define STM32L4X_PINMUX_FUNC_PC5_ADC12_IN14 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
#define STM32L4X_PINMUX_FUNC_PC6_USART6_TX \
|
||||
(STM32_PINMUX_ALT_FUNC_8 | STM32_PUSHPULL_PULLUP)
|
||||
|
@ -239,6 +274,22 @@
|
|||
|
||||
#define STM32L4X_PINMUX_FUNC_PF1_I2C3_SCL \
|
||||
(STM32_PINMUX_ALT_FUNC_4 | STM32_OPENDRAIN_PULLUP)
|
||||
#define STM32L4X_PINMUX_FUNC_PF3_ADC3_IN6 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32L4X_PINMUX_FUNC_PF4_ADC3_IN7 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32L4X_PINMUX_FUNC_PF5_ADC3_IN8 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32L4X_PINMUX_FUNC_PF6_ADC3_IN9 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32L4X_PINMUX_FUNC_PF7_ADC3_IN10 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32L4X_PINMUX_FUNC_PF8_ADC3_IN11 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32L4X_PINMUX_FUNC_PF9_ADC3_IN12 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
#define STM32L4X_PINMUX_FUNC_PF10_ADC3_IN13 \
|
||||
STM32_MODER_ANALOG_MODE
|
||||
|
||||
/* Port G */
|
||||
#define STM32L4X_PINMUX_FUNC_PG7_I2C3_SCL \
|
||||
|
|
Loading…
Reference in New Issue