mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 14:27:37 +08:00
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:
@@ -30,6 +30,8 @@ CONFIG_BTSAK=y
|
|||||||
CONFIG_BUILTIN=y
|
CONFIG_BUILTIN=y
|
||||||
CONFIG_DEFAULT_SMALL=y
|
CONFIG_DEFAULT_SMALL=y
|
||||||
CONFIG_DISABLE_MQUEUE_SYSV=y
|
CONFIG_DISABLE_MQUEUE_SYSV=y
|
||||||
|
CONFIG_DRIVERS_BLUETOOTH=y
|
||||||
|
CONFIG_DRIVERS_WIRELESS=y
|
||||||
CONFIG_EXPERIMENTAL=y
|
CONFIG_EXPERIMENTAL=y
|
||||||
CONFIG_FAT_LCNAMES=y
|
CONFIG_FAT_LCNAMES=y
|
||||||
CONFIG_FAT_LFN=y
|
CONFIG_FAT_LFN=y
|
||||||
|
|||||||
@@ -34,6 +34,8 @@ CONFIG_BOARDCTL_MKRD=y
|
|||||||
CONFIG_BOARD_LOOPSPERMSEC=5500
|
CONFIG_BOARD_LOOPSPERMSEC=5500
|
||||||
CONFIG_DEFAULT_SMALL=y
|
CONFIG_DEFAULT_SMALL=y
|
||||||
CONFIG_DISABLE_MQUEUE_SYSV=y
|
CONFIG_DISABLE_MQUEUE_SYSV=y
|
||||||
|
CONFIG_DRIVERS_BLUETOOTH=y
|
||||||
|
CONFIG_DRIVERS_WIRELESS=y
|
||||||
CONFIG_EXAMPLES_NIMBLE=y
|
CONFIG_EXAMPLES_NIMBLE=y
|
||||||
CONFIG_EXPERIMENTAL=y
|
CONFIG_EXPERIMENTAL=y
|
||||||
CONFIG_FILE_STREAM=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)
|
#elif defined(CONFIG_NET_BLUETOOTH)
|
||||||
return bt_netdev_register(driver);
|
return bt_netdev_register(driver);
|
||||||
#else
|
#else
|
||||||
# error "Please select CONFIG_UART_BTH4 or CONFIG_NET_BLUETOOTH"
|
return -ENOSYS;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user