This is an automated email from the ASF dual-hosted git repository.
vipulrahane pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
The following commit(s) were added to refs/heads/master by this push:
new 5d86a17 mcu/nrf5340: Fix uart device names
new deb21a4 Merge pull request #2537 from
vikrant-proxy/nrf53/uart-periph-fix
5d86a17 is described below
commit 5d86a175377ab0227b6f989aec0f890950129d11
Author: Vikrant More <[email protected]>
AuthorDate: Wed Mar 17 11:34:25 2021 -0700
mcu/nrf5340: Fix uart device names
---
hw/mcu/nordic/nrf5340/src/nrf5340_periph.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/mcu/nordic/nrf5340/src/nrf5340_periph.c
b/hw/mcu/nordic/nrf5340/src/nrf5340_periph.c
index 30be48f..ac85a78 100644
--- a/hw/mcu/nordic/nrf5340/src/nrf5340_periph.c
+++ b/hw/mcu/nordic/nrf5340/src/nrf5340_periph.c
@@ -88,7 +88,7 @@ static const struct nrf5340_uart_cfg os_bsp_uart1_cfg = {
};
#endif
#if MYNEWT_VAL(UART_2)
-static struct uart_dev os_bsp_uart0;
+static struct uart_dev os_bsp_uart2;
static const struct nrf5340_uart_cfg os_bsp_uart2_cfg = {
.suc_pin_tx = MYNEWT_VAL(UART_2_PIN_TX),
.suc_pin_rx = MYNEWT_VAL(UART_2_PIN_RX),
@@ -97,7 +97,7 @@ static const struct nrf5340_uart_cfg os_bsp_uart2_cfg = {
};
#endif
#if MYNEWT_VAL(UART_3)
-static struct uart_dev os_bsp_uart0;
+static struct uart_dev os_bsp_uart3;
static const struct nrf5340_uart_cfg os_bsp_uart3_cfg = {
.suc_pin_tx = MYNEWT_VAL(UART_3_PIN_TX),
.suc_pin_rx = MYNEWT_VAL(UART_3_PIN_RX),