forked from nuttx/nuttx-update
Add space before error, bt_driver_register_internal not trigger error, add defconfig DRIVERS_BLUETOOTH.
Signed-off-by: chengkai <chengkai@xiaomi.com>
This commit is contained in:
parent
d97b715e5c
commit
6aeb2e2996
4 changed files with 6 additions and 2 deletions
|
@ -314,7 +314,7 @@ int sim_bthcisock_register(int dev_id)
|
|||
return ret;
|
||||
}
|
||||
#else
|
||||
# error "Please select CONFIG_DRIVERS_BLUETOOTH"
|
||||
# error "Please select CONFIG_DRIVERS_BLUETOOTH"
|
||||
#endif
|
||||
|
||||
return work_queue(HPWORK, &dev->worker, sim_bthcisock_work, dev, 0);
|
||||
|
|
|
@ -30,6 +30,8 @@ CONFIG_BTSAK=y
|
|||
CONFIG_BUILTIN=y
|
||||
CONFIG_DEFAULT_SMALL=y
|
||||
CONFIG_DISABLE_MQUEUE_SYSV=y
|
||||
CONFIG_DRIVERS_BLUETOOTH=y
|
||||
CONFIG_DRIVERS_WIRELESS=y
|
||||
CONFIG_EXPERIMENTAL=y
|
||||
CONFIG_FAT_LCNAMES=y
|
||||
CONFIG_FAT_LFN=y
|
||||
|
|
|
@ -34,6 +34,8 @@ CONFIG_BOARDCTL_MKRD=y
|
|||
CONFIG_BOARD_LOOPSPERMSEC=5500
|
||||
CONFIG_DEFAULT_SMALL=y
|
||||
CONFIG_DISABLE_MQUEUE_SYSV=y
|
||||
CONFIG_DRIVERS_BLUETOOTH=y
|
||||
CONFIG_DRIVERS_WIRELESS=y
|
||||
CONFIG_EXAMPLES_NIMBLE=y
|
||||
CONFIG_EXPERIMENTAL=y
|
||||
CONFIG_FILE_STREAM=y
|
||||
|
|
|
@ -62,7 +62,7 @@ static int bt_driver_register_internal(FAR struct bt_driver_s *driver,
|
|||
#elif defined(CONFIG_NET_BLUETOOTH)
|
||||
return bt_netdev_register(driver);
|
||||
#else
|
||||
# error "Please select CONFIG_UART_BTH4 or CONFIG_NET_BLUETOOTH"
|
||||
return -ENOSYS;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue