Skip to content
Permalink
Browse files

boards: nucleo_wb55rg: Configure LPUART

Configure LPUART pin and set it as adruino_serial.


Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
  • Loading branch information...
erwango authored and galak committed May 20, 2019
1 parent 9c1ffdd commit 56e50cf43e231bc8296dda3cbffb7012cb422244
@@ -17,6 +17,13 @@ config UART_1

endif # UART_CONSOLE

if SERIAL

config LPUART_1
default y

endif # SERIAL

if BT_DEBUG_MONITOR

config UART_1
@@ -177,6 +177,7 @@ Default Zephyr Peripheral Mapping:
----------------------------------

- UART_1 TX/RX : PB7/PB6
- LPUART_1 TX/RX : PA3/PA2 (arduino_serial)
- USER_PB : PC4
- USER_PB1 : PD0
- USER_PB2 : PD1
@@ -12,7 +12,7 @@
compatible = "st,stm32wb55rg-nucleo", "st,stm32wb55rg";

chosen {
zephyr,console = &usart1;
zephyr,console = &lpuart1;
zephyr,shell-uart = &usart1;
zephyr,sram = &sram0;
zephyr,flash = &flash0;
@@ -61,3 +61,8 @@
current-speed = <115200>;
status = "ok";
};

arduino_serial: &lpuart1 {
current-speed = <115200>;
status = "ok";
};
@@ -18,6 +18,10 @@ static const struct pin_config pinconf[] = {
{STM32_PIN_PB7, STM32WBX_PINMUX_FUNC_PB7_USART1_RX},
{STM32_PIN_PB6, STM32WBX_PINMUX_FUNC_PB6_USART1_TX},
#endif /* CONFIG_UART_1 */
#ifdef CONFIG_LPUART_1
{STM32_PIN_PA2, STM32WBX_PINMUX_FUNC_PA2_LPUART1_TX},
{STM32_PIN_PA3, STM32WBX_PINMUX_FUNC_PA3_LPUART1_RX},
#endif /* CONFIG_LPUART_1 */
};

static int pinmux_stm32_init(struct device *port)

0 comments on commit 56e50cf

Please sign in to comment.
You can’t perform that action at this time.