mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 02:37:19 +02:00
feat(bt/bluedroid): Support high duty adv interval setting
This commit is contained in:
@ -1150,3 +1150,10 @@ config BT_BLE_FEAT_PERIODIC_ADV_SYNC_TRANSFER
|
|||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
This enables BLE periodic advertising sync transfer feature
|
This enables BLE periodic advertising sync transfer feature
|
||||||
|
|
||||||
|
config BT_BLE_HIGH_DUTY_ADV_INTERVAL
|
||||||
|
bool "Enable BLE high duty advertising interval feature"
|
||||||
|
depends on BT_BLUEDROID_ENABLED
|
||||||
|
default n
|
||||||
|
help
|
||||||
|
This enable BLE high duty advertising interval feature
|
||||||
|
@ -137,6 +137,12 @@
|
|||||||
#define UC_BT_BLE_FEAT_PERIODIC_ADV_SYNC_TRANSFER FALSE
|
#define UC_BT_BLE_FEAT_PERIODIC_ADV_SYNC_TRANSFER FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_BT_BLE_HIGH_DUTY_ADV_INTERVAL
|
||||||
|
#define UC_BT_BLE_HIGH_DUTY_ADV_INTERVAL CONFIG_BT_BLE_HIGH_DUTY_ADV_INTERVAL
|
||||||
|
#else
|
||||||
|
#define UC_BT_BLE_HIGH_DUTY_ADV_INTERVAL FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
//GATTS
|
//GATTS
|
||||||
#ifdef CONFIG_BT_GATTS_ENABLE
|
#ifdef CONFIG_BT_GATTS_ENABLE
|
||||||
#define UC_BT_GATTS_ENABLE CONFIG_BT_GATTS_ENABLE
|
#define UC_BT_GATTS_ENABLE CONFIG_BT_GATTS_ENABLE
|
||||||
|
@ -198,6 +198,12 @@
|
|||||||
#define BLE_FEAT_PERIODIC_ADV_SYNC_TRANSFER FALSE
|
#define BLE_FEAT_PERIODIC_ADV_SYNC_TRANSFER FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if (UC_BT_BLE_HIGH_DUTY_ADV_INTERVAL == TRUE)
|
||||||
|
#define BLE_HIGH_DUTY_ADV_INTERVAL TRUE
|
||||||
|
#else
|
||||||
|
#define BLE_HIGH_DUTY_ADV_INTERVAL FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
#if (UC_BT_BLE_RPA_SUPPORTED == TRUE)
|
#if (UC_BT_BLE_RPA_SUPPORTED == TRUE)
|
||||||
#define CONTROLLER_RPA_LIST_ENABLE TRUE
|
#define CONTROLLER_RPA_LIST_ENABLE TRUE
|
||||||
#else
|
#else
|
||||||
|
@ -105,8 +105,12 @@ typedef UINT8 tBTM_BLE_SFP;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* adv parameter boundary values */
|
/* adv parameter boundary values */
|
||||||
#define BTM_BLE_ADV_INT_MIN 0x0020
|
#if BLE_HIGH_DUTY_ADV_INTERVAL
|
||||||
#define BTM_BLE_ADV_INT_MAX 0x4000
|
#define BTM_BLE_ADV_INT_MIN 0x0008 /* 5ms */
|
||||||
|
#else
|
||||||
|
#define BTM_BLE_ADV_INT_MIN 0x0020 /* 20ms */
|
||||||
|
#endif
|
||||||
|
#define BTM_BLE_ADV_INT_MAX 0x4000 /* 10240ms */
|
||||||
|
|
||||||
/* Full scan boundary values */
|
/* Full scan boundary values */
|
||||||
#define BTM_BLE_ADV_SCAN_FULL_MIN 0x00
|
#define BTM_BLE_ADV_SCAN_FULL_MIN 0x00
|
||||||
|
Reference in New Issue
Block a user