kopia lustrzana https://github.com/espressif/esp-idf
fix esp32c3 can't enable adv flow control func
rodzic
3c6c5b8a29
commit
52909b69b7
|
@ -148,6 +148,7 @@
|
|||
#define UC_BT_SMP_SLAVE_CON_PARAMS_UPD_ENABLE FALSE
|
||||
#endif
|
||||
|
||||
#if CONFIG_BT_CTRL_ESP32
|
||||
//BTDM_BLE_ADV_REPORT_FLOW_CTRL_SUPP
|
||||
#ifdef CONFIG_BTDM_BLE_ADV_REPORT_FLOW_CTRL_SUPP
|
||||
#define UC_BTDM_BLE_ADV_REPORT_FLOW_CTRL_SUPP CONFIG_BTDM_BLE_ADV_REPORT_FLOW_CTRL_SUPP
|
||||
|
@ -169,6 +170,32 @@
|
|||
#define UC_BTDM_BLE_ADV_REPORT_DISCARD_THRSHOLD 20
|
||||
#endif
|
||||
|
||||
#endif //CONFIG_BT_CTRL_ESP32
|
||||
|
||||
#if (CONFIG_BT_CTRL_ESP32C3 || CONFIG_BT_CTRL_ESP32S3)
|
||||
//BTDM_BLE_ADV_REPORT_FLOW_CTRL_SUPP
|
||||
#ifdef CONFIG_BT_CTRL_BLE_ADV_REPORT_FLOW_CTRL_SUPP
|
||||
#define UC_BTDM_BLE_ADV_REPORT_FLOW_CTRL_SUPP CONFIG_BT_CTRL_BLE_ADV_REPORT_FLOW_CTRL_SUPP
|
||||
#else
|
||||
#define UC_BTDM_BLE_ADV_REPORT_FLOW_CTRL_SUPP FALSE
|
||||
#endif
|
||||
|
||||
//SMP_SLAVE_CON_PARAMS_UPD_ENABLE
|
||||
#ifdef CONFIG_BT_CTRL_BLE_ADV_REPORT_FLOW_CTRL_NUM
|
||||
#define UC_BTDM_BLE_ADV_REPORT_FLOW_CTRL_NUM CONFIG_BT_CTRL_BLE_ADV_REPORT_FLOW_CTRL_NUM
|
||||
#else
|
||||
#define UC_BTDM_BLE_ADV_REPORT_FLOW_CTRL_NUM 100
|
||||
#endif
|
||||
|
||||
//BTDM_BLE_ADV_REPORT_FLOW_CTRL_SUPP
|
||||
#ifdef CONFIG_BT_CTRL_BLE_ADV_REPORT_DISCARD_THRSHOLD
|
||||
#define UC_BTDM_BLE_ADV_REPORT_DISCARD_THRSHOLD CONFIG_BT_CTRL_BLE_ADV_REPORT_DISCARD_THRSHOLD
|
||||
#else
|
||||
#define UC_BTDM_BLE_ADV_REPORT_DISCARD_THRSHOLD 20
|
||||
#endif
|
||||
|
||||
#endif //(CONFIG_BT_CTRL_ESP32C3 || CONFIG_BT_CTRL_ESP32S3)
|
||||
|
||||
//BT ACL CONNECTIONS
|
||||
#ifdef CONFIG_BT_ACL_CONNECTIONS
|
||||
#define UC_BT_ACL_CONNECTIONS CONFIG_BT_ACL_CONNECTIONS
|
||||
|
|
|
@ -104,8 +104,8 @@ enum {
|
|||
#endif
|
||||
|
||||
/* normal adv cache size */
|
||||
#ifdef CONFIG_BT_SCAN_DUPL_CACHE_SIZE
|
||||
#define NORMAL_SCAN_DUPLICATE_CACHE_SIZE CONFIG_BT_SCAN_DUPL_CACHE_SIZE
|
||||
#ifdef CONFIG_BT_CTRL_SCAN_DUPL_CACHE_SIZE
|
||||
#define NORMAL_SCAN_DUPLICATE_CACHE_SIZE CONFIG_BT_CTRL_SCAN_DUPL_CACHE_SIZE
|
||||
#else
|
||||
#define NORMAL_SCAN_DUPLICATE_CACHE_SIZE 20
|
||||
#endif
|
||||
|
|
Ładowanie…
Reference in New Issue