Skip to content

Commit

Permalink
boards: nucleo_h743zi: Configure serial console pins using dt
Browse files Browse the repository at this point in the history
usart3 pin configuration is now done through device tree.

Signed-off-by: Jeremy LOCHE <[email protected]>
  • Loading branch information
lochej authored and galak committed Oct 2, 2020
1 parent c82bd74 commit ee2c66a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 2 additions & 0 deletions boards/arm/nucleo_h743zi/nucleo_h743zi.dts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

/dts-v1/;
#include <st/h7/stm32h743Xi.dtsi>
#include <st/h7/stm32h743zitx-pinctrl.dtsi>
#include "arduino_r3_connector.dtsi"

/ {
Expand Down Expand Up @@ -57,6 +58,7 @@
};

&usart3 {
pinctrl-0 = <&usart3_tx_pd8 &usart3_rx_pd9>;
current-speed = <115200>;
status = "okay";
};
Expand Down
4 changes: 0 additions & 4 deletions boards/arm/nucleo_h743zi/pinmux.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@

/* NUCLEO-H743ZI pin configurations */
static const struct pin_config pinconf[] = {
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart3), okay) && CONFIG_SERIAL
{ STM32_PIN_PD8, STM32H7_PINMUX_FUNC_PD8_USART3_TX },
{ STM32_PIN_PD9, STM32H7_PINMUX_FUNC_PD9_USART3_RX },
#endif
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay) && CONFIG_I2C
{ STM32_PIN_PB8, STM32H7_PINMUX_FUNC_PB8_I2C1_SCL },
{ STM32_PIN_PB9, STM32H7_PINMUX_FUNC_PB9_I2C1_SDA },
Expand Down

0 comments on commit ee2c66a

Please sign in to comment.