feat(slave_node): Support multi-board build for bluepill_f103rb and weact_stm32g431_core
Refactor slave_node application to support building for both bluepill_f103rb and weact_stm32g431_core boards. - Moved RTT-specific console and shell backend configurations from prj.conf into board-specific .conf files (bluepill_f103rb.conf). - Configured USART2 as console/shell for weact_stm32g431_core. - Added Device Tree Overlay for weact_stm32g431_core to enable USART1 for Modbus communication (PA9/PA10).
This commit is contained in:
parent
a59e8518cc
commit
5208f1370d
|
|
@ -0,0 +1,6 @@
|
|||
# Disable UART console
|
||||
CONFIG_UART_CONSOLE=n
|
||||
|
||||
# Enable RTT console
|
||||
CONFIG_RTT_CONSOLE=y
|
||||
CONFIG_USE_SEGGER_RTT=y
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
&usart1 {
|
||||
modbus0 {
|
||||
compatible = "zephyr,modbus-serial";
|
||||
status = "okay";
|
||||
};
|
||||
status = "okay";
|
||||
pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>;
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
|
|
@ -2,13 +2,6 @@
|
|||
CONFIG_CONSOLE=y
|
||||
CONFIG_LOG=y
|
||||
|
||||
# Disable UART console
|
||||
CONFIG_UART_CONSOLE=n
|
||||
|
||||
# Enable RTT console
|
||||
CONFIG_RTT_CONSOLE=y
|
||||
CONFIG_USE_SEGGER_RTT=y
|
||||
|
||||
# Enable Shell
|
||||
CONFIG_SHELL=y
|
||||
CONFIG_SHELL_BACKEND_RTT=y
|
||||
|
|
|
|||
Loading…
Reference in New Issue