mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-03 04:34:31 +02:00
component/bt: Added the ble full scan supported feature.
1. Add the full scan swith in the menuconfig; 2. Change the bt lib in order to support ble full scan
This commit is contained in:
@@ -124,6 +124,7 @@ config BT_HCI_UART_BAUDRATE
|
|||||||
default 921600
|
default 921600
|
||||||
help
|
help
|
||||||
UART Baudrate for HCI. Please use standard baudrate.
|
UART Baudrate for HCI. Please use standard baudrate.
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
||||||
menu "MODEM SLEEP Options"
|
menu "MODEM SLEEP Options"
|
||||||
@@ -238,7 +239,13 @@ config MESH_DUPLICATE_SCAN_CACHE_SIZE
|
|||||||
Maximum number of adv packets which can be recorded in duplicate scan cache for BLE Mesh.
|
Maximum number of adv packets which can be recorded in duplicate scan cache for BLE Mesh.
|
||||||
When the maximum amount of device in the filter is reached, the cache will be refreshed.
|
When the maximum amount of device in the filter is reached, the cache will be refreshed.
|
||||||
|
|
||||||
|
config BTDM_CONTROLLER_FULL_SCAN_SUPPORTED
|
||||||
|
bool "BLE full scan feature supported"
|
||||||
|
depends on BTDM_CONTROLLER_MODE_BLE_ONLY
|
||||||
|
default n
|
||||||
|
help
|
||||||
|
The full scan function is mainly used to provide BLE scan performance.
|
||||||
|
This is required for scenes with high scan performance requirements, such as BLE Mesh scenes.
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
||||||
|
@@ -61,6 +61,7 @@
|
|||||||
#define BTDM_CFG_CONTROLLER_RUN_APP_CPU (1<<2)
|
#define BTDM_CFG_CONTROLLER_RUN_APP_CPU (1<<2)
|
||||||
#define BTDM_CFG_SCAN_DUPLICATE_OPTIONS (1<<3)
|
#define BTDM_CFG_SCAN_DUPLICATE_OPTIONS (1<<3)
|
||||||
#define BTDM_CFG_SEND_ADV_RESERVED_SIZE (1<<4)
|
#define BTDM_CFG_SEND_ADV_RESERVED_SIZE (1<<4)
|
||||||
|
#define BTDM_CFG_BLE_FULL_SCAN_SUPPORTED (1<<5)
|
||||||
|
|
||||||
/* Sleep mode */
|
/* Sleep mode */
|
||||||
#define BTDM_MODEM_SLEEP_MODE_NONE (0)
|
#define BTDM_MODEM_SLEEP_MODE_NONE (0)
|
||||||
@@ -810,6 +811,9 @@ static uint32_t btdm_config_mask_load(void)
|
|||||||
#if CONFIG_BTDM_CONTROLLER_PINNED_TO_CORE == 1
|
#if CONFIG_BTDM_CONTROLLER_PINNED_TO_CORE == 1
|
||||||
mask |= BTDM_CFG_CONTROLLER_RUN_APP_CPU;
|
mask |= BTDM_CFG_CONTROLLER_RUN_APP_CPU;
|
||||||
#endif
|
#endif
|
||||||
|
#if CONFIG_BTDM_CONTROLLER_FULL_SCAN_SUPPORTED
|
||||||
|
mask |= BTDM_CFG_BLE_FULL_SCAN_SUPPORTED;
|
||||||
|
#endif /* CONFIG_BTDM_CONTROLLER_FULL_SCAN_SUPPORTED */
|
||||||
mask |= BTDM_CFG_SCAN_DUPLICATE_OPTIONS;
|
mask |= BTDM_CFG_SCAN_DUPLICATE_OPTIONS;
|
||||||
|
|
||||||
mask |= BTDM_CFG_SEND_ADV_RESERVED_SIZE;
|
mask |= BTDM_CFG_SEND_ADV_RESERVED_SIZE;
|
||||||
|
Submodule components/bt/lib updated: 27ea8fa3f1...6d3daa99f5
Reference in New Issue
Block a user