drivers/serial: stm32: Modify Kconfig instance flags
STM32 uart Kconfig instance flags were not following same naming scheme than other drivers (i2c, spi, ..) Update driver to use UART_X instead of UART_STM32_PORT_X Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
parent
f022de6275
commit
b1008ccb02
97 changed files with 299 additions and 300 deletions
|
@ -12,7 +12,7 @@ config BOARD
|
||||||
|
|
||||||
if UART_CONSOLE
|
if UART_CONSOLE
|
||||||
|
|
||||||
config UART_STM32_PORT_1
|
config UART_1
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # UART_CONSOLE
|
endif # UART_CONSOLE
|
||||||
|
|
|
@ -14,10 +14,10 @@
|
||||||
|
|
||||||
/* pin assignments for 96boards Argonkey board */
|
/* pin assignments for 96boards Argonkey board */
|
||||||
static const struct pin_config pinconf[] = {
|
static const struct pin_config pinconf[] = {
|
||||||
#ifdef CONFIG_UART_STM32_PORT_1
|
#ifdef CONFIG_UART_1
|
||||||
{STM32_PIN_PA9, STM32F4_PINMUX_FUNC_PA9_USART1_TX},
|
{STM32_PIN_PA9, STM32F4_PINMUX_FUNC_PA9_USART1_TX},
|
||||||
{STM32_PIN_PA10, STM32F4_PINMUX_FUNC_PA10_USART1_RX},
|
{STM32_PIN_PA10, STM32F4_PINMUX_FUNC_PA10_USART1_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_1 */
|
#endif /* CONFIG_UART_1 */
|
||||||
#ifdef CONFIG_I2C_1
|
#ifdef CONFIG_I2C_1
|
||||||
{STM32_PIN_PB6, STM32F4_PINMUX_FUNC_PB6_I2C1_SCL},
|
{STM32_PIN_PB6, STM32F4_PINMUX_FUNC_PB6_I2C1_SCL},
|
||||||
{STM32_PIN_PB7, STM32F4_PINMUX_FUNC_PB7_I2C1_SDA},
|
{STM32_PIN_PB7, STM32F4_PINMUX_FUNC_PB7_I2C1_SDA},
|
||||||
|
|
|
@ -12,18 +12,17 @@ config BOARD
|
||||||
|
|
||||||
if UART_CONSOLE
|
if UART_CONSOLE
|
||||||
|
|
||||||
config UART_STM32_PORT_1
|
config UART_1
|
||||||
default y
|
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # UART_CONSOLE
|
endif # UART_CONSOLE
|
||||||
|
|
||||||
if SERIAL
|
if SERIAL
|
||||||
|
|
||||||
config UART_STM32_PORT_2
|
config UART_2
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config UART_STM32_PORT_6
|
config UART_6
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # SERIAL
|
endif # SERIAL
|
||||||
|
|
|
@ -14,18 +14,18 @@
|
||||||
|
|
||||||
/* pin assignments for 96boards Carbon board */
|
/* pin assignments for 96boards Carbon board */
|
||||||
static const struct pin_config pinconf[] = {
|
static const struct pin_config pinconf[] = {
|
||||||
#ifdef CONFIG_UART_STM32_PORT_1
|
#ifdef CONFIG_UART_1
|
||||||
{STM32_PIN_PA9, STM32F4_PINMUX_FUNC_PA9_USART1_TX},
|
{STM32_PIN_PA9, STM32F4_PINMUX_FUNC_PA9_USART1_TX},
|
||||||
{STM32_PIN_PA10, STM32F4_PINMUX_FUNC_PA10_USART1_RX},
|
{STM32_PIN_PA10, STM32F4_PINMUX_FUNC_PA10_USART1_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_1 */
|
#endif /* CONFIG_UART_1 */
|
||||||
#ifdef CONFIG_UART_STM32_PORT_2
|
#ifdef CONFIG_UART_2
|
||||||
{STM32_PIN_PA2, STM32F4_PINMUX_FUNC_PA2_USART2_TX},
|
{STM32_PIN_PA2, STM32F4_PINMUX_FUNC_PA2_USART2_TX},
|
||||||
{STM32_PIN_PA3, STM32F4_PINMUX_FUNC_PA3_USART2_RX},
|
{STM32_PIN_PA3, STM32F4_PINMUX_FUNC_PA3_USART2_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_2 */
|
#endif /* CONFIG_UART_2 */
|
||||||
#ifdef CONFIG_UART_STM32_PORT_6
|
#ifdef CONFIG_UART_6
|
||||||
{STM32_PIN_PC6, STM32F4_PINMUX_FUNC_PC6_USART6_TX},
|
{STM32_PIN_PC6, STM32F4_PINMUX_FUNC_PC6_USART6_TX},
|
||||||
{STM32_PIN_PC7, STM32F4_PINMUX_FUNC_PC7_USART6_RX},
|
{STM32_PIN_PC7, STM32F4_PINMUX_FUNC_PC7_USART6_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_6 */
|
#endif /* CONFIG_UART_6 */
|
||||||
#ifdef CONFIG_I2C_1
|
#ifdef CONFIG_I2C_1
|
||||||
{STM32_PIN_PB6, STM32F4_PINMUX_FUNC_PB6_I2C1_SCL},
|
{STM32_PIN_PB6, STM32F4_PINMUX_FUNC_PB6_I2C1_SCL},
|
||||||
{STM32_PIN_PB7, STM32F4_PINMUX_FUNC_PB7_I2C1_SDA},
|
{STM32_PIN_PB7, STM32F4_PINMUX_FUNC_PB7_I2C1_SDA},
|
||||||
|
|
|
@ -12,7 +12,7 @@ config BOARD
|
||||||
|
|
||||||
if UART_CONSOLE
|
if UART_CONSOLE
|
||||||
|
|
||||||
config UART_STM32_PORT_1
|
config UART_1
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # UART_CONSOLE
|
endif # UART_CONSOLE
|
||||||
|
|
|
@ -14,10 +14,10 @@
|
||||||
|
|
||||||
/* pin assignments for 96boards Neonkey board */
|
/* pin assignments for 96boards Neonkey board */
|
||||||
static const struct pin_config pinconf[] = {
|
static const struct pin_config pinconf[] = {
|
||||||
#ifdef CONFIG_UART_STM32_PORT_1
|
#ifdef CONFIG_UART_1
|
||||||
{STM32_PIN_PA9, STM32F4_PINMUX_FUNC_PA9_USART1_TX},
|
{STM32_PIN_PA9, STM32F4_PINMUX_FUNC_PA9_USART1_TX},
|
||||||
{STM32_PIN_PA10, STM32F4_PINMUX_FUNC_PA10_USART1_RX},
|
{STM32_PIN_PA10, STM32F4_PINMUX_FUNC_PA10_USART1_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_1 */
|
#endif /* CONFIG_UART_1 */
|
||||||
#ifdef CONFIG_I2C_1
|
#ifdef CONFIG_I2C_1
|
||||||
{STM32_PIN_PB6, STM32F4_PINMUX_FUNC_PB6_I2C1_SCL},
|
{STM32_PIN_PB6, STM32F4_PINMUX_FUNC_PB6_I2C1_SCL},
|
||||||
{STM32_PIN_PB7, STM32F4_PINMUX_FUNC_PB7_I2C1_SDA},
|
{STM32_PIN_PB7, STM32F4_PINMUX_FUNC_PB7_I2C1_SDA},
|
||||||
|
|
|
@ -12,7 +12,7 @@ config BOARD
|
||||||
|
|
||||||
if UART_CONSOLE
|
if UART_CONSOLE
|
||||||
|
|
||||||
config UART_STM32_PORT_4
|
config UART_4
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # UART_CONSOLE
|
endif # UART_CONSOLE
|
||||||
|
|
|
@ -14,22 +14,22 @@
|
||||||
|
|
||||||
/* pin assignments for 96b_stm32_sensor_mez board */
|
/* pin assignments for 96b_stm32_sensor_mez board */
|
||||||
static const struct pin_config pinconf[] = {
|
static const struct pin_config pinconf[] = {
|
||||||
#ifdef CONFIG_UART_STM32_PORT_1
|
#ifdef CONFIG_UART_1
|
||||||
{STM32_PIN_PA9, STM32F4_PINMUX_FUNC_PA9_USART1_TX},
|
{STM32_PIN_PA9, STM32F4_PINMUX_FUNC_PA9_USART1_TX},
|
||||||
{STM32_PIN_PA10, STM32F4_PINMUX_FUNC_PA10_USART1_RX},
|
{STM32_PIN_PA10, STM32F4_PINMUX_FUNC_PA10_USART1_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_1 */
|
#endif /* CONFIG_UART_1 */
|
||||||
#ifdef CONFIG_UART_STM32_PORT_2
|
#ifdef CONFIG_UART_2
|
||||||
{STM32_PIN_PD5, STM32F4_PINMUX_FUNC_PD5_USART2_TX},
|
{STM32_PIN_PD5, STM32F4_PINMUX_FUNC_PD5_USART2_TX},
|
||||||
{STM32_PIN_PD6, STM32F4_PINMUX_FUNC_PD6_USART2_RX},
|
{STM32_PIN_PD6, STM32F4_PINMUX_FUNC_PD6_USART2_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_2 */
|
#endif /* CONFIG_UART_2 */
|
||||||
#ifdef CONFIG_UART_STM32_PORT_3
|
#ifdef CONFIG_UART_3
|
||||||
{STM32_PIN_PD8, STM32F4_PINMUX_FUNC_PD8_USART3_TX},
|
{STM32_PIN_PD8, STM32F4_PINMUX_FUNC_PD8_USART3_TX},
|
||||||
{STM32_PIN_PD9, STM32F4_PINMUX_FUNC_PD9_USART3_RX},
|
{STM32_PIN_PD9, STM32F4_PINMUX_FUNC_PD9_USART3_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_3 */
|
#endif /* CONFIG_UART_3 */
|
||||||
#ifdef CONFIG_UART_STM32_PORT_4
|
#ifdef CONFIG_UART_4
|
||||||
{STM32_PIN_PC10, STM32F4_PINMUX_FUNC_PC10_UART4_TX},
|
{STM32_PIN_PC10, STM32F4_PINMUX_FUNC_PC10_UART4_TX},
|
||||||
{STM32_PIN_PC11, STM32F4_PINMUX_FUNC_PC11_UART4_RX},
|
{STM32_PIN_PC11, STM32F4_PINMUX_FUNC_PC11_UART4_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_4 */
|
#endif /* CONFIG_UART_4 */
|
||||||
#ifdef CONFIG_I2C_1
|
#ifdef CONFIG_I2C_1
|
||||||
{STM32_PIN_PB6, STM32F4_PINMUX_FUNC_PB6_I2C1_SCL},
|
{STM32_PIN_PB6, STM32F4_PINMUX_FUNC_PB6_I2C1_SCL},
|
||||||
{STM32_PIN_PB7, STM32F4_PINMUX_FUNC_PB7_I2C1_SDA},
|
{STM32_PIN_PB7, STM32F4_PINMUX_FUNC_PB7_I2C1_SDA},
|
||||||
|
|
|
@ -11,13 +11,13 @@ config BOARD
|
||||||
default "b_l072z_lrwan1"
|
default "b_l072z_lrwan1"
|
||||||
|
|
||||||
if SERIAL
|
if SERIAL
|
||||||
config UART_STM32_PORT_1
|
config UART_1
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # SERIAL
|
endif # SERIAL
|
||||||
|
|
||||||
if UART_CONSOLE
|
if UART_CONSOLE
|
||||||
config UART_STM32_PORT_2
|
config UART_2
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # UART_CONSOLE
|
endif # UART_CONSOLE
|
||||||
|
|
|
@ -14,14 +14,14 @@
|
||||||
|
|
||||||
/* pin assignments for STMicroelectronics B-L072Z-LRWAN1 Discovery board */
|
/* pin assignments for STMicroelectronics B-L072Z-LRWAN1 Discovery board */
|
||||||
static const struct pin_config pinconf[] = {
|
static const struct pin_config pinconf[] = {
|
||||||
#ifdef CONFIG_UART_STM32_PORT_1
|
#ifdef CONFIG_UART_1
|
||||||
{STM32_PIN_PA9, STM32L0_PINMUX_FUNC_PA9_USART1_TX},
|
{STM32_PIN_PA9, STM32L0_PINMUX_FUNC_PA9_USART1_TX},
|
||||||
{STM32_PIN_PA10, STM32L0_PINMUX_FUNC_PA10_USART1_RX},
|
{STM32_PIN_PA10, STM32L0_PINMUX_FUNC_PA10_USART1_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_1 */
|
#endif /* CONFIG_UART_1 */
|
||||||
#ifdef CONFIG_UART_STM32_PORT_2
|
#ifdef CONFIG_UART_2
|
||||||
{STM32_PIN_PA2, STM32L0_PINMUX_FUNC_PA2_USART2_TX},
|
{STM32_PIN_PA2, STM32L0_PINMUX_FUNC_PA2_USART2_TX},
|
||||||
{STM32_PIN_PA3, STM32L0_PINMUX_FUNC_PA3_USART2_RX},
|
{STM32_PIN_PA3, STM32L0_PINMUX_FUNC_PA3_USART2_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_2 */
|
#endif /* CONFIG_UART_2 */
|
||||||
#ifdef CONFIG_SPI_1
|
#ifdef CONFIG_SPI_1
|
||||||
{STM32_PIN_PA4, STM32L0_PINMUX_FUNC_PA4_SPI1_NSS},
|
{STM32_PIN_PA4, STM32L0_PINMUX_FUNC_PA4_SPI1_NSS},
|
||||||
{STM32_PIN_PA5, STM32L0_PINMUX_FUNC_PA5_SPI1_SCK},
|
{STM32_PIN_PA5, STM32L0_PINMUX_FUNC_PA5_SPI1_SCK},
|
||||||
|
|
|
@ -59,14 +59,14 @@ endif # CLOCK_STM32_SYSCLK_SRC_PLL
|
||||||
|
|
||||||
if UART_CONSOLE
|
if UART_CONSOLE
|
||||||
|
|
||||||
config UART_STM32_PORT_1
|
config UART_1
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # UART_CONSOLE
|
endif # UART_CONSOLE
|
||||||
|
|
||||||
if SERIAL
|
if SERIAL
|
||||||
|
|
||||||
config UART_STM32_PORT_4
|
config UART_4
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # SERIAL
|
endif # SERIAL
|
||||||
|
|
|
@ -14,14 +14,14 @@
|
||||||
|
|
||||||
/* pin assignments for Disco L475 IOT1 board */
|
/* pin assignments for Disco L475 IOT1 board */
|
||||||
static const struct pin_config pinconf[] = {
|
static const struct pin_config pinconf[] = {
|
||||||
#ifdef CONFIG_UART_STM32_PORT_1
|
#ifdef CONFIG_UART_1
|
||||||
{STM32_PIN_PB6, STM32L4X_PINMUX_FUNC_PB6_USART1_TX},
|
{STM32_PIN_PB6, STM32L4X_PINMUX_FUNC_PB6_USART1_TX},
|
||||||
{STM32_PIN_PB7, STM32L4X_PINMUX_FUNC_PB7_USART1_RX},
|
{STM32_PIN_PB7, STM32L4X_PINMUX_FUNC_PB7_USART1_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_1 */
|
#endif /* CONFIG_UART_1 */
|
||||||
#ifdef CONFIG_UART_STM32_PORT_4
|
#ifdef CONFIG_UART_4
|
||||||
{STM32_PIN_PA0, STM32L4X_PINMUX_FUNC_PA0_USART4_TX},
|
{STM32_PIN_PA0, STM32L4X_PINMUX_FUNC_PA0_USART4_TX},
|
||||||
{STM32_PIN_PA1, STM32L4X_PINMUX_FUNC_PA1_USART4_RX},
|
{STM32_PIN_PA1, STM32L4X_PINMUX_FUNC_PA1_USART4_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_4 */
|
#endif /* CONFIG_UART_4 */
|
||||||
#ifdef CONFIG_I2C_1
|
#ifdef CONFIG_I2C_1
|
||||||
{STM32_PIN_PB8, STM32L4X_PINMUX_FUNC_PB8_I2C1_SCL},
|
{STM32_PIN_PB8, STM32L4X_PINMUX_FUNC_PB8_I2C1_SCL},
|
||||||
{STM32_PIN_PB9, STM32L4X_PINMUX_FUNC_PB9_I2C1_SDA},
|
{STM32_PIN_PB9, STM32L4X_PINMUX_FUNC_PB9_I2C1_SDA},
|
||||||
|
|
|
@ -12,7 +12,7 @@ config BOARD
|
||||||
|
|
||||||
if UART_CONSOLE
|
if UART_CONSOLE
|
||||||
|
|
||||||
config UART_STM32_PORT_1
|
config UART_1
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # UART_CONSOLE
|
endif # UART_CONSOLE
|
||||||
|
|
|
@ -14,14 +14,14 @@
|
||||||
|
|
||||||
/* pin assignments for Dragino LSN50 board */
|
/* pin assignments for Dragino LSN50 board */
|
||||||
static const struct pin_config pinconf[] = {
|
static const struct pin_config pinconf[] = {
|
||||||
#ifdef CONFIG_UART_STM32_PORT_1
|
#ifdef CONFIG_UART_1
|
||||||
{STM32_PIN_PB6, STM32L0_PINMUX_FUNC_PB6_USART1_TX},
|
{STM32_PIN_PB6, STM32L0_PINMUX_FUNC_PB6_USART1_TX},
|
||||||
{STM32_PIN_PB7, STM32L0_PINMUX_FUNC_PB7_USART1_RX},
|
{STM32_PIN_PB7, STM32L0_PINMUX_FUNC_PB7_USART1_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_1 */
|
#endif /* CONFIG_UART_1 */
|
||||||
#ifdef CONFIG_UART_STM32_PORT_2
|
#ifdef CONFIG_UART_2
|
||||||
{STM32_PIN_PA2, STM32L0_PINMUX_FUNC_PA2_USART2_TX},
|
{STM32_PIN_PA2, STM32L0_PINMUX_FUNC_PA2_USART2_TX},
|
||||||
{STM32_PIN_PA3, STM32L0_PINMUX_FUNC_PA3_USART2_RX},
|
{STM32_PIN_PA3, STM32L0_PINMUX_FUNC_PA3_USART2_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_2 */
|
#endif /* CONFIG_UART_2 */
|
||||||
};
|
};
|
||||||
|
|
||||||
static int pinmux_stm32_init(struct device *port)
|
static int pinmux_stm32_init(struct device *port)
|
||||||
|
|
|
@ -12,7 +12,7 @@ config BOARD
|
||||||
|
|
||||||
if UART_CONSOLE
|
if UART_CONSOLE
|
||||||
|
|
||||||
config UART_STM32_PORT_2
|
config UART_2
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # UART_CONSOLE
|
endif # UART_CONSOLE
|
||||||
|
|
|
@ -15,14 +15,14 @@
|
||||||
|
|
||||||
/* pin assignments for NUCLEO-F030R8 board */
|
/* pin assignments for NUCLEO-F030R8 board */
|
||||||
static const struct pin_config pinconf[] = {
|
static const struct pin_config pinconf[] = {
|
||||||
#ifdef CONFIG_UART_STM32_PORT_1
|
#ifdef CONFIG_UART_1
|
||||||
{STM32_PIN_PA9, STM32F0_PINMUX_FUNC_PA9_USART1_TX},
|
{STM32_PIN_PA9, STM32F0_PINMUX_FUNC_PA9_USART1_TX},
|
||||||
{STM32_PIN_PA10, STM32F0_PINMUX_FUNC_PA10_USART1_RX},
|
{STM32_PIN_PA10, STM32F0_PINMUX_FUNC_PA10_USART1_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_1 */
|
#endif /* CONFIG_UART_1 */
|
||||||
#ifdef CONFIG_UART_STM32_PORT_2
|
#ifdef CONFIG_UART_2
|
||||||
{STM32_PIN_PA2, STM32F0_PINMUX_FUNC_PA2_USART2_TX},
|
{STM32_PIN_PA2, STM32F0_PINMUX_FUNC_PA2_USART2_TX},
|
||||||
{STM32_PIN_PA3, STM32F0_PINMUX_FUNC_PA3_USART2_RX},
|
{STM32_PIN_PA3, STM32F0_PINMUX_FUNC_PA3_USART2_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_2 */
|
#endif /* CONFIG_UART_2 */
|
||||||
#ifdef CONFIG_I2C_1
|
#ifdef CONFIG_I2C_1
|
||||||
{STM32_PIN_PB8, STM32F0_PINMUX_FUNC_PB8_I2C1_SCL},
|
{STM32_PIN_PB8, STM32F0_PINMUX_FUNC_PB8_I2C1_SCL},
|
||||||
{STM32_PIN_PB9, STM32F0_PINMUX_FUNC_PB9_I2C1_SDA},
|
{STM32_PIN_PB9, STM32F0_PINMUX_FUNC_PB9_I2C1_SDA},
|
||||||
|
|
|
@ -12,7 +12,7 @@ config BOARD
|
||||||
|
|
||||||
if UART_CONSOLE
|
if UART_CONSOLE
|
||||||
|
|
||||||
config UART_STM32_PORT_2
|
config UART_2
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # UART_CONSOLE
|
endif # UART_CONSOLE
|
||||||
|
|
|
@ -15,14 +15,14 @@
|
||||||
|
|
||||||
/* pin assignments for NUCLEO_F070RB board */
|
/* pin assignments for NUCLEO_F070RB board */
|
||||||
static const struct pin_config pinconf[] = {
|
static const struct pin_config pinconf[] = {
|
||||||
#ifdef CONFIG_UART_STM32_PORT_1
|
#ifdef CONFIG_UART_1
|
||||||
{STM32_PIN_PA9, STM32F0_PINMUX_FUNC_PA9_USART1_TX},
|
{STM32_PIN_PA9, STM32F0_PINMUX_FUNC_PA9_USART1_TX},
|
||||||
{STM32_PIN_PA10, STM32F0_PINMUX_FUNC_PA10_USART1_RX},
|
{STM32_PIN_PA10, STM32F0_PINMUX_FUNC_PA10_USART1_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_1 */
|
#endif /* CONFIG_UART_1 */
|
||||||
#ifdef CONFIG_UART_STM32_PORT_2
|
#ifdef CONFIG_UART_2
|
||||||
{STM32_PIN_PA2, STM32F0_PINMUX_FUNC_PA2_USART2_TX},
|
{STM32_PIN_PA2, STM32F0_PINMUX_FUNC_PA2_USART2_TX},
|
||||||
{STM32_PIN_PA3, STM32F0_PINMUX_FUNC_PA3_USART2_RX},
|
{STM32_PIN_PA3, STM32F0_PINMUX_FUNC_PA3_USART2_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_1 */
|
#endif /* CONFIG_UART_1 */
|
||||||
#ifdef CONFIG_I2C_1
|
#ifdef CONFIG_I2C_1
|
||||||
{STM32_PIN_PB8, STM32F0_PINMUX_FUNC_PB8_I2C1_SCL},
|
{STM32_PIN_PB8, STM32F0_PINMUX_FUNC_PB8_I2C1_SCL},
|
||||||
{STM32_PIN_PB9, STM32F0_PINMUX_FUNC_PB9_I2C1_SDA},
|
{STM32_PIN_PB9, STM32F0_PINMUX_FUNC_PB9_I2C1_SDA},
|
||||||
|
|
|
@ -12,7 +12,7 @@ config BOARD
|
||||||
|
|
||||||
if UART_CONSOLE
|
if UART_CONSOLE
|
||||||
|
|
||||||
config UART_STM32_PORT_2
|
config UART_2
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # UART_CONSOLE
|
endif # UART_CONSOLE
|
||||||
|
|
|
@ -14,14 +14,14 @@
|
||||||
|
|
||||||
/* pin assignments for NUCLEO-F091RC board */
|
/* pin assignments for NUCLEO-F091RC board */
|
||||||
static const struct pin_config pinconf[] = {
|
static const struct pin_config pinconf[] = {
|
||||||
#ifdef CONFIG_UART_STM32_PORT_1
|
#ifdef CONFIG_UART_1
|
||||||
{STM32_PIN_PB6, STM32F0_PINMUX_FUNC_PB6_USART1_TX},
|
{STM32_PIN_PB6, STM32F0_PINMUX_FUNC_PB6_USART1_TX},
|
||||||
{STM32_PIN_PB7, STM32F0_PINMUX_FUNC_PB7_USART1_RX},
|
{STM32_PIN_PB7, STM32F0_PINMUX_FUNC_PB7_USART1_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_1 */
|
#endif /* CONFIG_UART_1 */
|
||||||
#ifdef CONFIG_UART_STM32_PORT_2
|
#ifdef CONFIG_UART_2
|
||||||
{STM32_PIN_PA2, STM32F0_PINMUX_FUNC_PA2_USART2_TX},
|
{STM32_PIN_PA2, STM32F0_PINMUX_FUNC_PA2_USART2_TX},
|
||||||
{STM32_PIN_PA3, STM32F0_PINMUX_FUNC_PA3_USART2_RX},
|
{STM32_PIN_PA3, STM32F0_PINMUX_FUNC_PA3_USART2_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_2 */
|
#endif /* CONFIG_UART_2 */
|
||||||
#ifdef CONFIG_I2C_1
|
#ifdef CONFIG_I2C_1
|
||||||
{STM32_PIN_PB8, STM32F0_PINMUX_FUNC_PB8_I2C1_SCL},
|
{STM32_PIN_PB8, STM32F0_PINMUX_FUNC_PB8_I2C1_SCL},
|
||||||
{STM32_PIN_PB9, STM32F0_PINMUX_FUNC_PB9_I2C1_SDA},
|
{STM32_PIN_PB9, STM32F0_PINMUX_FUNC_PB9_I2C1_SDA},
|
||||||
|
|
|
@ -12,7 +12,7 @@ config BOARD
|
||||||
|
|
||||||
if UART_CONSOLE
|
if UART_CONSOLE
|
||||||
|
|
||||||
config UART_STM32_PORT_2
|
config UART_2
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # UART_CONSOLE
|
endif # UART_CONSOLE
|
||||||
|
|
|
@ -14,18 +14,18 @@
|
||||||
|
|
||||||
/* pin assignments for NUCLEO-F103RB board */
|
/* pin assignments for NUCLEO-F103RB board */
|
||||||
static const struct pin_config pinconf[] = {
|
static const struct pin_config pinconf[] = {
|
||||||
#ifdef CONFIG_UART_STM32_PORT_1
|
#ifdef CONFIG_UART_1
|
||||||
{STM32_PIN_PA9, STM32F1_PINMUX_FUNC_PA9_USART1_TX},
|
{STM32_PIN_PA9, STM32F1_PINMUX_FUNC_PA9_USART1_TX},
|
||||||
{STM32_PIN_PA10, STM32F1_PINMUX_FUNC_PA10_USART1_RX},
|
{STM32_PIN_PA10, STM32F1_PINMUX_FUNC_PA10_USART1_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_1 */
|
#endif /* CONFIG_UART_1 */
|
||||||
#ifdef CONFIG_UART_STM32_PORT_2
|
#ifdef CONFIG_UART_2
|
||||||
{STM32_PIN_PA2, STM32F1_PINMUX_FUNC_PA2_USART2_TX},
|
{STM32_PIN_PA2, STM32F1_PINMUX_FUNC_PA2_USART2_TX},
|
||||||
{STM32_PIN_PA3, STM32F1_PINMUX_FUNC_PA3_USART2_RX},
|
{STM32_PIN_PA3, STM32F1_PINMUX_FUNC_PA3_USART2_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_2 */
|
#endif /* CONFIG_UART_2 */
|
||||||
#ifdef CONFIG_UART_STM32_PORT_3
|
#ifdef CONFIG_UART_3
|
||||||
{STM32_PIN_PB10, STM32F1_PINMUX_FUNC_PB10_USART3_TX},
|
{STM32_PIN_PB10, STM32F1_PINMUX_FUNC_PB10_USART3_TX},
|
||||||
{STM32_PIN_PB11, STM32F1_PINMUX_FUNC_PB11_USART3_RX},
|
{STM32_PIN_PB11, STM32F1_PINMUX_FUNC_PB11_USART3_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_3 */
|
#endif /* CONFIG_UART_3 */
|
||||||
#ifdef CONFIG_PWM_STM32_1
|
#ifdef CONFIG_PWM_STM32_1
|
||||||
{STM32_PIN_PA8, STM32F1_PINMUX_FUNC_PA8_PWM1_CH1},
|
{STM32_PIN_PA8, STM32F1_PINMUX_FUNC_PA8_PWM1_CH1},
|
||||||
#endif /* CONFIG_PWM_STM32_1 */
|
#endif /* CONFIG_PWM_STM32_1 */
|
||||||
|
|
|
@ -12,7 +12,7 @@ config BOARD
|
||||||
|
|
||||||
if UART_CONSOLE
|
if UART_CONSOLE
|
||||||
|
|
||||||
config UART_STM32_PORT_3
|
config UART_3
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # UART_CONSOLE
|
endif # UART_CONSOLE
|
||||||
|
@ -29,7 +29,7 @@ endif # NETWORKING
|
||||||
|
|
||||||
if SERIAL
|
if SERIAL
|
||||||
|
|
||||||
config UART_STM32_PORT_6
|
config UART_6
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # SERIAL
|
endif # SERIAL
|
||||||
|
|
|
@ -14,14 +14,14 @@
|
||||||
|
|
||||||
/* pin assignments for NUCLEO-F207ZG board */
|
/* pin assignments for NUCLEO-F207ZG board */
|
||||||
static const struct pin_config pinconf[] = {
|
static const struct pin_config pinconf[] = {
|
||||||
#ifdef CONFIG_UART_STM32_PORT_3
|
#ifdef CONFIG_UART_3
|
||||||
{STM32_PIN_PD8, STM32F2_PINMUX_FUNC_PD8_USART3_TX},
|
{STM32_PIN_PD8, STM32F2_PINMUX_FUNC_PD8_USART3_TX},
|
||||||
{STM32_PIN_PD9, STM32F2_PINMUX_FUNC_PD9_USART3_RX},
|
{STM32_PIN_PD9, STM32F2_PINMUX_FUNC_PD9_USART3_RX},
|
||||||
#endif /* #ifdef CONFIG_UART_STM32_PORT_3 */
|
#endif /* #ifdef CONFIG_UART_3 */
|
||||||
#ifdef CONFIG_UART_STM32_PORT_6
|
#ifdef CONFIG_UART_6
|
||||||
{STM32_PIN_PG14, STM32F2_PINMUX_FUNC_PG14_USART6_TX},
|
{STM32_PIN_PG14, STM32F2_PINMUX_FUNC_PG14_USART6_TX},
|
||||||
{STM32_PIN_PG9, STM32F2_PINMUX_FUNC_PG9_USART6_RX},
|
{STM32_PIN_PG9, STM32F2_PINMUX_FUNC_PG9_USART6_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_6 */
|
#endif /* CONFIG_UART_6 */
|
||||||
#ifdef CONFIG_ETH_STM32_HAL
|
#ifdef CONFIG_ETH_STM32_HAL
|
||||||
{STM32_PIN_PC1, STM32F2_PINMUX_FUNC_PC1_ETH},
|
{STM32_PIN_PC1, STM32F2_PINMUX_FUNC_PC1_ETH},
|
||||||
{STM32_PIN_PC4, STM32F2_PINMUX_FUNC_PC4_ETH},
|
{STM32_PIN_PC4, STM32F2_PINMUX_FUNC_PC4_ETH},
|
||||||
|
|
|
@ -12,14 +12,14 @@ config BOARD
|
||||||
|
|
||||||
if UART_CONSOLE
|
if UART_CONSOLE
|
||||||
|
|
||||||
config UART_STM32_PORT_2
|
config UART_2
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # UART_CONSOLE
|
endif # UART_CONSOLE
|
||||||
|
|
||||||
if SERIAL
|
if SERIAL
|
||||||
|
|
||||||
config UART_STM32_PORT_3
|
config UART_3
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # SERIAL
|
endif # SERIAL
|
||||||
|
|
|
@ -14,18 +14,18 @@
|
||||||
|
|
||||||
/* pin assignments for NUCLEO-F302R8 board */
|
/* pin assignments for NUCLEO-F302R8 board */
|
||||||
static const struct pin_config pinconf[] = {
|
static const struct pin_config pinconf[] = {
|
||||||
#ifdef CONFIG_UART_STM32_PORT_1
|
#ifdef CONFIG_UART_1
|
||||||
{STM32_PIN_PA9, STM32F3_PINMUX_FUNC_PA9_USART1_TX},
|
{STM32_PIN_PA9, STM32F3_PINMUX_FUNC_PA9_USART1_TX},
|
||||||
{STM32_PIN_PA10, STM32F3_PINMUX_FUNC_PA10_USART1_RX},
|
{STM32_PIN_PA10, STM32F3_PINMUX_FUNC_PA10_USART1_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_1 */
|
#endif /* CONFIG_UART_1 */
|
||||||
#ifdef CONFIG_UART_STM32_PORT_2
|
#ifdef CONFIG_UART_2
|
||||||
{STM32_PIN_PA2, STM32F3_PINMUX_FUNC_PA2_USART2_TX},
|
{STM32_PIN_PA2, STM32F3_PINMUX_FUNC_PA2_USART2_TX},
|
||||||
{STM32_PIN_PA3, STM32F3_PINMUX_FUNC_PA3_USART2_RX},
|
{STM32_PIN_PA3, STM32F3_PINMUX_FUNC_PA3_USART2_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_2 */
|
#endif /* CONFIG_UART_2 */
|
||||||
#ifdef CONFIG_UART_STM32_PORT_3
|
#ifdef CONFIG_UART_3
|
||||||
{STM32_PIN_PC10, STM32F3_PINMUX_FUNC_PC10_USART3_TX},
|
{STM32_PIN_PC10, STM32F3_PINMUX_FUNC_PC10_USART3_TX},
|
||||||
{STM32_PIN_PC11, STM32F3_PINMUX_FUNC_PC11_USART3_RX},
|
{STM32_PIN_PC11, STM32F3_PINMUX_FUNC_PC11_USART3_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_3 */
|
#endif /* CONFIG_UART_3 */
|
||||||
#ifdef CONFIG_I2C_1
|
#ifdef CONFIG_I2C_1
|
||||||
{STM32_PIN_PB8, STM32F3_PINMUX_FUNC_PB8_I2C1_SCL},
|
{STM32_PIN_PB8, STM32F3_PINMUX_FUNC_PB8_I2C1_SCL},
|
||||||
{STM32_PIN_PB9, STM32F3_PINMUX_FUNC_PB9_I2C1_SDA},
|
{STM32_PIN_PB9, STM32F3_PINMUX_FUNC_PB9_I2C1_SDA},
|
||||||
|
|
|
@ -12,7 +12,7 @@ config BOARD
|
||||||
|
|
||||||
if UART_CONSOLE
|
if UART_CONSOLE
|
||||||
|
|
||||||
config UART_STM32_PORT_2
|
config UART_2
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # UART_CONSOLE
|
endif # UART_CONSOLE
|
||||||
|
|
|
@ -14,28 +14,28 @@
|
||||||
|
|
||||||
/* pin assignments for NUCLEO-F334RB board */
|
/* pin assignments for NUCLEO-F334RB board */
|
||||||
static const struct pin_config pinconf[] = {
|
static const struct pin_config pinconf[] = {
|
||||||
#ifdef CONFIG_UART_STM32_PORT_1
|
#ifdef CONFIG_UART_1
|
||||||
{STM32_PIN_PA9, STM32F3_PINMUX_FUNC_PA9_USART1_TX},
|
{STM32_PIN_PA9, STM32F3_PINMUX_FUNC_PA9_USART1_TX},
|
||||||
{STM32_PIN_PA10, STM32F3_PINMUX_FUNC_PA10_USART1_RX},
|
{STM32_PIN_PA10, STM32F3_PINMUX_FUNC_PA10_USART1_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_1 */
|
#endif /* CONFIG_UART_1 */
|
||||||
#ifdef CONFIG_I2C_1
|
#ifdef CONFIG_I2C_1
|
||||||
{STM32_PIN_PB8, STM32F3_PINMUX_FUNC_PB8_I2C1_SCL},
|
{STM32_PIN_PB8, STM32F3_PINMUX_FUNC_PB8_I2C1_SCL},
|
||||||
{STM32_PIN_PB9, STM32F3_PINMUX_FUNC_PB9_I2C1_SDA},
|
{STM32_PIN_PB9, STM32F3_PINMUX_FUNC_PB9_I2C1_SDA},
|
||||||
#endif /* CONFIG_I2C_1 */
|
#endif /* CONFIG_I2C_1 */
|
||||||
#ifdef CONFIG_UART_STM32_PORT_2
|
#ifdef CONFIG_UART_2
|
||||||
{STM32_PIN_PA2, STM32F3_PINMUX_FUNC_PA2_USART2_TX},
|
{STM32_PIN_PA2, STM32F3_PINMUX_FUNC_PA2_USART2_TX},
|
||||||
{STM32_PIN_PA3, STM32F3_PINMUX_FUNC_PA3_USART2_RX},
|
{STM32_PIN_PA3, STM32F3_PINMUX_FUNC_PA3_USART2_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_2 */
|
#endif /* CONFIG_UART_2 */
|
||||||
#ifdef CONFIG_SPI_1
|
#ifdef CONFIG_SPI_1
|
||||||
{STM32_PIN_PA4, STM32F3_PINMUX_FUNC_PA4_SPI1_NSS},
|
{STM32_PIN_PA4, STM32F3_PINMUX_FUNC_PA4_SPI1_NSS},
|
||||||
{STM32_PIN_PA5, STM32F3_PINMUX_FUNC_PA5_SPI1_SCK},
|
{STM32_PIN_PA5, STM32F3_PINMUX_FUNC_PA5_SPI1_SCK},
|
||||||
{STM32_PIN_PA6, STM32F3_PINMUX_FUNC_PA6_SPI1_MISO},
|
{STM32_PIN_PA6, STM32F3_PINMUX_FUNC_PA6_SPI1_MISO},
|
||||||
{STM32_PIN_PA7, STM32F3_PINMUX_FUNC_PA7_SPI1_MOSI},
|
{STM32_PIN_PA7, STM32F3_PINMUX_FUNC_PA7_SPI1_MOSI},
|
||||||
#endif /* CONFIG_SPI_1 */
|
#endif /* CONFIG_SPI_1 */
|
||||||
#ifdef CONFIG_UART_STM32_PORT_3
|
#ifdef CONFIG_UART_3
|
||||||
{STM32_PIN_PB10, STM32F3_PINMUX_FUNC_PB10_USART3_TX},
|
{STM32_PIN_PB10, STM32F3_PINMUX_FUNC_PB10_USART3_TX},
|
||||||
{STM32_PIN_PB11, STM32F3_PINMUX_FUNC_PB11_USART3_RX},
|
{STM32_PIN_PB11, STM32F3_PINMUX_FUNC_PB11_USART3_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_3 */
|
#endif /* CONFIG_UART_3 */
|
||||||
#ifdef CONFIG_PWM_STM32_1
|
#ifdef CONFIG_PWM_STM32_1
|
||||||
{STM32_PIN_PA8, STM32F3_PINMUX_FUNC_PA8_PWM1_CH1},
|
{STM32_PIN_PA8, STM32F3_PINMUX_FUNC_PA8_PWM1_CH1},
|
||||||
#endif /* CONFIG_PWM_STM32_1 */
|
#endif /* CONFIG_PWM_STM32_1 */
|
||||||
|
|
|
@ -12,7 +12,7 @@ config BOARD
|
||||||
|
|
||||||
if UART_CONSOLE
|
if UART_CONSOLE
|
||||||
|
|
||||||
config UART_STM32_PORT_2
|
config UART_2
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # UART_CONSOLE
|
endif # UART_CONSOLE
|
||||||
|
|
|
@ -14,14 +14,14 @@
|
||||||
|
|
||||||
/* pin assignments for NUCLEO-F401RE board */
|
/* pin assignments for NUCLEO-F401RE board */
|
||||||
static const struct pin_config pinconf[] = {
|
static const struct pin_config pinconf[] = {
|
||||||
#ifdef CONFIG_UART_STM32_PORT_1
|
#ifdef CONFIG_UART_1
|
||||||
{STM32_PIN_PB6, STM32F4_PINMUX_FUNC_PB6_USART1_TX},
|
{STM32_PIN_PB6, STM32F4_PINMUX_FUNC_PB6_USART1_TX},
|
||||||
{STM32_PIN_PB7, STM32F4_PINMUX_FUNC_PB7_USART1_RX},
|
{STM32_PIN_PB7, STM32F4_PINMUX_FUNC_PB7_USART1_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_1 */
|
#endif /* CONFIG_UART_1 */
|
||||||
#ifdef CONFIG_UART_STM32_PORT_2
|
#ifdef CONFIG_UART_2
|
||||||
{STM32_PIN_PA2, STM32F4_PINMUX_FUNC_PA2_USART2_TX},
|
{STM32_PIN_PA2, STM32F4_PINMUX_FUNC_PA2_USART2_TX},
|
||||||
{STM32_PIN_PA3, STM32F4_PINMUX_FUNC_PA3_USART2_RX},
|
{STM32_PIN_PA3, STM32F4_PINMUX_FUNC_PA3_USART2_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_2 */
|
#endif /* CONFIG_UART_2 */
|
||||||
#ifdef CONFIG_PWM_STM32_2
|
#ifdef CONFIG_PWM_STM32_2
|
||||||
{STM32_PIN_PA0, STM32F4_PINMUX_FUNC_PA0_PWM2_CH1},
|
{STM32_PIN_PA0, STM32F4_PINMUX_FUNC_PA0_PWM2_CH1},
|
||||||
#endif /* CONFIG_PWM_STM32_2 */
|
#endif /* CONFIG_PWM_STM32_2 */
|
||||||
|
|
|
@ -12,7 +12,7 @@ config BOARD
|
||||||
|
|
||||||
if UART_CONSOLE
|
if UART_CONSOLE
|
||||||
|
|
||||||
config UART_STM32_PORT_2
|
config UART_2
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # UART_CONSOLE
|
endif # UART_CONSOLE
|
||||||
|
|
|
@ -14,14 +14,14 @@
|
||||||
|
|
||||||
/* pin assignments for NUCLEO-F411RE board */
|
/* pin assignments for NUCLEO-F411RE board */
|
||||||
static const struct pin_config pinconf[] = {
|
static const struct pin_config pinconf[] = {
|
||||||
#ifdef CONFIG_UART_STM32_PORT_1
|
#ifdef CONFIG_UART_1
|
||||||
{STM32_PIN_PB6, STM32F4_PINMUX_FUNC_PB6_USART1_TX},
|
{STM32_PIN_PB6, STM32F4_PINMUX_FUNC_PB6_USART1_TX},
|
||||||
{STM32_PIN_PB7, STM32F4_PINMUX_FUNC_PB7_USART1_RX},
|
{STM32_PIN_PB7, STM32F4_PINMUX_FUNC_PB7_USART1_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_1 */
|
#endif /* CONFIG_UART_1 */
|
||||||
#ifdef CONFIG_UART_STM32_PORT_2
|
#ifdef CONFIG_UART_2
|
||||||
{STM32_PIN_PA2, STM32F4_PINMUX_FUNC_PA2_USART2_TX},
|
{STM32_PIN_PA2, STM32F4_PINMUX_FUNC_PA2_USART2_TX},
|
||||||
{STM32_PIN_PA3, STM32F4_PINMUX_FUNC_PA3_USART2_RX},
|
{STM32_PIN_PA3, STM32F4_PINMUX_FUNC_PA3_USART2_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_2 */
|
#endif /* CONFIG_UART_2 */
|
||||||
#ifdef CONFIG_I2C_1
|
#ifdef CONFIG_I2C_1
|
||||||
{STM32_PIN_PB8, STM32F4_PINMUX_FUNC_PB8_I2C1_SCL},
|
{STM32_PIN_PB8, STM32F4_PINMUX_FUNC_PB8_I2C1_SCL},
|
||||||
{STM32_PIN_PB9, STM32F4_PINMUX_FUNC_PB9_I2C1_SDA},
|
{STM32_PIN_PB9, STM32F4_PINMUX_FUNC_PB9_I2C1_SDA},
|
||||||
|
|
|
@ -12,14 +12,14 @@ config BOARD
|
||||||
|
|
||||||
if UART_CONSOLE
|
if UART_CONSOLE
|
||||||
|
|
||||||
config UART_STM32_PORT_3
|
config UART_3
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # UART_CONSOLE
|
endif # UART_CONSOLE
|
||||||
|
|
||||||
if SERIAL
|
if SERIAL
|
||||||
|
|
||||||
config UART_STM32_PORT_6
|
config UART_6
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # SERIAL
|
endif # SERIAL
|
||||||
|
|
|
@ -14,14 +14,14 @@
|
||||||
|
|
||||||
/* pin assignments for NUCLEO-F412ZG board */
|
/* pin assignments for NUCLEO-F412ZG board */
|
||||||
static const struct pin_config pinconf[] = {
|
static const struct pin_config pinconf[] = {
|
||||||
#ifdef CONFIG_UART_STM32_PORT_3
|
#ifdef CONFIG_UART_3
|
||||||
{STM32_PIN_PD8, STM32F4_PINMUX_FUNC_PD8_USART3_TX},
|
{STM32_PIN_PD8, STM32F4_PINMUX_FUNC_PD8_USART3_TX},
|
||||||
{STM32_PIN_PD9, STM32F4_PINMUX_FUNC_PD9_USART3_RX},
|
{STM32_PIN_PD9, STM32F4_PINMUX_FUNC_PD9_USART3_RX},
|
||||||
#endif /* #ifdef CONFIG_UART_STM32_PORT_3 */
|
#endif /* #ifdef CONFIG_UART_3 */
|
||||||
#ifdef CONFIG_UART_STM32_PORT_6
|
#ifdef CONFIG_UART_6
|
||||||
{STM32_PIN_PG14, STM32F4_PINMUX_FUNC_PG14_USART6_TX},
|
{STM32_PIN_PG14, STM32F4_PINMUX_FUNC_PG14_USART6_TX},
|
||||||
{STM32_PIN_PG9, STM32F4_PINMUX_FUNC_PG9_USART6_RX},
|
{STM32_PIN_PG9, STM32F4_PINMUX_FUNC_PG9_USART6_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_6 */
|
#endif /* CONFIG_UART_6 */
|
||||||
#ifdef CONFIG_PWM_STM32_2
|
#ifdef CONFIG_PWM_STM32_2
|
||||||
{STM32_PIN_PA0, STM32F4_PINMUX_FUNC_PA0_PWM2_CH1},
|
{STM32_PIN_PA0, STM32F4_PINMUX_FUNC_PA0_PWM2_CH1},
|
||||||
#endif /* CONFIG_PWM_STM32_2 */
|
#endif /* CONFIG_PWM_STM32_2 */
|
||||||
|
|
|
@ -13,14 +13,14 @@ config BOARD
|
||||||
|
|
||||||
if UART_CONSOLE
|
if UART_CONSOLE
|
||||||
|
|
||||||
config UART_STM32_PORT_3
|
config UART_3
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # UART_CONSOLE
|
endif # UART_CONSOLE
|
||||||
|
|
||||||
if SERIAL
|
if SERIAL
|
||||||
|
|
||||||
config UART_STM32_PORT_6
|
config UART_6
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # SERIAL
|
endif # SERIAL
|
||||||
|
|
|
@ -14,14 +14,14 @@
|
||||||
|
|
||||||
/* pin assignments for NUCLEO-F413ZH board */
|
/* pin assignments for NUCLEO-F413ZH board */
|
||||||
static const struct pin_config pinconf[] = {
|
static const struct pin_config pinconf[] = {
|
||||||
#ifdef CONFIG_UART_STM32_PORT_3
|
#ifdef CONFIG_UART_3
|
||||||
{STM32_PIN_PD8, STM32F4_PINMUX_FUNC_PD8_USART3_TX},
|
{STM32_PIN_PD8, STM32F4_PINMUX_FUNC_PD8_USART3_TX},
|
||||||
{STM32_PIN_PD9, STM32F4_PINMUX_FUNC_PD9_USART3_RX},
|
{STM32_PIN_PD9, STM32F4_PINMUX_FUNC_PD9_USART3_RX},
|
||||||
#endif /* #ifdef CONFIG_UART_STM32_PORT_3 */
|
#endif /* #ifdef CONFIG_UART_3 */
|
||||||
#ifdef CONFIG_UART_STM32_PORT_6
|
#ifdef CONFIG_UART_6
|
||||||
{STM32_PIN_PG14, STM32F4_PINMUX_FUNC_PG14_USART6_TX},
|
{STM32_PIN_PG14, STM32F4_PINMUX_FUNC_PG14_USART6_TX},
|
||||||
{STM32_PIN_PG9, STM32F4_PINMUX_FUNC_PG9_USART6_RX},
|
{STM32_PIN_PG9, STM32F4_PINMUX_FUNC_PG9_USART6_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_6 */
|
#endif /* CONFIG_UART_6 */
|
||||||
#ifdef CONFIG_PWM_STM32_2
|
#ifdef CONFIG_PWM_STM32_2
|
||||||
{STM32_PIN_PA0, STM32F4_PINMUX_FUNC_PA0_PWM2_CH1},
|
{STM32_PIN_PA0, STM32F4_PINMUX_FUNC_PA0_PWM2_CH1},
|
||||||
#endif /* CONFIG_PWM_STM32_2 */
|
#endif /* CONFIG_PWM_STM32_2 */
|
||||||
|
|
|
@ -12,7 +12,7 @@ config BOARD
|
||||||
|
|
||||||
if UART_CONSOLE
|
if UART_CONSOLE
|
||||||
|
|
||||||
config UART_STM32_PORT_3
|
config UART_3
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # UART_CONSOLE
|
endif # UART_CONSOLE
|
||||||
|
@ -29,7 +29,7 @@ endif # NETWORKING
|
||||||
|
|
||||||
if SERIAL
|
if SERIAL
|
||||||
|
|
||||||
config UART_STM32_PORT_6
|
config UART_6
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # SERIAL
|
endif # SERIAL
|
||||||
|
|
|
@ -14,14 +14,14 @@
|
||||||
|
|
||||||
/* pin assignments for NUCLEO-F429ZI board */
|
/* pin assignments for NUCLEO-F429ZI board */
|
||||||
static const struct pin_config pinconf[] = {
|
static const struct pin_config pinconf[] = {
|
||||||
#ifdef CONFIG_UART_STM32_PORT_3
|
#ifdef CONFIG_UART_3
|
||||||
{STM32_PIN_PD8, STM32F4_PINMUX_FUNC_PD8_USART3_TX},
|
{STM32_PIN_PD8, STM32F4_PINMUX_FUNC_PD8_USART3_TX},
|
||||||
{STM32_PIN_PD9, STM32F4_PINMUX_FUNC_PD9_USART3_RX},
|
{STM32_PIN_PD9, STM32F4_PINMUX_FUNC_PD9_USART3_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_3 */
|
#endif /* CONFIG_UART_3 */
|
||||||
#ifdef CONFIG_UART_STM32_PORT_6
|
#ifdef CONFIG_UART_6
|
||||||
{STM32_PIN_PG14, STM32F4_PINMUX_FUNC_PG14_USART6_TX},
|
{STM32_PIN_PG14, STM32F4_PINMUX_FUNC_PG14_USART6_TX},
|
||||||
{STM32_PIN_PG9, STM32F4_PINMUX_FUNC_PG9_USART6_RX},
|
{STM32_PIN_PG9, STM32F4_PINMUX_FUNC_PG9_USART6_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_6 */
|
#endif /* CONFIG_UART_6 */
|
||||||
#ifdef CONFIG_PWM_STM32_1
|
#ifdef CONFIG_PWM_STM32_1
|
||||||
{STM32_PIN_PE13, STM32F4_PINMUX_FUNC_PE13_PWM1_CH3},
|
{STM32_PIN_PE13, STM32F4_PINMUX_FUNC_PE13_PWM1_CH3},
|
||||||
#endif /* CONFIG_PWM_STM32_1 */
|
#endif /* CONFIG_PWM_STM32_1 */
|
||||||
|
|
|
@ -12,7 +12,7 @@ config BOARD
|
||||||
|
|
||||||
if UART_CONSOLE
|
if UART_CONSOLE
|
||||||
|
|
||||||
config UART_STM32_PORT_2
|
config UART_2
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # UART_CONSOLE
|
endif # UART_CONSOLE
|
||||||
|
|
|
@ -14,14 +14,14 @@
|
||||||
|
|
||||||
/* pin assignments for stm32F446RE Nucleo board */
|
/* pin assignments for stm32F446RE Nucleo board */
|
||||||
static const struct pin_config pinconf[] = {
|
static const struct pin_config pinconf[] = {
|
||||||
#ifdef CONFIG_UART_STM32_PORT_1
|
#ifdef CONFIG_UART_1
|
||||||
{STM32_PIN_PB6, STM32F4_PINMUX_FUNC_PB6_USART1_TX},
|
{STM32_PIN_PB6, STM32F4_PINMUX_FUNC_PB6_USART1_TX},
|
||||||
{STM32_PIN_PB7, STM32F4_PINMUX_FUNC_PB7_USART1_RX},
|
{STM32_PIN_PB7, STM32F4_PINMUX_FUNC_PB7_USART1_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_1 */
|
#endif /* CONFIG_UART_1 */
|
||||||
#ifdef CONFIG_UART_STM32_PORT_2
|
#ifdef CONFIG_UART_2
|
||||||
{STM32_PIN_PA2, STM32F4_PINMUX_FUNC_PA2_USART2_TX},
|
{STM32_PIN_PA2, STM32F4_PINMUX_FUNC_PA2_USART2_TX},
|
||||||
{STM32_PIN_PA3, STM32F4_PINMUX_FUNC_PA3_USART2_RX},
|
{STM32_PIN_PA3, STM32F4_PINMUX_FUNC_PA3_USART2_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_2 */
|
#endif /* CONFIG_UART_2 */
|
||||||
#ifdef CONFIG_I2C_1
|
#ifdef CONFIG_I2C_1
|
||||||
{STM32_PIN_PB8, STM32F4_PINMUX_FUNC_PB8_I2C1_SCL},
|
{STM32_PIN_PB8, STM32F4_PINMUX_FUNC_PB8_I2C1_SCL},
|
||||||
{STM32_PIN_PB9, STM32F4_PINMUX_FUNC_PB9_I2C1_SDA},
|
{STM32_PIN_PB9, STM32F4_PINMUX_FUNC_PB9_I2C1_SDA},
|
||||||
|
|
|
@ -12,14 +12,14 @@ config BOARD
|
||||||
|
|
||||||
if UART_CONSOLE
|
if UART_CONSOLE
|
||||||
|
|
||||||
config UART_STM32_PORT_3
|
config UART_3
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # UART_CONSOLE
|
endif # UART_CONSOLE
|
||||||
|
|
||||||
if SERIAL
|
if SERIAL
|
||||||
|
|
||||||
config UART_STM32_PORT_6
|
config UART_6
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # SERIAL
|
endif # SERIAL
|
||||||
|
|
|
@ -14,17 +14,17 @@
|
||||||
|
|
||||||
/* NUCLEO-F746ZG pin configurations */
|
/* NUCLEO-F746ZG pin configurations */
|
||||||
static const struct pin_config pinconf[] = {
|
static const struct pin_config pinconf[] = {
|
||||||
#ifdef CONFIG_UART_STM32_PORT_2
|
#ifdef CONFIG_UART_2
|
||||||
{ STM32_PIN_PD5, STM32F7_PINMUX_FUNC_PD5_USART2_TX },
|
{ STM32_PIN_PD5, STM32F7_PINMUX_FUNC_PD5_USART2_TX },
|
||||||
{ STM32_PIN_PD6, STM32F7_PINMUX_FUNC_PD6_USART2_RX },
|
{ STM32_PIN_PD6, STM32F7_PINMUX_FUNC_PD6_USART2_RX },
|
||||||
{ STM32_PIN_PD4, STM32F7_PINMUX_FUNC_PD4_USART2_RTS },
|
{ STM32_PIN_PD4, STM32F7_PINMUX_FUNC_PD4_USART2_RTS },
|
||||||
{ STM32_PIN_PD3, STM32F7_PINMUX_FUNC_PD3_USART2_CTS },
|
{ STM32_PIN_PD3, STM32F7_PINMUX_FUNC_PD3_USART2_CTS },
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_UART_STM32_PORT_3
|
#ifdef CONFIG_UART_3
|
||||||
{ STM32_PIN_PD8, STM32F7_PINMUX_FUNC_PD8_USART3_TX },
|
{ STM32_PIN_PD8, STM32F7_PINMUX_FUNC_PD8_USART3_TX },
|
||||||
{ STM32_PIN_PD9, STM32F7_PINMUX_FUNC_PD9_USART3_RX },
|
{ STM32_PIN_PD9, STM32F7_PINMUX_FUNC_PD9_USART3_RX },
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_UART_STM32_PORT_6
|
#ifdef CONFIG_UART_6
|
||||||
{ STM32_PIN_PG14, STM32F7_PINMUX_FUNC_PG14_USART6_TX },
|
{ STM32_PIN_PG14, STM32F7_PINMUX_FUNC_PG14_USART6_TX },
|
||||||
{ STM32_PIN_PG9, STM32F7_PINMUX_FUNC_PG9_USART6_RX },
|
{ STM32_PIN_PG9, STM32F7_PINMUX_FUNC_PG9_USART6_RX },
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -12,7 +12,7 @@ config BOARD
|
||||||
|
|
||||||
if UART_CONSOLE
|
if UART_CONSOLE
|
||||||
|
|
||||||
config UART_STM32_PORT_2
|
config UART_2
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # UART_CONSOLE
|
endif # UART_CONSOLE
|
||||||
|
|
|
@ -14,14 +14,14 @@
|
||||||
|
|
||||||
/* pin assignments for NUCLEO-L053R8 board */
|
/* pin assignments for NUCLEO-L053R8 board */
|
||||||
static const struct pin_config pinconf[] = {
|
static const struct pin_config pinconf[] = {
|
||||||
#ifdef CONFIG_UART_STM32_PORT_1
|
#ifdef CONFIG_UART_1
|
||||||
{STM32_PIN_PB6, STM32L0_PINMUX_FUNC_PB6_USART1_TX},
|
{STM32_PIN_PB6, STM32L0_PINMUX_FUNC_PB6_USART1_TX},
|
||||||
{STM32_PIN_PB7, STM32L0_PINMUX_FUNC_PB7_USART1_RX},
|
{STM32_PIN_PB7, STM32L0_PINMUX_FUNC_PB7_USART1_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_1 */
|
#endif /* CONFIG_UART_1 */
|
||||||
#ifdef CONFIG_UART_STM32_PORT_2
|
#ifdef CONFIG_UART_2
|
||||||
{STM32_PIN_PA2, STM32L0_PINMUX_FUNC_PA2_USART2_TX},
|
{STM32_PIN_PA2, STM32L0_PINMUX_FUNC_PA2_USART2_TX},
|
||||||
{STM32_PIN_PA3, STM32L0_PINMUX_FUNC_PA3_USART2_RX},
|
{STM32_PIN_PA3, STM32L0_PINMUX_FUNC_PA3_USART2_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_2 */
|
#endif /* CONFIG_UART_2 */
|
||||||
#ifdef CONFIG_I2C_1
|
#ifdef CONFIG_I2C_1
|
||||||
{STM32_PIN_PB8, STM32L0_PINMUX_FUNC_PB8_I2C1_SCL},
|
{STM32_PIN_PB8, STM32L0_PINMUX_FUNC_PB8_I2C1_SCL},
|
||||||
{STM32_PIN_PB9, STM32L0_PINMUX_FUNC_PB9_I2C1_SDA},
|
{STM32_PIN_PB9, STM32L0_PINMUX_FUNC_PB9_I2C1_SDA},
|
||||||
|
|
|
@ -12,7 +12,7 @@ config BOARD
|
||||||
|
|
||||||
if UART_CONSOLE
|
if UART_CONSOLE
|
||||||
|
|
||||||
config UART_STM32_PORT_2
|
config UART_2
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # UART_CONSOLE
|
endif # UART_CONSOLE
|
||||||
|
|
|
@ -14,14 +14,14 @@
|
||||||
|
|
||||||
/* pin assignments for NUCLEO-L073RZ board */
|
/* pin assignments for NUCLEO-L073RZ board */
|
||||||
static const struct pin_config pinconf[] = {
|
static const struct pin_config pinconf[] = {
|
||||||
#ifdef CONFIG_UART_STM32_PORT_1
|
#ifdef CONFIG_UART_1
|
||||||
{STM32_PIN_PB6, STM32L0_PINMUX_FUNC_PB6_USART1_TX},
|
{STM32_PIN_PB6, STM32L0_PINMUX_FUNC_PB6_USART1_TX},
|
||||||
{STM32_PIN_PB7, STM32L0_PINMUX_FUNC_PB7_USART1_RX},
|
{STM32_PIN_PB7, STM32L0_PINMUX_FUNC_PB7_USART1_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_1 */
|
#endif /* CONFIG_UART_1 */
|
||||||
#ifdef CONFIG_UART_STM32_PORT_2
|
#ifdef CONFIG_UART_2
|
||||||
{STM32_PIN_PA2, STM32L0_PINMUX_FUNC_PA2_USART2_TX},
|
{STM32_PIN_PA2, STM32L0_PINMUX_FUNC_PA2_USART2_TX},
|
||||||
{STM32_PIN_PA3, STM32L0_PINMUX_FUNC_PA3_USART2_RX},
|
{STM32_PIN_PA3, STM32L0_PINMUX_FUNC_PA3_USART2_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_2 */
|
#endif /* CONFIG_UART_2 */
|
||||||
#ifdef CONFIG_I2C_1
|
#ifdef CONFIG_I2C_1
|
||||||
{STM32_PIN_PB8, STM32L0_PINMUX_FUNC_PB8_I2C1_SCL},
|
{STM32_PIN_PB8, STM32L0_PINMUX_FUNC_PB8_I2C1_SCL},
|
||||||
{STM32_PIN_PB9, STM32L0_PINMUX_FUNC_PB9_I2C1_SDA},
|
{STM32_PIN_PB9, STM32L0_PINMUX_FUNC_PB9_I2C1_SDA},
|
||||||
|
|
|
@ -13,7 +13,7 @@ config BOARD
|
||||||
|
|
||||||
if UART_CONSOLE
|
if UART_CONSOLE
|
||||||
|
|
||||||
config UART_STM32_PORT_2
|
config UART_2
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # UART_CONSOLE
|
endif # UART_CONSOLE
|
||||||
|
|
|
@ -15,14 +15,14 @@
|
||||||
|
|
||||||
/* pin assignments for NUCLEO-L432KC board */
|
/* pin assignments for NUCLEO-L432KC board */
|
||||||
static const struct pin_config pinconf[] = {
|
static const struct pin_config pinconf[] = {
|
||||||
#ifdef CONFIG_UART_STM32_PORT_1
|
#ifdef CONFIG_UART_1
|
||||||
{STM32_PIN_PA9, STM32L4X_PINMUX_FUNC_PA9_USART1_TX},
|
{STM32_PIN_PA9, STM32L4X_PINMUX_FUNC_PA9_USART1_TX},
|
||||||
{STM32_PIN_PA10, STM32L4X_PINMUX_FUNC_PA10_USART1_RX},
|
{STM32_PIN_PA10, STM32L4X_PINMUX_FUNC_PA10_USART1_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_1 */
|
#endif /* CONFIG_UART_1 */
|
||||||
#ifdef CONFIG_UART_STM32_PORT_2
|
#ifdef CONFIG_UART_2
|
||||||
{STM32_PIN_PA2, STM32L4X_PINMUX_FUNC_PA2_USART2_TX},
|
{STM32_PIN_PA2, STM32L4X_PINMUX_FUNC_PA2_USART2_TX},
|
||||||
{STM32_PIN_PA15, STM32L4X_PINMUX_FUNC_PA15_USART2_RX},
|
{STM32_PIN_PA15, STM32L4X_PINMUX_FUNC_PA15_USART2_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_2 */
|
#endif /* CONFIG_UART_2 */
|
||||||
#ifdef CONFIG_I2C_1
|
#ifdef CONFIG_I2C_1
|
||||||
{STM32_PIN_PB6, STM32L4X_PINMUX_FUNC_PB6_I2C1_SCL},
|
{STM32_PIN_PB6, STM32L4X_PINMUX_FUNC_PB6_I2C1_SCL},
|
||||||
{STM32_PIN_PB7, STM32L4X_PINMUX_FUNC_PB7_I2C1_SDA},
|
{STM32_PIN_PB7, STM32L4X_PINMUX_FUNC_PB7_I2C1_SDA},
|
||||||
|
|
|
@ -13,7 +13,7 @@ config BOARD
|
||||||
|
|
||||||
if UART_CONSOLE
|
if UART_CONSOLE
|
||||||
|
|
||||||
config UART_STM32_PORT_2
|
config UART_2
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # UART_CONSOLE
|
endif # UART_CONSOLE
|
||||||
|
|
|
@ -15,18 +15,18 @@
|
||||||
|
|
||||||
/* pin assignments for NUCLEO-L476RG board */
|
/* pin assignments for NUCLEO-L476RG board */
|
||||||
static const struct pin_config pinconf[] = {
|
static const struct pin_config pinconf[] = {
|
||||||
#ifdef CONFIG_UART_STM32_PORT_1
|
#ifdef CONFIG_UART_1
|
||||||
{STM32_PIN_PA9, STM32L4X_PINMUX_FUNC_PA9_USART1_TX},
|
{STM32_PIN_PA9, STM32L4X_PINMUX_FUNC_PA9_USART1_TX},
|
||||||
{STM32_PIN_PA10, STM32L4X_PINMUX_FUNC_PA10_USART1_RX},
|
{STM32_PIN_PA10, STM32L4X_PINMUX_FUNC_PA10_USART1_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_1 */
|
#endif /* CONFIG_UART_1 */
|
||||||
#ifdef CONFIG_UART_STM32_PORT_2
|
#ifdef CONFIG_UART_2
|
||||||
{STM32_PIN_PA2, STM32L4X_PINMUX_FUNC_PA2_USART2_TX},
|
{STM32_PIN_PA2, STM32L4X_PINMUX_FUNC_PA2_USART2_TX},
|
||||||
{STM32_PIN_PA3, STM32L4X_PINMUX_FUNC_PA3_USART2_RX},
|
{STM32_PIN_PA3, STM32L4X_PINMUX_FUNC_PA3_USART2_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_2 */
|
#endif /* CONFIG_UART_2 */
|
||||||
#ifdef CONFIG_UART_STM32_PORT_3
|
#ifdef CONFIG_UART_3
|
||||||
{STM32_PIN_PB10, STM32L4X_PINMUX_FUNC_PB10_USART3_TX},
|
{STM32_PIN_PB10, STM32L4X_PINMUX_FUNC_PB10_USART3_TX},
|
||||||
{STM32_PIN_PB11, STM32L4X_PINMUX_FUNC_PB11_USART3_RX},
|
{STM32_PIN_PB11, STM32L4X_PINMUX_FUNC_PB11_USART3_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_3 */
|
#endif /* CONFIG_UART_3 */
|
||||||
#ifdef CONFIG_I2C_1
|
#ifdef CONFIG_I2C_1
|
||||||
{STM32_PIN_PB6, STM32L4X_PINMUX_FUNC_PB6_I2C1_SCL},
|
{STM32_PIN_PB6, STM32L4X_PINMUX_FUNC_PB6_I2C1_SCL},
|
||||||
{STM32_PIN_PB7, STM32L4X_PINMUX_FUNC_PB7_I2C1_SDA},
|
{STM32_PIN_PB7, STM32L4X_PINMUX_FUNC_PB7_I2C1_SDA},
|
||||||
|
|
|
@ -12,7 +12,7 @@ config BOARD
|
||||||
|
|
||||||
if UART_CONSOLE
|
if UART_CONSOLE
|
||||||
|
|
||||||
config UART_STM32_PORT_2
|
config UART_2
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # UART_CONSOLE
|
endif # UART_CONSOLE
|
||||||
|
|
|
@ -14,18 +14,18 @@
|
||||||
|
|
||||||
/* pin assignments for NUCLEO-L4R5ZI board */
|
/* pin assignments for NUCLEO-L4R5ZI board */
|
||||||
static const struct pin_config pinconf[] = {
|
static const struct pin_config pinconf[] = {
|
||||||
#ifdef CONFIG_UART_STM32_PORT_1
|
#ifdef CONFIG_UART_1
|
||||||
{STM32_PIN_PA9, STM32L4X_PINMUX_FUNC_PA9_USART1_TX},
|
{STM32_PIN_PA9, STM32L4X_PINMUX_FUNC_PA9_USART1_TX},
|
||||||
{STM32_PIN_PA10, STM32L4X_PINMUX_FUNC_PA10_USART1_RX},
|
{STM32_PIN_PA10, STM32L4X_PINMUX_FUNC_PA10_USART1_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_1 */
|
#endif /* CONFIG_UART_1 */
|
||||||
#ifdef CONFIG_UART_STM32_PORT_2
|
#ifdef CONFIG_UART_2
|
||||||
{STM32_PIN_PA2, STM32L4X_PINMUX_FUNC_PA2_USART2_TX},
|
{STM32_PIN_PA2, STM32L4X_PINMUX_FUNC_PA2_USART2_TX},
|
||||||
{STM32_PIN_PA3, STM32L4X_PINMUX_FUNC_PA3_USART2_RX},
|
{STM32_PIN_PA3, STM32L4X_PINMUX_FUNC_PA3_USART2_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_2 */
|
#endif /* CONFIG_UART_2 */
|
||||||
#ifdef CONFIG_UART_STM32_PORT_3
|
#ifdef CONFIG_UART_3
|
||||||
{STM32_PIN_PD8, STM32L4X_PINMUX_FUNC_PD8_USART3_TX},
|
{STM32_PIN_PD8, STM32L4X_PINMUX_FUNC_PD8_USART3_TX},
|
||||||
{STM32_PIN_PD9, STM32L4X_PINMUX_FUNC_PD9_USART3_RX},
|
{STM32_PIN_PD9, STM32L4X_PINMUX_FUNC_PD9_USART3_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_3 */
|
#endif /* CONFIG_UART_3 */
|
||||||
#ifdef CONFIG_I2C_1
|
#ifdef CONFIG_I2C_1
|
||||||
{STM32_PIN_PB6, STM32L4X_PINMUX_FUNC_PB6_I2C1_SCL},
|
{STM32_PIN_PB6, STM32L4X_PINMUX_FUNC_PB6_I2C1_SCL},
|
||||||
{STM32_PIN_PB7, STM32L4X_PINMUX_FUNC_PB7_I2C1_SDA},
|
{STM32_PIN_PB7, STM32L4X_PINMUX_FUNC_PB7_I2C1_SDA},
|
||||||
|
|
|
@ -12,7 +12,7 @@ config BOARD
|
||||||
|
|
||||||
if UART_CONSOLE
|
if UART_CONSOLE
|
||||||
|
|
||||||
config UART_STM32_PORT_1
|
config UART_1
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # UART_CONSOLE
|
endif # UART_CONSOLE
|
||||||
|
|
|
@ -14,18 +14,18 @@
|
||||||
|
|
||||||
/* pin assignments for OLIMEX-STM32-E407 board */
|
/* pin assignments for OLIMEX-STM32-E407 board */
|
||||||
static const struct pin_config pinconf[] = {
|
static const struct pin_config pinconf[] = {
|
||||||
#ifdef CONFIG_UART_STM32_PORT_1
|
#ifdef CONFIG_UART_1
|
||||||
{STM32_PIN_PB6, STM32F4_PINMUX_FUNC_PB6_USART1_TX},
|
{STM32_PIN_PB6, STM32F4_PINMUX_FUNC_PB6_USART1_TX},
|
||||||
{STM32_PIN_PB7, STM32F4_PINMUX_FUNC_PB7_USART1_RX},
|
{STM32_PIN_PB7, STM32F4_PINMUX_FUNC_PB7_USART1_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_1 */
|
#endif /* CONFIG_UART_1 */
|
||||||
#ifdef CONFIG_UART_STM32_PORT_3
|
#ifdef CONFIG_UART_3
|
||||||
{STM32_PIN_PB10, STM32F4_PINMUX_FUNC_PB10_USART3_TX},
|
{STM32_PIN_PB10, STM32F4_PINMUX_FUNC_PB10_USART3_TX},
|
||||||
{STM32_PIN_PB11, STM32F4_PINMUX_FUNC_PB11_USART3_RX},
|
{STM32_PIN_PB11, STM32F4_PINMUX_FUNC_PB11_USART3_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_3 */
|
#endif /* CONFIG_UART_3 */
|
||||||
#ifdef CONFIG_UART_STM32_PORT_6
|
#ifdef CONFIG_UART_6
|
||||||
{STM32_PIN_PC6, STM32F4_PINMUX_FUNC_PC6_USART6_TX},
|
{STM32_PIN_PC6, STM32F4_PINMUX_FUNC_PC6_USART6_TX},
|
||||||
{STM32_PIN_PC7, STM32F4_PINMUX_FUNC_PC7_USART6_RX},
|
{STM32_PIN_PC7, STM32F4_PINMUX_FUNC_PC7_USART6_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_6 */
|
#endif /* CONFIG_UART_6 */
|
||||||
#ifdef CONFIG_ETH_STM32_HAL
|
#ifdef CONFIG_ETH_STM32_HAL
|
||||||
{STM32_PIN_PC1, STM32F4_PINMUX_FUNC_PC1_ETH},
|
{STM32_PIN_PC1, STM32F4_PINMUX_FUNC_PC1_ETH},
|
||||||
{STM32_PIN_PC4, STM32F4_PINMUX_FUNC_PC4_ETH},
|
{STM32_PIN_PC4, STM32F4_PINMUX_FUNC_PC4_ETH},
|
||||||
|
|
|
@ -12,7 +12,7 @@ config BOARD
|
||||||
|
|
||||||
if UART_CONSOLE
|
if UART_CONSOLE
|
||||||
|
|
||||||
config UART_STM32_PORT_2
|
config UART_2
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # UART_CONSOLE
|
endif # UART_CONSOLE
|
||||||
|
|
|
@ -14,18 +14,18 @@
|
||||||
|
|
||||||
/* pin assignments for OLIMEX-STM32-H407 board */
|
/* pin assignments for OLIMEX-STM32-H407 board */
|
||||||
static const struct pin_config pinconf[] = {
|
static const struct pin_config pinconf[] = {
|
||||||
#ifdef CONFIG_UART_STM32_PORT_2
|
#ifdef CONFIG_UART_2
|
||||||
{STM32_PIN_PA2, STM32F4_PINMUX_FUNC_PA2_USART2_TX},
|
{STM32_PIN_PA2, STM32F4_PINMUX_FUNC_PA2_USART2_TX},
|
||||||
{STM32_PIN_PA3, STM32F4_PINMUX_FUNC_PA3_USART2_RX},
|
{STM32_PIN_PA3, STM32F4_PINMUX_FUNC_PA3_USART2_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_2 */
|
#endif /* CONFIG_UART_2 */
|
||||||
#ifdef CONFIG_UART_STM32_PORT_3
|
#ifdef CONFIG_UART_3
|
||||||
{STM32_PIN_PB10, STM32F4_PINMUX_FUNC_PB10_USART3_TX},
|
{STM32_PIN_PB10, STM32F4_PINMUX_FUNC_PB10_USART3_TX},
|
||||||
{STM32_PIN_PB11, STM32F4_PINMUX_FUNC_PB11_USART3_RX},
|
{STM32_PIN_PB11, STM32F4_PINMUX_FUNC_PB11_USART3_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_3 */
|
#endif /* CONFIG_UART_3 */
|
||||||
#ifdef CONFIG_UART_STM32_PORT_6
|
#ifdef CONFIG_UART_6
|
||||||
{STM32_PIN_PC6, STM32F4_PINMUX_FUNC_PC6_USART6_TX},
|
{STM32_PIN_PC6, STM32F4_PINMUX_FUNC_PC6_USART6_TX},
|
||||||
{STM32_PIN_PC7, STM32F4_PINMUX_FUNC_PC7_USART6_RX},
|
{STM32_PIN_PC7, STM32F4_PINMUX_FUNC_PC7_USART6_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_6 */
|
#endif /* CONFIG_UART_6 */
|
||||||
#ifdef CONFIG_USB_DC_STM32
|
#ifdef CONFIG_USB_DC_STM32
|
||||||
{STM32_PIN_PA11, STM32F4_PINMUX_FUNC_PA11_OTG_FS_DM},
|
{STM32_PIN_PA11, STM32F4_PINMUX_FUNC_PA11_OTG_FS_DM},
|
||||||
{STM32_PIN_PA12, STM32F4_PINMUX_FUNC_PA12_OTG_FS_DP},
|
{STM32_PIN_PA12, STM32F4_PINMUX_FUNC_PA12_OTG_FS_DP},
|
||||||
|
|
|
@ -12,7 +12,7 @@ config BOARD
|
||||||
|
|
||||||
if UART_CONSOLE
|
if UART_CONSOLE
|
||||||
|
|
||||||
config UART_STM32_PORT_2
|
config UART_2
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # UART_CONSOLE
|
endif # UART_CONSOLE
|
||||||
|
|
|
@ -14,10 +14,10 @@
|
||||||
|
|
||||||
/* pin assignments for OLIMEX-STM32-P405 board */
|
/* pin assignments for OLIMEX-STM32-P405 board */
|
||||||
static const struct pin_config pinconf[] = {
|
static const struct pin_config pinconf[] = {
|
||||||
#ifdef CONFIG_UART_STM32_PORT_2
|
#ifdef CONFIG_UART_2
|
||||||
{STM32_PIN_PA2, STM32F4_PINMUX_FUNC_PA2_USART2_TX},
|
{STM32_PIN_PA2, STM32F4_PINMUX_FUNC_PA2_USART2_TX},
|
||||||
{STM32_PIN_PA3, STM32F4_PINMUX_FUNC_PA3_USART2_RX},
|
{STM32_PIN_PA3, STM32F4_PINMUX_FUNC_PA3_USART2_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_2 */
|
#endif /* CONFIG_UART_2 */
|
||||||
};
|
};
|
||||||
|
|
||||||
static int pinmux_stm32_init(struct device *port)
|
static int pinmux_stm32_init(struct device *port)
|
||||||
|
|
|
@ -12,7 +12,7 @@ config BOARD
|
||||||
|
|
||||||
if UART_CONSOLE
|
if UART_CONSOLE
|
||||||
|
|
||||||
config UART_STM32_PORT_1
|
config UART_1
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # UART_CONSOLE
|
endif # UART_CONSOLE
|
||||||
|
|
|
@ -14,18 +14,18 @@
|
||||||
|
|
||||||
/* pin assignments for OLIMEXINO-STM32 board */
|
/* pin assignments for OLIMEXINO-STM32 board */
|
||||||
static const struct pin_config pinconf[] = {
|
static const struct pin_config pinconf[] = {
|
||||||
#ifdef CONFIG_UART_STM32_PORT_1
|
#ifdef CONFIG_UART_1
|
||||||
{STM32_PIN_PA9, STM32F1_PINMUX_FUNC_PA9_USART1_TX},
|
{STM32_PIN_PA9, STM32F1_PINMUX_FUNC_PA9_USART1_TX},
|
||||||
{STM32_PIN_PA10, STM32F1_PINMUX_FUNC_PA10_USART1_RX},
|
{STM32_PIN_PA10, STM32F1_PINMUX_FUNC_PA10_USART1_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_2 */
|
#endif /* CONFIG_UART_2 */
|
||||||
#ifdef CONFIG_UART_STM32_PORT_2
|
#ifdef CONFIG_UART_2
|
||||||
{STM32_PIN_PA2, STM32F1_PINMUX_FUNC_PA2_USART2_TX},
|
{STM32_PIN_PA2, STM32F1_PINMUX_FUNC_PA2_USART2_TX},
|
||||||
{STM32_PIN_PA3, STM32F1_PINMUX_FUNC_PA3_USART2_RX},
|
{STM32_PIN_PA3, STM32F1_PINMUX_FUNC_PA3_USART2_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_2 */
|
#endif /* CONFIG_UART_2 */
|
||||||
#ifdef CONFIG_UART_STM32_PORT_3
|
#ifdef CONFIG_UART_3
|
||||||
{STM32_PIN_PB10, STM32F1_PINMUX_FUNC_PB10_USART3_TX},
|
{STM32_PIN_PB10, STM32F1_PINMUX_FUNC_PB10_USART3_TX},
|
||||||
{STM32_PIN_PB11, STM32F1_PINMUX_FUNC_PB11_USART3_RX},
|
{STM32_PIN_PB11, STM32F1_PINMUX_FUNC_PB11_USART3_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_3 */
|
#endif /* CONFIG_UART_3 */
|
||||||
#ifdef CONFIG_I2C_2
|
#ifdef CONFIG_I2C_2
|
||||||
{STM32_PIN_PB10, STM32F1_PINMUX_FUNC_PB10_I2C2_SCL},
|
{STM32_PIN_PB10, STM32F1_PINMUX_FUNC_PB10_I2C2_SCL},
|
||||||
{STM32_PIN_PB11, STM32F1_PINMUX_FUNC_PB11_I2C2_SDA},
|
{STM32_PIN_PB11, STM32F1_PINMUX_FUNC_PB11_I2C2_SDA},
|
||||||
|
|
|
@ -12,7 +12,7 @@ config BOARD
|
||||||
|
|
||||||
if UART_CONSOLE
|
if UART_CONSOLE
|
||||||
|
|
||||||
config UART_STM32_PORT_2
|
config UART_2
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # UART_CONSOLE
|
endif # UART_CONSOLE
|
||||||
|
|
|
@ -14,10 +14,10 @@
|
||||||
|
|
||||||
/* pin assignments for STM3210C-EVAL board */
|
/* pin assignments for STM3210C-EVAL board */
|
||||||
static const struct pin_config pinconf[] = {
|
static const struct pin_config pinconf[] = {
|
||||||
#ifdef CONFIG_UART_STM32_PORT_2
|
#ifdef CONFIG_UART_2
|
||||||
{STM32_PIN_PD5, STM32F1_PINMUX_FUNC_PD5_USART2_TX},
|
{STM32_PIN_PD5, STM32F1_PINMUX_FUNC_PD5_USART2_TX},
|
||||||
{STM32_PIN_PD6, STM32F1_PINMUX_FUNC_PD6_USART2_RX},
|
{STM32_PIN_PD6, STM32F1_PINMUX_FUNC_PD6_USART2_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_2 */
|
#endif /* CONFIG_UART_2 */
|
||||||
};
|
};
|
||||||
|
|
||||||
static int pinmux_stm32_init(struct device *port)
|
static int pinmux_stm32_init(struct device *port)
|
||||||
|
|
|
@ -12,7 +12,7 @@ config BOARD
|
||||||
|
|
||||||
if UART_CONSOLE
|
if UART_CONSOLE
|
||||||
|
|
||||||
config UART_STM32_PORT_2
|
config UART_2
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # UART_CONSOLE
|
endif # UART_CONSOLE
|
||||||
|
|
|
@ -14,10 +14,10 @@
|
||||||
|
|
||||||
/* pin assignments for STM32373C-EVAL board */
|
/* pin assignments for STM32373C-EVAL board */
|
||||||
static const struct pin_config pinconf[] = {
|
static const struct pin_config pinconf[] = {
|
||||||
#ifdef CONFIG_UART_STM32_PORT_2
|
#ifdef CONFIG_UART_2
|
||||||
{STM32_PIN_PD5, STM32F3_PINMUX_FUNC_PD5_USART2_TX},
|
{STM32_PIN_PD5, STM32F3_PINMUX_FUNC_PD5_USART2_TX},
|
||||||
{STM32_PIN_PD6, STM32F3_PINMUX_FUNC_PD6_USART2_RX},
|
{STM32_PIN_PD6, STM32F3_PINMUX_FUNC_PD6_USART2_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_2 */
|
#endif /* CONFIG_UART_2 */
|
||||||
};
|
};
|
||||||
|
|
||||||
static int pinmux_stm32_init(struct device *port)
|
static int pinmux_stm32_init(struct device *port)
|
||||||
|
|
|
@ -12,7 +12,7 @@ config BOARD
|
||||||
|
|
||||||
if UART_CONSOLE
|
if UART_CONSOLE
|
||||||
|
|
||||||
config UART_STM32_PORT_1
|
config UART_1
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # UART_CONSOLE
|
endif # UART_CONSOLE
|
||||||
|
|
|
@ -14,18 +14,18 @@
|
||||||
|
|
||||||
/* pin assignments for STM32_MIN_DEV board */
|
/* pin assignments for STM32_MIN_DEV board */
|
||||||
static const struct pin_config pinconf[] = {
|
static const struct pin_config pinconf[] = {
|
||||||
#ifdef CONFIG_UART_STM32_PORT_1
|
#ifdef CONFIG_UART_1
|
||||||
{STM32_PIN_PA9, STM32F1_PINMUX_FUNC_PA9_USART1_TX},
|
{STM32_PIN_PA9, STM32F1_PINMUX_FUNC_PA9_USART1_TX},
|
||||||
{STM32_PIN_PA10, STM32F1_PINMUX_FUNC_PA10_USART1_RX},
|
{STM32_PIN_PA10, STM32F1_PINMUX_FUNC_PA10_USART1_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_1 */
|
#endif /* CONFIG_UART_1 */
|
||||||
#ifdef CONFIG_UART_STM32_PORT_2
|
#ifdef CONFIG_UART_2
|
||||||
{STM32_PIN_PA2, STM32F1_PINMUX_FUNC_PA2_USART2_TX},
|
{STM32_PIN_PA2, STM32F1_PINMUX_FUNC_PA2_USART2_TX},
|
||||||
{STM32_PIN_PA3, STM32F1_PINMUX_FUNC_PA3_USART2_RX},
|
{STM32_PIN_PA3, STM32F1_PINMUX_FUNC_PA3_USART2_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_2 */
|
#endif /* CONFIG_UART_2 */
|
||||||
#ifdef CONFIG_UART_STM32_PORT_3
|
#ifdef CONFIG_UART_3
|
||||||
{STM32_PIN_PB10, STM32F1_PINMUX_FUNC_PB10_USART3_TX},
|
{STM32_PIN_PB10, STM32F1_PINMUX_FUNC_PB10_USART3_TX},
|
||||||
{STM32_PIN_PB11, STM32F1_PINMUX_FUNC_PB11_USART3_RX},
|
{STM32_PIN_PB11, STM32F1_PINMUX_FUNC_PB11_USART3_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_3 */
|
#endif /* CONFIG_UART_3 */
|
||||||
#ifdef CONFIG_I2C_1
|
#ifdef CONFIG_I2C_1
|
||||||
{STM32_PIN_PB6, STM32F1_PINMUX_FUNC_PB6_I2C1_SCL},
|
{STM32_PIN_PB6, STM32F1_PINMUX_FUNC_PB6_I2C1_SCL},
|
||||||
{STM32_PIN_PB7, STM32F1_PINMUX_FUNC_PB7_I2C1_SDA},
|
{STM32_PIN_PB7, STM32F1_PINMUX_FUNC_PB7_I2C1_SDA},
|
||||||
|
|
|
@ -12,7 +12,7 @@ config BOARD
|
||||||
|
|
||||||
if UART_CONSOLE
|
if UART_CONSOLE
|
||||||
|
|
||||||
config UART_STM32_PORT_2
|
config UART_2
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # UART_CONSOLE
|
endif # UART_CONSOLE
|
||||||
|
|
|
@ -14,10 +14,10 @@
|
||||||
|
|
||||||
/* pin assignments for STM32F072-EVAL board */
|
/* pin assignments for STM32F072-EVAL board */
|
||||||
static const struct pin_config pinconf[] = {
|
static const struct pin_config pinconf[] = {
|
||||||
#ifdef CONFIG_UART_STM32_PORT_2
|
#ifdef CONFIG_UART_2
|
||||||
{STM32_PIN_PD5, STM32F0_PINMUX_FUNC_PD5_USART2_TX},
|
{STM32_PIN_PD5, STM32F0_PINMUX_FUNC_PD5_USART2_TX},
|
||||||
{STM32_PIN_PD6, STM32F0_PINMUX_FUNC_PD6_USART2_RX},
|
{STM32_PIN_PD6, STM32F0_PINMUX_FUNC_PD6_USART2_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_2 */
|
#endif /* CONFIG_UART_2 */
|
||||||
};
|
};
|
||||||
|
|
||||||
static int pinmux_stm32_init(struct device *port)
|
static int pinmux_stm32_init(struct device *port)
|
||||||
|
|
|
@ -12,7 +12,7 @@ config BOARD
|
||||||
|
|
||||||
if UART_CONSOLE
|
if UART_CONSOLE
|
||||||
|
|
||||||
config UART_STM32_PORT_1
|
config UART_1
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # UART_CONSOLE
|
endif # UART_CONSOLE
|
||||||
|
|
|
@ -15,10 +15,10 @@
|
||||||
|
|
||||||
/* pin assignments for STM32F072B-DISCO board */
|
/* pin assignments for STM32F072B-DISCO board */
|
||||||
static const struct pin_config pinconf[] = {
|
static const struct pin_config pinconf[] = {
|
||||||
#ifdef CONFIG_UART_STM32_PORT_1
|
#ifdef CONFIG_UART_1
|
||||||
{STM32_PIN_PB6, STM32F0_PINMUX_FUNC_PB6_USART1_TX},
|
{STM32_PIN_PB6, STM32F0_PINMUX_FUNC_PB6_USART1_TX},
|
||||||
{STM32_PIN_PB7, STM32F0_PINMUX_FUNC_PB7_USART1_RX},
|
{STM32_PIN_PB7, STM32F0_PINMUX_FUNC_PB7_USART1_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_1 */
|
#endif /* CONFIG_UART_1 */
|
||||||
#ifdef CONFIG_I2C_1
|
#ifdef CONFIG_I2C_1
|
||||||
{STM32_PIN_PB8, STM32F0_PINMUX_FUNC_PB8_I2C1_SCL},
|
{STM32_PIN_PB8, STM32F0_PINMUX_FUNC_PB8_I2C1_SCL},
|
||||||
{STM32_PIN_PB9, STM32F0_PINMUX_FUNC_PB9_I2C1_SDA},
|
{STM32_PIN_PB9, STM32F0_PINMUX_FUNC_PB9_I2C1_SDA},
|
||||||
|
|
|
@ -12,7 +12,7 @@ config BOARD
|
||||||
|
|
||||||
if UART_CONSOLE
|
if UART_CONSOLE
|
||||||
|
|
||||||
config UART_STM32_PORT_1
|
config UART_1
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # UART_CONSOLE
|
endif # UART_CONSOLE
|
||||||
|
|
|
@ -15,14 +15,14 @@
|
||||||
|
|
||||||
/* pin assignments for STM32F0DISCOVERY board */
|
/* pin assignments for STM32F0DISCOVERY board */
|
||||||
static const struct pin_config pinconf[] = {
|
static const struct pin_config pinconf[] = {
|
||||||
#ifdef CONFIG_UART_STM32_PORT_1
|
#ifdef CONFIG_UART_1
|
||||||
{STM32_PIN_PA9, STM32F0_PINMUX_FUNC_PA9_USART1_TX},
|
{STM32_PIN_PA9, STM32F0_PINMUX_FUNC_PA9_USART1_TX},
|
||||||
{STM32_PIN_PA10, STM32F0_PINMUX_FUNC_PA10_USART1_RX},
|
{STM32_PIN_PA10, STM32F0_PINMUX_FUNC_PA10_USART1_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_1 */
|
#endif /* CONFIG_UART_1 */
|
||||||
#ifdef CONFIG_UART_STM32_PORT_2
|
#ifdef CONFIG_UART_2
|
||||||
{STM32_PIN_PA2, STM32F0_PINMUX_FUNC_PA2_USART2_TX},
|
{STM32_PIN_PA2, STM32F0_PINMUX_FUNC_PA2_USART2_TX},
|
||||||
{STM32_PIN_PA3, STM32F0_PINMUX_FUNC_PA3_USART2_RX},
|
{STM32_PIN_PA3, STM32F0_PINMUX_FUNC_PA3_USART2_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_2 */
|
#endif /* CONFIG_UART_2 */
|
||||||
};
|
};
|
||||||
|
|
||||||
static int pinmux_stm32_init(struct device *port)
|
static int pinmux_stm32_init(struct device *port)
|
||||||
|
|
|
@ -12,7 +12,7 @@ config BOARD
|
||||||
|
|
||||||
if UART_CONSOLE
|
if UART_CONSOLE
|
||||||
|
|
||||||
config UART_STM32_PORT_1
|
config UART_1
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # UART_CONSOLE
|
endif # UART_CONSOLE
|
||||||
|
|
|
@ -14,14 +14,14 @@
|
||||||
|
|
||||||
/* pin assignments for STM32F3DISCOVERY board */
|
/* pin assignments for STM32F3DISCOVERY board */
|
||||||
static const struct pin_config pinconf[] = {
|
static const struct pin_config pinconf[] = {
|
||||||
#ifdef CONFIG_UART_STM32_PORT_1
|
#ifdef CONFIG_UART_1
|
||||||
{STM32_PIN_PC4, STM32F3_PINMUX_FUNC_PC4_USART1_TX},
|
{STM32_PIN_PC4, STM32F3_PINMUX_FUNC_PC4_USART1_TX},
|
||||||
{STM32_PIN_PC5, STM32F3_PINMUX_FUNC_PC5_USART1_RX},
|
{STM32_PIN_PC5, STM32F3_PINMUX_FUNC_PC5_USART1_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_1 */
|
#endif /* CONFIG_UART_1 */
|
||||||
#ifdef CONFIG_UART_STM32_PORT_2
|
#ifdef CONFIG_UART_2
|
||||||
{STM32_PIN_PA2, STM32F3_PINMUX_FUNC_PA2_USART2_TX},
|
{STM32_PIN_PA2, STM32F3_PINMUX_FUNC_PA2_USART2_TX},
|
||||||
{STM32_PIN_PA3, STM32F3_PINMUX_FUNC_PA3_USART2_RX},
|
{STM32_PIN_PA3, STM32F3_PINMUX_FUNC_PA3_USART2_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_2 */
|
#endif /* CONFIG_UART_2 */
|
||||||
#ifdef CONFIG_I2C_1
|
#ifdef CONFIG_I2C_1
|
||||||
{STM32_PIN_PB6, STM32F3_PINMUX_FUNC_PB6_I2C1_SCL},
|
{STM32_PIN_PB6, STM32F3_PINMUX_FUNC_PB6_I2C1_SCL},
|
||||||
{STM32_PIN_PB7, STM32F3_PINMUX_FUNC_PB7_I2C1_SDA},
|
{STM32_PIN_PB7, STM32F3_PINMUX_FUNC_PB7_I2C1_SDA},
|
||||||
|
|
|
@ -12,7 +12,7 @@ config BOARD
|
||||||
|
|
||||||
if UART_CONSOLE
|
if UART_CONSOLE
|
||||||
|
|
||||||
config UART_STM32_PORT_2
|
config UART_2
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # UART_CONSOLE
|
endif # UART_CONSOLE
|
||||||
|
|
|
@ -14,10 +14,10 @@
|
||||||
|
|
||||||
/* pin assignments for STM32F411E-DISCO board */
|
/* pin assignments for STM32F411E-DISCO board */
|
||||||
static const struct pin_config pinconf[] = {
|
static const struct pin_config pinconf[] = {
|
||||||
#ifdef CONFIG_UART_STM32_PORT_2
|
#ifdef CONFIG_UART_2
|
||||||
{STM32_PIN_PA2, STM32F4_PINMUX_FUNC_PA2_USART2_TX},
|
{STM32_PIN_PA2, STM32F4_PINMUX_FUNC_PA2_USART2_TX},
|
||||||
{STM32_PIN_PA3, STM32F4_PINMUX_FUNC_PA3_USART2_RX},
|
{STM32_PIN_PA3, STM32F4_PINMUX_FUNC_PA3_USART2_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_2 */
|
#endif /* CONFIG_UART_2 */
|
||||||
};
|
};
|
||||||
|
|
||||||
static int pinmux_stm32_init(struct device *port)
|
static int pinmux_stm32_init(struct device *port)
|
||||||
|
|
|
@ -10,7 +10,7 @@ config BOARD
|
||||||
|
|
||||||
if UART_CONSOLE
|
if UART_CONSOLE
|
||||||
|
|
||||||
config UART_STM32_PORT_2
|
config UART_2
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # UART_CONSOLE
|
endif # UART_CONSOLE
|
||||||
|
|
|
@ -14,10 +14,10 @@
|
||||||
|
|
||||||
/* pin assignments for STM32F412G-DISCO board */
|
/* pin assignments for STM32F412G-DISCO board */
|
||||||
static const struct pin_config pinconf[] = {
|
static const struct pin_config pinconf[] = {
|
||||||
#ifdef CONFIG_UART_STM32_PORT_2
|
#ifdef CONFIG_UART_2
|
||||||
{STM32_PIN_PA2, STM32F4_PINMUX_FUNC_PA2_USART2_TX},
|
{STM32_PIN_PA2, STM32F4_PINMUX_FUNC_PA2_USART2_TX},
|
||||||
{STM32_PIN_PA3, STM32F4_PINMUX_FUNC_PA3_USART2_RX},
|
{STM32_PIN_PA3, STM32F4_PINMUX_FUNC_PA3_USART2_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_3 */
|
#endif /* CONFIG_UART_3 */
|
||||||
};
|
};
|
||||||
|
|
||||||
static int pinmux_stm32_init(struct device *port)
|
static int pinmux_stm32_init(struct device *port)
|
||||||
|
|
|
@ -12,7 +12,7 @@ config BOARD
|
||||||
|
|
||||||
if UART_CONSOLE
|
if UART_CONSOLE
|
||||||
|
|
||||||
config UART_STM32_PORT_1
|
config UART_1
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # UART_CONSOLE
|
endif # UART_CONSOLE
|
||||||
|
|
|
@ -14,14 +14,14 @@
|
||||||
|
|
||||||
/* pin assignments for STM32F429I-DISC1 board */
|
/* pin assignments for STM32F429I-DISC1 board */
|
||||||
static const struct pin_config pinconf[] = {
|
static const struct pin_config pinconf[] = {
|
||||||
#ifdef CONFIG_UART_STM32_PORT_1
|
#ifdef CONFIG_UART_1
|
||||||
{STM32_PIN_PA9, STM32F4_PINMUX_FUNC_PA9_USART1_TX},
|
{STM32_PIN_PA9, STM32F4_PINMUX_FUNC_PA9_USART1_TX},
|
||||||
{STM32_PIN_PA10, STM32F4_PINMUX_FUNC_PA10_USART1_RX},
|
{STM32_PIN_PA10, STM32F4_PINMUX_FUNC_PA10_USART1_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_1 */
|
#endif /* CONFIG_UART_1 */
|
||||||
#ifdef CONFIG_UART_STM32_PORT_2
|
#ifdef CONFIG_UART_2
|
||||||
{STM32_PIN_PA2, STM32F4_PINMUX_FUNC_PA2_USART2_TX},
|
{STM32_PIN_PA2, STM32F4_PINMUX_FUNC_PA2_USART2_TX},
|
||||||
{STM32_PIN_PA3, STM32F4_PINMUX_FUNC_PA3_USART2_RX},
|
{STM32_PIN_PA3, STM32F4_PINMUX_FUNC_PA3_USART2_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_2 */
|
#endif /* CONFIG_UART_2 */
|
||||||
};
|
};
|
||||||
|
|
||||||
static int pinmux_stm32_init(struct device *port)
|
static int pinmux_stm32_init(struct device *port)
|
||||||
|
|
|
@ -12,14 +12,14 @@ config BOARD
|
||||||
|
|
||||||
if UART_CONSOLE
|
if UART_CONSOLE
|
||||||
|
|
||||||
config UART_STM32_PORT_3
|
config UART_3
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # UART_CONSOLE
|
endif # UART_CONSOLE
|
||||||
|
|
||||||
if SERIAL
|
if SERIAL
|
||||||
|
|
||||||
config UART_STM32_PORT_6
|
config UART_6
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # SERIAL
|
endif # SERIAL
|
||||||
|
|
|
@ -14,14 +14,14 @@
|
||||||
|
|
||||||
/* pin assignments for STM32F469I-DISCO board */
|
/* pin assignments for STM32F469I-DISCO board */
|
||||||
static const struct pin_config pinconf[] = {
|
static const struct pin_config pinconf[] = {
|
||||||
#ifdef CONFIG_UART_STM32_PORT_3
|
#ifdef CONFIG_UART_3
|
||||||
{STM32_PIN_PB10, STM32F4_PINMUX_FUNC_PB10_USART3_TX},
|
{STM32_PIN_PB10, STM32F4_PINMUX_FUNC_PB10_USART3_TX},
|
||||||
{STM32_PIN_PB11, STM32F4_PINMUX_FUNC_PB11_USART3_RX},
|
{STM32_PIN_PB11, STM32F4_PINMUX_FUNC_PB11_USART3_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_3 */
|
#endif /* CONFIG_UART_3 */
|
||||||
#ifdef CONFIG_UART_STM32_PORT_6
|
#ifdef CONFIG_UART_6
|
||||||
{STM32_PIN_PG14, STM32F4_PINMUX_FUNC_PG14_USART6_TX},
|
{STM32_PIN_PG14, STM32F4_PINMUX_FUNC_PG14_USART6_TX},
|
||||||
{STM32_PIN_PG9, STM32F4_PINMUX_FUNC_PG9_USART6_RX},
|
{STM32_PIN_PG9, STM32F4_PINMUX_FUNC_PG9_USART6_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_6 */
|
#endif /* CONFIG_UART_6 */
|
||||||
#ifdef CONFIG_I2C_1
|
#ifdef CONFIG_I2C_1
|
||||||
{STM32_PIN_PB8, STM32F4_PINMUX_FUNC_PB8_I2C1_SCL},
|
{STM32_PIN_PB8, STM32F4_PINMUX_FUNC_PB8_I2C1_SCL},
|
||||||
{STM32_PIN_PB9, STM32F4_PINMUX_FUNC_PB9_I2C1_SDA},
|
{STM32_PIN_PB9, STM32F4_PINMUX_FUNC_PB9_I2C1_SDA},
|
||||||
|
|
|
@ -12,7 +12,7 @@ config BOARD
|
||||||
|
|
||||||
if UART_CONSOLE
|
if UART_CONSOLE
|
||||||
|
|
||||||
config UART_STM32_PORT_2
|
config UART_2
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # UART_CONSOLE
|
endif # UART_CONSOLE
|
||||||
|
|
|
@ -14,14 +14,14 @@
|
||||||
|
|
||||||
/* pin assignments for STM32F4DISCOVERY board */
|
/* pin assignments for STM32F4DISCOVERY board */
|
||||||
static const struct pin_config pinconf[] = {
|
static const struct pin_config pinconf[] = {
|
||||||
#ifdef CONFIG_UART_STM32_PORT_1
|
#ifdef CONFIG_UART_1
|
||||||
{STM32_PIN_PB6, STM32F4_PINMUX_FUNC_PB6_USART1_TX},
|
{STM32_PIN_PB6, STM32F4_PINMUX_FUNC_PB6_USART1_TX},
|
||||||
{STM32_PIN_PB7, STM32F4_PINMUX_FUNC_PB7_USART1_RX},
|
{STM32_PIN_PB7, STM32F4_PINMUX_FUNC_PB7_USART1_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_1 */
|
#endif /* CONFIG_UART_1 */
|
||||||
#ifdef CONFIG_UART_STM32_PORT_2
|
#ifdef CONFIG_UART_2
|
||||||
{STM32_PIN_PA2, STM32F4_PINMUX_FUNC_PA2_USART2_TX},
|
{STM32_PIN_PA2, STM32F4_PINMUX_FUNC_PA2_USART2_TX},
|
||||||
{STM32_PIN_PA3, STM32F4_PINMUX_FUNC_PA3_USART2_RX},
|
{STM32_PIN_PA3, STM32F4_PINMUX_FUNC_PA3_USART2_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_2 */
|
#endif /* CONFIG_UART_2 */
|
||||||
#ifdef CONFIG_PWM_STM32_2
|
#ifdef CONFIG_PWM_STM32_2
|
||||||
{STM32_PIN_PA0, STM32F4_PINMUX_FUNC_PA0_PWM2_CH1},
|
{STM32_PIN_PA0, STM32F4_PINMUX_FUNC_PA0_PWM2_CH1},
|
||||||
#endif /* CONFIG_PWM_STM32_2 */
|
#endif /* CONFIG_PWM_STM32_2 */
|
||||||
|
|
|
@ -13,14 +13,14 @@ config BOARD
|
||||||
|
|
||||||
if UART_CONSOLE
|
if UART_CONSOLE
|
||||||
|
|
||||||
config UART_STM32_PORT_6
|
config UART_6
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # UART_CONSOLE
|
endif # UART_CONSOLE
|
||||||
|
|
||||||
if SERIAL
|
if SERIAL
|
||||||
|
|
||||||
config UART_STM32_PORT_2
|
config UART_2
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # SERIAL
|
endif # SERIAL
|
||||||
|
|
|
@ -14,14 +14,14 @@
|
||||||
|
|
||||||
/* pin assignments for STM32F723E-DISCO board */
|
/* pin assignments for STM32F723E-DISCO board */
|
||||||
static const struct pin_config pinconf[] = {
|
static const struct pin_config pinconf[] = {
|
||||||
#ifdef CONFIG_UART_STM32_PORT_2
|
#ifdef CONFIG_UART_2
|
||||||
{STM32_PIN_PA2, STM32F7_PINMUX_FUNC_PA2_USART2_TX},
|
{STM32_PIN_PA2, STM32F7_PINMUX_FUNC_PA2_USART2_TX},
|
||||||
{STM32_PIN_PA3, STM32F7_PINMUX_FUNC_PA3_USART2_RX},
|
{STM32_PIN_PA3, STM32F7_PINMUX_FUNC_PA3_USART2_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_2 */
|
#endif /* CONFIG_UART_2 */
|
||||||
#ifdef CONFIG_UART_STM32_PORT_6
|
#ifdef CONFIG_UART_6
|
||||||
{STM32_PIN_PC6, STM32F7_PINMUX_FUNC_PC6_USART6_TX},
|
{STM32_PIN_PC6, STM32F7_PINMUX_FUNC_PC6_USART6_TX},
|
||||||
{STM32_PIN_PC7, STM32F7_PINMUX_FUNC_PC7_USART6_RX},
|
{STM32_PIN_PC7, STM32F7_PINMUX_FUNC_PC7_USART6_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_6 */
|
#endif /* CONFIG_UART_6 */
|
||||||
#ifdef CONFIG_I2C_1
|
#ifdef CONFIG_I2C_1
|
||||||
{STM32_PIN_PB8, STM32F7_PINMUX_FUNC_PB8_I2C1_SCL},
|
{STM32_PIN_PB8, STM32F7_PINMUX_FUNC_PB8_I2C1_SCL},
|
||||||
{STM32_PIN_PB9, STM32F7_PINMUX_FUNC_PB9_I2C1_SDA},
|
{STM32_PIN_PB9, STM32F7_PINMUX_FUNC_PB9_I2C1_SDA},
|
||||||
|
|
|
@ -12,7 +12,7 @@ config BOARD
|
||||||
|
|
||||||
if UART_CONSOLE
|
if UART_CONSOLE
|
||||||
|
|
||||||
config UART_STM32_PORT_1
|
config UART_1
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # UART_CONSOLE
|
endif # UART_CONSOLE
|
||||||
|
@ -29,7 +29,7 @@ endif # NETWORKING
|
||||||
|
|
||||||
if SERIAL
|
if SERIAL
|
||||||
|
|
||||||
config UART_STM32_PORT_6
|
config UART_6
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # SERIAL
|
endif # SERIAL
|
||||||
|
|
|
@ -14,14 +14,14 @@
|
||||||
|
|
||||||
/* pin assignments for STM32F746G-DISCO board */
|
/* pin assignments for STM32F746G-DISCO board */
|
||||||
static const struct pin_config pinconf[] = {
|
static const struct pin_config pinconf[] = {
|
||||||
#ifdef CONFIG_UART_STM32_PORT_1
|
#ifdef CONFIG_UART_1
|
||||||
{STM32_PIN_PA9, STM32F7_PINMUX_FUNC_PA9_USART1_TX},
|
{STM32_PIN_PA9, STM32F7_PINMUX_FUNC_PA9_USART1_TX},
|
||||||
{STM32_PIN_PB7, STM32F7_PINMUX_FUNC_PB7_USART1_RX},
|
{STM32_PIN_PB7, STM32F7_PINMUX_FUNC_PB7_USART1_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_1 */
|
#endif /* CONFIG_UART_1 */
|
||||||
#ifdef CONFIG_UART_STM32_PORT_6
|
#ifdef CONFIG_UART_6
|
||||||
{STM32_PIN_PC6, STM32F7_PINMUX_FUNC_PC6_USART6_TX},
|
{STM32_PIN_PC6, STM32F7_PINMUX_FUNC_PC6_USART6_TX},
|
||||||
{STM32_PIN_PC7, STM32F7_PINMUX_FUNC_PC7_USART6_RX},
|
{STM32_PIN_PC7, STM32F7_PINMUX_FUNC_PC7_USART6_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_6 */
|
#endif /* CONFIG_UART_6 */
|
||||||
#ifdef CONFIG_PWM_STM32_3
|
#ifdef CONFIG_PWM_STM32_3
|
||||||
{STM32_PIN_PB4, STM32F7_PINMUX_FUNC_PB4_PWM3_CH1},
|
{STM32_PIN_PB4, STM32F7_PINMUX_FUNC_PB4_PWM3_CH1},
|
||||||
#endif /* CONFIG_PWM_STM32_3 */
|
#endif /* CONFIG_PWM_STM32_3 */
|
||||||
|
|
|
@ -12,14 +12,14 @@ config BOARD
|
||||||
|
|
||||||
if UART_CONSOLE
|
if UART_CONSOLE
|
||||||
|
|
||||||
config UART_STM32_PORT_1
|
config UART_1
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # UART_CONSOLE
|
endif # UART_CONSOLE
|
||||||
|
|
||||||
if SERIAL
|
if SERIAL
|
||||||
|
|
||||||
config UART_STM32_PORT_6
|
config UART_6
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # SERIAL
|
endif # SERIAL
|
||||||
|
|
|
@ -14,14 +14,14 @@
|
||||||
|
|
||||||
/* pin assignments for STM32F769I-DISCO board */
|
/* pin assignments for STM32F769I-DISCO board */
|
||||||
static const struct pin_config pinconf[] = {
|
static const struct pin_config pinconf[] = {
|
||||||
#ifdef CONFIG_UART_STM32_PORT_1
|
#ifdef CONFIG_UART_1
|
||||||
{STM32_PIN_PA9, STM32F7_PINMUX_FUNC_PA9_USART1_TX},
|
{STM32_PIN_PA9, STM32F7_PINMUX_FUNC_PA9_USART1_TX},
|
||||||
{STM32_PIN_PA10, STM32F7_PINMUX_FUNC_PA10_USART1_RX},
|
{STM32_PIN_PA10, STM32F7_PINMUX_FUNC_PA10_USART1_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_1 */
|
#endif /* CONFIG_UART_1 */
|
||||||
#ifdef CONFIG_UART_STM32_PORT_6
|
#ifdef CONFIG_UART_6
|
||||||
{STM32_PIN_PC6, STM32F7_PINMUX_FUNC_PC6_USART6_TX},
|
{STM32_PIN_PC6, STM32F7_PINMUX_FUNC_PC6_USART6_TX},
|
||||||
{STM32_PIN_PC7, STM32F7_PINMUX_FUNC_PC7_USART6_RX},
|
{STM32_PIN_PC7, STM32F7_PINMUX_FUNC_PC7_USART6_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_6 */
|
#endif /* CONFIG_UART_6 */
|
||||||
#ifdef CONFIG_I2C_1
|
#ifdef CONFIG_I2C_1
|
||||||
{STM32_PIN_PB8, STM32F7_PINMUX_FUNC_PB8_I2C1_SCL},
|
{STM32_PIN_PB8, STM32F7_PINMUX_FUNC_PB8_I2C1_SCL},
|
||||||
{STM32_PIN_PB9, STM32F7_PINMUX_FUNC_PB9_I2C1_SDA},
|
{STM32_PIN_PB9, STM32F7_PINMUX_FUNC_PB9_I2C1_SDA},
|
||||||
|
|
|
@ -12,7 +12,7 @@ config BOARD
|
||||||
|
|
||||||
if UART_CONSOLE
|
if UART_CONSOLE
|
||||||
|
|
||||||
config UART_STM32_PORT_2
|
config UART_2
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # UART_CONSOLE
|
endif # UART_CONSOLE
|
||||||
|
|
|
@ -14,10 +14,10 @@
|
||||||
|
|
||||||
/* pin assignments for STM32L476G DISCOVERY board */
|
/* pin assignments for STM32L476G DISCOVERY board */
|
||||||
static const struct pin_config pinconf[] = {
|
static const struct pin_config pinconf[] = {
|
||||||
#ifdef CONFIG_UART_STM32_PORT_2
|
#ifdef CONFIG_UART_2
|
||||||
{STM32_PIN_PD5, STM32L4X_PINMUX_FUNC_PD5_USART2_TX},
|
{STM32_PIN_PD5, STM32L4X_PINMUX_FUNC_PD5_USART2_TX},
|
||||||
{STM32_PIN_PD6, STM32L4X_PINMUX_FUNC_PD6_USART2_RX},
|
{STM32_PIN_PD6, STM32L4X_PINMUX_FUNC_PD6_USART2_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_2 */
|
#endif /* CONFIG_UART_2 */
|
||||||
};
|
};
|
||||||
|
|
||||||
static int pinmux_stm32_init(struct device *port)
|
static int pinmux_stm32_init(struct device *port)
|
||||||
|
|
|
@ -13,14 +13,14 @@ config BOARD
|
||||||
|
|
||||||
if UART_CONSOLE
|
if UART_CONSOLE
|
||||||
|
|
||||||
config UART_STM32_PORT_2
|
config UART_2
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # UART_CONSOLE
|
endif # UART_CONSOLE
|
||||||
|
|
||||||
if SERIAL
|
if SERIAL
|
||||||
|
|
||||||
config UART_STM32_LPUART_1
|
config UART_LPUART_1
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # SERIAL
|
endif # SERIAL
|
||||||
|
|
|
@ -15,18 +15,18 @@
|
||||||
|
|
||||||
/* pin assignments for STM32L476G-DISCO board */
|
/* pin assignments for STM32L476G-DISCO board */
|
||||||
static const struct pin_config pinconf[] = {
|
static const struct pin_config pinconf[] = {
|
||||||
#ifdef CONFIG_UART_STM32_PORT_1
|
#ifdef CONFIG_UART_1
|
||||||
{STM32_PIN_PB6, STM32L4X_PINMUX_FUNC_PB6_USART1_TX},
|
{STM32_PIN_PB6, STM32L4X_PINMUX_FUNC_PB6_USART1_TX},
|
||||||
{STM32_PIN_PG10, STM32L4X_PINMUX_FUNC_PG10_USART1_RX},
|
{STM32_PIN_PG10, STM32L4X_PINMUX_FUNC_PG10_USART1_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_1 */
|
#endif /* CONFIG_UART_1 */
|
||||||
#ifdef CONFIG_UART_STM32_PORT_2
|
#ifdef CONFIG_UART_2
|
||||||
{STM32_PIN_PA2, STM32L4X_PINMUX_FUNC_PA2_USART2_TX},
|
{STM32_PIN_PA2, STM32L4X_PINMUX_FUNC_PA2_USART2_TX},
|
||||||
{STM32_PIN_PD6, STM32L4X_PINMUX_FUNC_PD6_USART2_RX},
|
{STM32_PIN_PD6, STM32L4X_PINMUX_FUNC_PD6_USART2_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_2 */
|
#endif /* CONFIG_UART_2 */
|
||||||
#ifdef CONFIG_UART_STM32_LPUART_1
|
#ifdef CONFIG_LPUART_1
|
||||||
{STM32_PIN_PG7, STM32L4X_PINMUX_FUNC_PG7_LPUART1_TX},
|
{STM32_PIN_PG7, STM32L4X_PINMUX_FUNC_PG7_LPUART1_TX},
|
||||||
{STM32_PIN_PG8, STM32L4X_PINMUX_FUNC_PG8_LPUART1_RX},
|
{STM32_PIN_PG8, STM32L4X_PINMUX_FUNC_PG8_LPUART1_RX},
|
||||||
#endif /* CONFIG_UART_STM32_LPUART_1 */
|
#endif /* CONFIG_LPUART_1 */
|
||||||
#ifdef CONFIG_I2C_1
|
#ifdef CONFIG_I2C_1
|
||||||
{STM32_PIN_PB8, STM32L4X_PINMUX_FUNC_PB8_I2C1_SCL},
|
{STM32_PIN_PB8, STM32L4X_PINMUX_FUNC_PB8_I2C1_SCL},
|
||||||
{STM32_PIN_PB7, STM32L4X_PINMUX_FUNC_PB7_I2C1_SDA},
|
{STM32_PIN_PB7, STM32L4X_PINMUX_FUNC_PB7_I2C1_SDA},
|
||||||
|
|
|
@ -19,7 +19,7 @@ if UART_STM32
|
||||||
|
|
||||||
# --- port 1 ---
|
# --- port 1 ---
|
||||||
|
|
||||||
config UART_STM32_PORT_1
|
config UART_1
|
||||||
bool "Enable STM32 USART1 Port"
|
bool "Enable STM32 USART1 Port"
|
||||||
depends on UART_STM32
|
depends on UART_STM32
|
||||||
help
|
help
|
||||||
|
@ -28,7 +28,7 @@ config UART_STM32_PORT_1
|
||||||
|
|
||||||
# --- port 2 ---
|
# --- port 2 ---
|
||||||
|
|
||||||
config UART_STM32_PORT_2
|
config UART_2
|
||||||
bool "Enable STM32 USART2 Port"
|
bool "Enable STM32 USART2 Port"
|
||||||
depends on UART_STM32
|
depends on UART_STM32
|
||||||
help
|
help
|
||||||
|
@ -37,7 +37,7 @@ config UART_STM32_PORT_2
|
||||||
|
|
||||||
# --- port 3 ---
|
# --- port 3 ---
|
||||||
|
|
||||||
config UART_STM32_PORT_3
|
config UART_3
|
||||||
bool "Enable STM32 USART3 Port"
|
bool "Enable STM32 USART3 Port"
|
||||||
depends on UART_STM32
|
depends on UART_STM32
|
||||||
help
|
help
|
||||||
|
@ -46,7 +46,7 @@ config UART_STM32_PORT_3
|
||||||
|
|
||||||
# --- port 4 ---
|
# --- port 4 ---
|
||||||
|
|
||||||
config UART_STM32_PORT_4
|
config UART_4
|
||||||
bool "Enable STM32 U(S)ART4 Port"
|
bool "Enable STM32 U(S)ART4 Port"
|
||||||
depends on UART_STM32
|
depends on UART_STM32
|
||||||
help
|
help
|
||||||
|
@ -55,7 +55,7 @@ config UART_STM32_PORT_4
|
||||||
|
|
||||||
# --- port 5 ---
|
# --- port 5 ---
|
||||||
|
|
||||||
config UART_STM32_PORT_5
|
config UART_5
|
||||||
bool "Enable STM32 U(S)ART5 Port"
|
bool "Enable STM32 U(S)ART5 Port"
|
||||||
depends on UART_STM32
|
depends on UART_STM32
|
||||||
help
|
help
|
||||||
|
@ -64,7 +64,7 @@ config UART_STM32_PORT_5
|
||||||
|
|
||||||
# --- port 6 ---
|
# --- port 6 ---
|
||||||
|
|
||||||
config UART_STM32_PORT_6
|
config UART_6
|
||||||
bool "Enable STM32 USART6 Port"
|
bool "Enable STM32 USART6 Port"
|
||||||
depends on UART_STM32
|
depends on UART_STM32
|
||||||
help
|
help
|
||||||
|
@ -73,7 +73,7 @@ config UART_STM32_PORT_6
|
||||||
|
|
||||||
# --- port 7 ---
|
# --- port 7 ---
|
||||||
|
|
||||||
config UART_STM32_PORT_7
|
config UART_7
|
||||||
bool "Enable STM32 U(S)ART7 Port"
|
bool "Enable STM32 U(S)ART7 Port"
|
||||||
depends on UART_STM32
|
depends on UART_STM32
|
||||||
help
|
help
|
||||||
|
@ -82,7 +82,7 @@ config UART_STM32_PORT_7
|
||||||
|
|
||||||
# --- port 8 ---
|
# --- port 8 ---
|
||||||
|
|
||||||
config UART_STM32_PORT_8
|
config UART_8
|
||||||
bool "Enable STM32 U(S)ART8 Port"
|
bool "Enable STM32 U(S)ART8 Port"
|
||||||
depends on UART_STM32
|
depends on UART_STM32
|
||||||
help
|
help
|
||||||
|
@ -91,7 +91,7 @@ config UART_STM32_PORT_8
|
||||||
|
|
||||||
# --- port 9 ---
|
# --- port 9 ---
|
||||||
|
|
||||||
config UART_STM32_PORT_9
|
config UART_9
|
||||||
bool "Enable STM32 UART9 Port"
|
bool "Enable STM32 UART9 Port"
|
||||||
depends on UART_STM32
|
depends on UART_STM32
|
||||||
help
|
help
|
||||||
|
@ -100,7 +100,7 @@ config UART_STM32_PORT_9
|
||||||
|
|
||||||
# --- port 10 ---
|
# --- port 10 ---
|
||||||
|
|
||||||
config UART_STM32_PORT_10
|
config UART_10
|
||||||
bool "Enable STM32 UART10 Port"
|
bool "Enable STM32 UART10 Port"
|
||||||
depends on UART_STM32
|
depends on UART_STM32
|
||||||
help
|
help
|
||||||
|
@ -111,7 +111,7 @@ if SOC_SERIES_STM32L0X || SOC_SERIES_STM32L4X
|
||||||
|
|
||||||
# --- low power port 1 ---
|
# --- low power port 1 ---
|
||||||
|
|
||||||
config UART_STM32_LPUART_1
|
config UART_LPUART_1
|
||||||
bool "Enable STM32 LPUART1 Port"
|
bool "Enable STM32 LPUART1 Port"
|
||||||
depends on UART_STM32
|
depends on UART_STM32
|
||||||
help
|
help
|
||||||
|
|
|
@ -275,7 +275,7 @@ static void uart_stm32_usart_set_baud_rate(struct device *dev,
|
||||||
baud_rate);
|
baud_rate);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_UART_STM32_LPUART_1
|
#ifdef CONFIG_LPUART_1
|
||||||
static void uart_stm32_lpuart_set_baud_rate(struct device *dev,
|
static void uart_stm32_lpuart_set_baud_rate(struct device *dev,
|
||||||
u32_t clock_rate, u32_t baud_rate)
|
u32_t clock_rate, u32_t baud_rate)
|
||||||
{
|
{
|
||||||
|
@ -333,7 +333,7 @@ static int uart_stm32_init(struct device *dev)
|
||||||
(clock_control_subsys_t *)&config->pclken,
|
(clock_control_subsys_t *)&config->pclken,
|
||||||
&clock_rate);
|
&clock_rate);
|
||||||
|
|
||||||
#ifdef CONFIG_UART_STM32_LPUART_1
|
#ifdef CONFIG_LPUART_1
|
||||||
if (IS_LPUART_INSTANCE(UartInstance)) {
|
if (IS_LPUART_INSTANCE(UartInstance)) {
|
||||||
uart_stm32_lpuart_set_baud_rate(dev, clock_rate, baud_rate);
|
uart_stm32_lpuart_set_baud_rate(dev, clock_rate, baud_rate);
|
||||||
} else {
|
} else {
|
||||||
|
@ -410,21 +410,21 @@ DEVICE_AND_API_INIT(uart_stm32_##name, DT_UART_STM32_##name##_NAME, \
|
||||||
STM32_UART_IRQ_HANDLER(name)
|
STM32_UART_IRQ_HANDLER(name)
|
||||||
|
|
||||||
|
|
||||||
#ifdef CONFIG_UART_STM32_PORT_1
|
#ifdef CONFIG_UART_1
|
||||||
STM32_UART_INIT(USART_1)
|
STM32_UART_INIT(USART_1)
|
||||||
#endif /* CONFIG_UART_STM32_PORT_1 */
|
#endif /* CONFIG_UART_1 */
|
||||||
|
|
||||||
#ifdef CONFIG_UART_STM32_PORT_2
|
#ifdef CONFIG_UART_2
|
||||||
STM32_UART_INIT(USART_2)
|
STM32_UART_INIT(USART_2)
|
||||||
#endif /* CONFIG_UART_STM32_PORT_2 */
|
#endif /* CONFIG_UART_2 */
|
||||||
|
|
||||||
#ifdef CONFIG_UART_STM32_PORT_3
|
#ifdef CONFIG_UART_3
|
||||||
STM32_UART_INIT(USART_3)
|
STM32_UART_INIT(USART_3)
|
||||||
#endif /* CONFIG_UART_STM32_PORT_3 */
|
#endif /* CONFIG_UART_3 */
|
||||||
|
|
||||||
#ifdef CONFIG_UART_STM32_PORT_6
|
#ifdef CONFIG_UART_6
|
||||||
STM32_UART_INIT(USART_6)
|
STM32_UART_INIT(USART_6)
|
||||||
#endif /* CONFIG_UART_STM32_PORT_6 */
|
#endif /* CONFIG_UART_6 */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* STM32F0 and STM32L0 series differ from other STM32 series by some
|
* STM32F0 and STM32L0 series differ from other STM32 series by some
|
||||||
|
@ -432,56 +432,56 @@ STM32_UART_INIT(USART_6)
|
||||||
*/
|
*/
|
||||||
#if defined(CONFIG_SOC_SERIES_STM32F0X) || defined(CONFIG_SOC_SERIES_STM32L0X)
|
#if defined(CONFIG_SOC_SERIES_STM32F0X) || defined(CONFIG_SOC_SERIES_STM32L0X)
|
||||||
|
|
||||||
#ifdef CONFIG_UART_STM32_PORT_4
|
#ifdef CONFIG_UART_4
|
||||||
STM32_UART_INIT(USART_4)
|
STM32_UART_INIT(USART_4)
|
||||||
#endif /* CONFIG_UART_STM32_PORT_4 */
|
#endif /* CONFIG_UART_4 */
|
||||||
|
|
||||||
#ifdef CONFIG_UART_STM32_PORT_5
|
#ifdef CONFIG_UART_5
|
||||||
STM32_UART_INIT(USART_5)
|
STM32_UART_INIT(USART_5)
|
||||||
#endif /* CONFIG_UART_STM32_PORT_5 */
|
#endif /* CONFIG_UART_5 */
|
||||||
|
|
||||||
/* Following devices are not available in L0 series (for now)
|
/* Following devices are not available in L0 series (for now)
|
||||||
* But keeping them simplifies ifdefery and won't harm
|
* But keeping them simplifies ifdefery and won't harm
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_UART_STM32_PORT_7
|
#ifdef CONFIG_UART_7
|
||||||
STM32_UART_INIT(USART_7)
|
STM32_UART_INIT(USART_7)
|
||||||
#endif /* CONFIG_UART_STM32_PORT_7 */
|
#endif /* CONFIG_UART_7 */
|
||||||
|
|
||||||
#ifdef CONFIG_UART_STM32_PORT_8
|
#ifdef CONFIG_UART_8
|
||||||
STM32_UART_INIT(USART_8)
|
STM32_UART_INIT(USART_8)
|
||||||
#endif /* CONFIG_UART_STM32_PORT_8 */
|
#endif /* CONFIG_UART_8 */
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#ifdef CONFIG_UART_STM32_PORT_4
|
#ifdef CONFIG_UART_4
|
||||||
STM32_UART_INIT(UART_4)
|
STM32_UART_INIT(UART_4)
|
||||||
#endif /* CONFIG_UART_STM32_PORT_4 */
|
#endif /* CONFIG_UART_4 */
|
||||||
|
|
||||||
#ifdef CONFIG_UART_STM32_PORT_5
|
#ifdef CONFIG_UART_5
|
||||||
STM32_UART_INIT(UART_5)
|
STM32_UART_INIT(UART_5)
|
||||||
#endif /* CONFIG_UART_STM32_PORT_5 */
|
#endif /* CONFIG_UART_5 */
|
||||||
|
|
||||||
#ifdef CONFIG_UART_STM32_PORT_7
|
#ifdef CONFIG_UART_7
|
||||||
STM32_UART_INIT(UART_7)
|
STM32_UART_INIT(UART_7)
|
||||||
#endif /* CONFIG_UART_STM32_PORT_7 */
|
#endif /* CONFIG_UART_7 */
|
||||||
|
|
||||||
#ifdef CONFIG_UART_STM32_PORT_8
|
#ifdef CONFIG_UART_8
|
||||||
STM32_UART_INIT(UART_8)
|
STM32_UART_INIT(UART_8)
|
||||||
#endif /* CONFIG_UART_STM32_PORT_8 */
|
#endif /* CONFIG_UART_8 */
|
||||||
|
|
||||||
#ifdef CONFIG_UART_STM32_PORT_9
|
#ifdef CONFIG_UART_9
|
||||||
STM32_UART_INIT(UART_9)
|
STM32_UART_INIT(UART_9)
|
||||||
#endif /* CONFIG_UART_STM32_PORT_9 */
|
#endif /* CONFIG_UART_9 */
|
||||||
|
|
||||||
#ifdef CONFIG_UART_STM32_PORT_10
|
#ifdef CONFIG_UART_10
|
||||||
STM32_UART_INIT(UART_10)
|
STM32_UART_INIT(UART_10)
|
||||||
#endif /* CONFIG_UART_STM32_PORT_10 */
|
#endif /* CONFIG_UART_10 */
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SOC_SERIES_STM32L4X) || defined(CONFIG_SOC_SERIES_STM32L0X)
|
#if defined(CONFIG_SOC_SERIES_STM32L4X) || defined(CONFIG_SOC_SERIES_STM32L0X)
|
||||||
#ifdef CONFIG_UART_STM32_LPUART_1
|
#ifdef CONFIG_LPUART_1
|
||||||
STM32_UART_INIT(LPUART_1)
|
STM32_UART_INIT(LPUART_1)
|
||||||
#endif /* CONFIG_UART_STM32_LPUART_1 */
|
#endif /* CONFIG_UART_LPUART_1 */
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -6,7 +6,7 @@ CONFIG_CONSOLE_HANDLER=y
|
||||||
CONFIG_UART_CONSOLE=y
|
CONFIG_UART_CONSOLE=y
|
||||||
CONFIG_SERIAL=y
|
CONFIG_SERIAL=y
|
||||||
CONFIG_UART_STM32=y
|
CONFIG_UART_STM32=y
|
||||||
CONFIG_UART_STM32_PORT_1=y
|
CONFIG_UART_1=y
|
||||||
CONFIG_PRINTK=y
|
CONFIG_PRINTK=y
|
||||||
CONFIG_STDOUT_CONSOLE=y
|
CONFIG_STDOUT_CONSOLE=y
|
||||||
CONFIG_EARLY_CONSOLE=y
|
CONFIG_EARLY_CONSOLE=y
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue