mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
feat(bt/bluedroid): Support high duty adv interval setting
This commit is contained in:
parent
3115bd17b5
commit
fc57ae154d
@ -1150,3 +1150,10 @@ config BT_BLE_FEAT_PERIODIC_ADV_SYNC_TRANSFER
|
||||
default n
|
||||
help
|
||||
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
|
||||
#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
|
||||
#ifdef 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
|
||||
#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)
|
||||
#define CONTROLLER_RPA_LIST_ENABLE TRUE
|
||||
#else
|
||||
|
@ -105,8 +105,12 @@ typedef UINT8 tBTM_BLE_SFP;
|
||||
#endif
|
||||
|
||||
/* adv parameter boundary values */
|
||||
#define BTM_BLE_ADV_INT_MIN 0x0020
|
||||
#define BTM_BLE_ADV_INT_MAX 0x4000
|
||||
#if BLE_HIGH_DUTY_ADV_INTERVAL
|
||||
#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 */
|
||||
#define BTM_BLE_ADV_SCAN_FULL_MIN 0x00
|
||||
|
Loading…
x
Reference in New Issue
Block a user