babblesim: Add uart1

This allows to have e.g. console and ble_monitor enabled at the same
time.
This commit is contained in:
Andrzej Kaczmarek
2022-02-16 11:09:12 +01:00
parent 883f953476
commit 1084fdb158
@@ -132,6 +132,7 @@ nrf52_periph_create_timers(void)
}
static struct uart_dev os_bsp_uart0;
static struct uart_dev os_bsp_uart1;
void
hal_bsp_init(void)
@@ -148,6 +149,9 @@ hal_bsp_init(void)
rc = os_dev_create((struct os_dev *) &os_bsp_uart0, "uart0",
OS_DEV_INIT_PRIMARY, 0, uart_hal_init, (void *) NULL);
assert(rc == 0);
rc = os_dev_create((struct os_dev *) &os_bsp_uart1, "uart1",
OS_DEV_INIT_PRIMARY, 0, uart_hal_init, (void *) NULL);
assert(rc == 0);
}
void