sim/bringup: enable uart bridge

Change-Id: Ib843db54ef0d82e9e808663f5f415123c59b0755
Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an
2021-05-14 11:54:20 +08:00
parent 3c58f96ddb
commit 9b94919996
+12
View File
@@ -50,6 +50,7 @@
#include <nuttx/wireless/pktradio.h>
#include <nuttx/wireless/bluetooth/bt_null.h>
#include <nuttx/wireless/bluetooth/bt_uart_shim.h>
#include <nuttx/wireless/bluetooth/bt_uart_bridge.h>
#include <nuttx/wireless/ieee802154/ieee802154_loopback.h>
#ifdef CONFIG_LCD_DEV
@@ -386,6 +387,17 @@ int sim_bringup(void)
# endif
#endif
#ifdef CONFIG_BLUETOOTH_UART_BRIDGE
/* Register the Bluetooth BT/BLE dual mode bridge driver */
ret = bt_uart_bridge_register("/dev/ttyHCI",
"/dev/ttyBT", "/dev/ttyBLE");
if (ret < 0)
{
syslog(LOG_ERR, "ERROR: bt_uart_bridge_register() failed: %d\n", ret);
}
#endif
#ifdef CONFIG_SIM_I2CBUS
/* Initialize the i2c master bus device */