mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
sim/bringup: enable uart bridge
Change-Id: Ib843db54ef0d82e9e808663f5f415123c59b0755 Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user