mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-06-05 21:04:49 +00:00
babblesim: Add uart1
This allows to have e.g. console and ble_monitor enabled at the same time.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user