diff --git a/components/bt/controller/esp32h2/bt.c b/components/bt/controller/esp32h2/bt.c index e12983f1bc..63026ad168 100644 --- a/components/bt/controller/esp32h2/bt.c +++ b/components/bt/controller/esp32h2/bt.c @@ -58,13 +58,9 @@ #define OSI_COEX_VERSION 0x00010006 #define OSI_COEX_MAGIC_VALUE 0xFADEBEAD -#if CONFIG_IDF_TARGET_ESP32H2_BETA_VERSION_1 #define EXT_FUNC_VERSION 0x20220125 #define EXT_FUNC_MAGIC_VALUE 0xA5A5A5A5 -#elif CONFIG_IDF_TARGET_ESP32H2_BETA_VERSION_2 -#define EXT_FUNC_VERSION 0xE0000001 -#define EXT_FUNC_MAGIC_VALUE 0xA5A5A5A5 -#endif + /* Types definition ************************************************************************ */ @@ -94,11 +90,9 @@ struct ext_funcs_t { void (* _task_delete)(void *task_handle); void (*_osi_assert)(const uint32_t ln, const char *fn, uint32_t param1, uint32_t param2); uint32_t (* _os_random)(void); -#if CONFIG_IDF_TARGET_ESP32H2_BETA_VERSION_1 int (* _ecc_gen_key_pair)(uint8_t *pub, uint8_t *priv); int (* _ecc_gen_dh_key)(const uint8_t *remote_pub_key_x, const uint8_t *remote_pub_key_y, const uint8_t *local_priv_key, uint8_t *dhkey); int (* _esp_reset_rpa_moudle)(void); -#endif uint32_t magic; }; @@ -214,11 +208,9 @@ struct ext_funcs_t ext_funcs_ro = { ._task_delete = task_delete_wrapper, ._osi_assert = osi_assert_wrapper, ._os_random = osi_random_wrapper, -#if CONFIG_IDF_TARGET_ESP32H2_BETA_VERSION_1 ._ecc_gen_key_pair = ble_sm_alg_gen_key_pair, ._ecc_gen_dh_key = ble_sm_alg_gen_dhkey, ._esp_reset_rpa_moudle = esp_reset_rpa_moudle, -#endif .magic = EXT_FUNC_MAGIC_VALUE, }; diff --git a/components/bt/controller/lib_esp32h2/esp32h2-bt-lib b/components/bt/controller/lib_esp32h2/esp32h2-bt-lib index 841644b836..8bf4c4c2cb 160000 --- a/components/bt/controller/lib_esp32h2/esp32h2-bt-lib +++ b/components/bt/controller/lib_esp32h2/esp32h2-bt-lib @@ -1 +1 @@ -Subproject commit 841644b836dc74844651a8221978719e5f06f0e2 +Subproject commit 8bf4c4c2cb1f964122977c9995863f325346411d diff --git a/components/bt/include/esp32h2/include/esp_bt.h b/components/bt/include/esp32h2/include/esp_bt.h index 6f09231ac6..d3efdba30c 100644 --- a/components/bt/include/esp32h2/include/esp_bt.h +++ b/components/bt/include/esp32h2/include/esp_bt.h @@ -118,13 +118,9 @@ esp_err_t esp_ble_tx_power_set(esp_ble_power_type_t power_type, esp_power_level_ */ esp_power_level_t esp_ble_tx_power_get(esp_ble_power_type_t power_type); -#if CONFIG_IDF_TARGET_ESP32H2_BETA_VERSION_1 - #define CONFIG_VERSION 0x20220409 - #define CONFIG_MAGIC 0x5A5AA5A5 -#elif CONFIG_IDF_TARGET_ESP32H2_BETA_VERSION_2 - #define CONFIG_VERSION 0x20211021 - #define CONFIG_MAGIC 0x5A5AA5A5 -#endif +#define CONFIG_VERSION 0x20220409 +#define CONFIG_MAGIC 0x5A5AA5A5 + /** * @brief Controller config options, depend on config mask. * Config mask indicate which functions enabled, this means @@ -173,16 +169,12 @@ typedef struct { uint8_t ble_hci_uart_uart_parity; uint8_t enable_tx_cca; uint8_t cca_rssi_thresh; -#if CONFIG_IDF_TARGET_ESP32H2_BETA_VERSION_1 uint8_t cca_drop_mode; int8_t cca_low_tx_pwr; -#endif uint8_t sleep_en; uint8_t coex_phy_coded_tx_rx_time_limit; uint8_t dis_scan_backoff; -#if CONFIG_IDF_TARGET_ESP32H2_BETA_VERSION_1 uint8_t scan_classify_filter_enable; -#endif uint32_t config_magic; } esp_bt_controller_config_t; @@ -229,8 +221,11 @@ typedef struct { .ble_hci_uart_uart_parity = DEFAULT_BT_LE_HCI_UART_PARITY, \ .enable_tx_cca = DEFAULT_BT_LE_TX_CCA_ENABLED, \ .cca_rssi_thresh = 256 - DEFAULT_BT_LE_CCA_RSSI_THRESH, \ + .cca_drop_mode = 0, \ + .cca_low_tx_pwr = 0, \ .sleep_en = NIMBLE_SLEEP_ENABLE, \ .coex_phy_coded_tx_rx_time_limit = DEFAULT_BT_LE_COEX_PHY_CODED_TX_RX_TLIM_EFF, \ + .scan_classify_filter_enable = false, \ .config_magic = CONFIG_MAGIC, \ }; diff --git a/components/esp_rom/esp32h2/ld/rev2/esp32h2.rom.ld b/components/esp_rom/esp32h2/ld/rev2/esp32h2.rom.ld index d8ece45e50..25b9de8df4 100644 --- a/components/esp_rom/esp32h2/ld/rev2/esp32h2.rom.ld +++ b/components/esp_rom/esp32h2/ld/rev2/esp32h2.rom.ld @@ -614,6 +614,7 @@ ets_secure_boot_revoke_public_key_digest = 0x40000994; ***************************************/ /* Functions */ +/* ble_controller_rom_data_init = 0x40000b08; ble_osi_coex_funcs_register = 0x40000b0c; bt_rf_coex_cfg_get_default = 0x40000b10; @@ -1605,7 +1606,9 @@ r_sec_phy_valid = 0x40001a74; r_sub24 = 0x40001a78; r_swap_buf = 0x40001a7c; r_swap_in_place = 0x40001a80; +*/ /* Data (.data, .bss, .rodata) */ +/* ble_hci_uart_reset_cmd = 0x3ff1ffe0; ble_hci_trans_env_p = 0x3fcdffc4; ble_hci_trans_mode = 0x3fcdfebc; @@ -1673,7 +1676,7 @@ sync_dynamic_param_rom = 0x3ff1fbe4; g_ble_plf_log_level = 0x3fcdfe60; g_msys_pool_list = 0x3fcdfe58; g_os_mempool_list = 0x3fcdfe50; - +*/ /*************************************** Group rom_phy