mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 18:57:19 +02:00
support hw recorrect
This commit is contained in:
@ -383,3 +383,16 @@ config BT_CTRL_HCI_TL_EFF
|
|||||||
default 0 if BT_CTRL_HCI_MODE_UART_H4
|
default 0 if BT_CTRL_HCI_MODE_UART_H4
|
||||||
default 1 if BT_CTRL_HCI_M0DE_VHCI
|
default 1 if BT_CTRL_HCI_M0DE_VHCI
|
||||||
default 1
|
default 1
|
||||||
|
|
||||||
|
config BT_CTRL_AGC_RECORRECT_EN
|
||||||
|
bool "Enable HW AGC recorrect"
|
||||||
|
default n
|
||||||
|
help
|
||||||
|
Enable uncoded phy AGC recorrect
|
||||||
|
|
||||||
|
config BT_CTRL_CODED_AGC_RECORRECT_EN
|
||||||
|
bool "Enable coded phy AGC recorrect"
|
||||||
|
depends on BT_CTRL_AGC_RECORRECT_EN
|
||||||
|
default n
|
||||||
|
help
|
||||||
|
Enable coded phy AGC recorrect
|
||||||
|
Submodule components/bt/controller/lib_esp32c3_family updated: 1b8dfd6acd...12f00c45ce
@ -26,7 +26,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define ESP_BT_CTRL_CONFIG_MAGIC_VAL 0x5A5AA5A5
|
#define ESP_BT_CTRL_CONFIG_MAGIC_VAL 0x5A5AA5A5
|
||||||
#define ESP_BT_CTRL_CONFIG_VERSION 0x02103310
|
#define ESP_BT_CTRL_CONFIG_VERSION 0x02104270
|
||||||
|
|
||||||
#define ESP_BT_HCI_TL_MAGIC_VALUE 0xfadebead
|
#define ESP_BT_HCI_TL_MAGIC_VALUE 0xfadebead
|
||||||
#define ESP_BT_HCI_TL_VERSION 0x00010000
|
#define ESP_BT_HCI_TL_VERSION 0x00010000
|
||||||
@ -130,6 +130,21 @@ enum {
|
|||||||
#define MESH_DUPLICATE_SCAN_CACHE_SIZE 0
|
#define MESH_DUPLICATE_SCAN_CACHE_SIZE 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_BT_CTRL_AGC_RECORRECT_EN
|
||||||
|
#define BT_CTRL_AGC_RECORRECT_EN CONFIG_BT_CTRL_AGC_RECORRECT_EN
|
||||||
|
#else
|
||||||
|
#define BT_CTRL_AGC_RECORRECT_EN 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_BT_CTRL_CODED_AGC_RECORRECT_EN
|
||||||
|
#define BT_CTRL_CODED_AGC_RECORRECT CONFIG_BT_CTRL_CODED_AGC_RECORRECT_EN
|
||||||
|
#else
|
||||||
|
#define BT_CTRL_CODED_AGC_RECORRECT 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define AGC_RECORRECT_EN ((BT_CTRL_AGC_RECORRECT_EN << 0) | (BT_CTRL_CODED_AGC_RECORRECT <<1))
|
||||||
|
|
||||||
|
|
||||||
#define CFG_MASK_BIT_SCAN_DUPLICATE_OPTION (1<<0)
|
#define CFG_MASK_BIT_SCAN_DUPLICATE_OPTION (1<<0)
|
||||||
|
|
||||||
#define CFG_NASK CFG_MASK_BIT_SCAN_DUPLICATE_OPTION
|
#define CFG_NASK CFG_MASK_BIT_SCAN_DUPLICATE_OPTION
|
||||||
@ -163,6 +178,7 @@ enum {
|
|||||||
.coex_phy_coded_tx_rx_time_limit = CONFIG_BT_CTRL_COEX_PHY_CODED_TX_RX_TLIM_EFF, \
|
.coex_phy_coded_tx_rx_time_limit = CONFIG_BT_CTRL_COEX_PHY_CODED_TX_RX_TLIM_EFF, \
|
||||||
.hw_target_code = BLE_HW_TARGET_CODE_ESP32C3_CHIP_ECO0, \
|
.hw_target_code = BLE_HW_TARGET_CODE_ESP32C3_CHIP_ECO0, \
|
||||||
.slave_ce_len_min = SLAVE_CE_LEN_MIN_DEFAULT, \
|
.slave_ce_len_min = SLAVE_CE_LEN_MIN_DEFAULT, \
|
||||||
|
.hw_recorrect_en = AGC_RECORRECT_EN, \
|
||||||
};
|
};
|
||||||
|
|
||||||
#else
|
#else
|
||||||
@ -228,6 +244,7 @@ typedef struct {
|
|||||||
uint8_t coex_phy_coded_tx_rx_time_limit; /*!< limit on max tx/rx time in case of connection using CODED-PHY with Wi-Fi coexistence */
|
uint8_t coex_phy_coded_tx_rx_time_limit; /*!< limit on max tx/rx time in case of connection using CODED-PHY with Wi-Fi coexistence */
|
||||||
uint32_t hw_target_code; /*!< hardware target */
|
uint32_t hw_target_code; /*!< hardware target */
|
||||||
uint8_t slave_ce_len_min;
|
uint8_t slave_ce_len_min;
|
||||||
|
uint8_t hw_recorrect_en;
|
||||||
} esp_bt_controller_config_t;
|
} esp_bt_controller_config_t;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user