mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-02 01:50:58 +02:00
Merge branch 'change/ble_update_lib_20250919_v5.1' into 'release/v5.1'
change(ble): [AUTO_MR] 20250919 - Update ESP BLE Controller Lib (v5.1) See merge request espressif/esp-idf!42027
This commit is contained in:
@@ -124,6 +124,15 @@ enum {
|
||||
};
|
||||
#endif // CONFIG_BT_LE_CONTROLLER_LOG_ENABLED
|
||||
|
||||
typedef union {
|
||||
struct {
|
||||
uint32_t rtc_freq:20;
|
||||
uint32_t rsv:11;
|
||||
uint32_t bt_wakeup:1;
|
||||
};
|
||||
uint32_t val;
|
||||
} bt_wakeup_params_t;
|
||||
|
||||
/* External functions or variables
|
||||
************************************************************************
|
||||
*/
|
||||
@@ -212,6 +221,9 @@ static void esp_bt_controller_log_interface(uint32_t len, const uint8_t *addr, u
|
||||
static void esp_bt_ctrl_log_partition_get_and_erase_first_block(void);
|
||||
#endif // CONFIG_BT_LE_CONTROLLER_LOG_STORAGE_ENABLE
|
||||
#endif // CONFIG_BT_LE_CONTROLLER_LOG_ENABLED
|
||||
#if CONFIG_FREERTOS_USE_TICKLESS_IDLE
|
||||
static bool esp_bt_check_wakeup_by_bt(void);
|
||||
#endif // CONFIG_FREERTOS_USE_TICKLESS_IDLE
|
||||
/* Local variable definition
|
||||
***************************************************************************
|
||||
*/
|
||||
@@ -662,6 +674,7 @@ void controller_sleep_cb(uint32_t enable_tick, void *arg)
|
||||
|
||||
void controller_wakeup_cb(void *arg)
|
||||
{
|
||||
bt_wakeup_params_t *params;
|
||||
if (s_ble_active) {
|
||||
return;
|
||||
}
|
||||
@@ -671,15 +684,25 @@ void controller_wakeup_cb(void *arg)
|
||||
esp_pm_get_configuration(&pm_config);
|
||||
assert(esp_rom_get_cpu_ticks_per_us() == pm_config.max_freq_mhz);
|
||||
#endif //CONFIG_PM_ENABLE
|
||||
params = (bt_wakeup_params_t *)arg;
|
||||
esp_phy_enable(PHY_MODEM_BT);
|
||||
if (s_bt_lpclk_src == MODEM_CLOCK_LPCLK_SRC_RC_SLOW) {
|
||||
uint32_t *clk_freq = (uint32_t *)arg;
|
||||
*clk_freq = esp_clk_tree_lp_slow_get_freq_hz(ESP_CLK_TREE_SRC_FREQ_PRECISION_CACHED) / 5;
|
||||
params->rtc_freq = esp_clk_tree_lp_slow_get_freq_hz(ESP_CLK_TREE_SRC_FREQ_PRECISION_CACHED) / 5;
|
||||
}
|
||||
#if CONFIG_FREERTOS_USE_TICKLESS_IDLE
|
||||
params->bt_wakeup = esp_bt_check_wakeup_by_bt();
|
||||
#endif // CONFIG_FREERTOS_USE_TICKLESS_IDLE
|
||||
// need to check if need to call pm lock here
|
||||
s_ble_active = true;
|
||||
}
|
||||
|
||||
#if CONFIG_FREERTOS_USE_TICKLESS_IDLE
|
||||
static bool esp_bt_check_wakeup_by_bt(void)
|
||||
{
|
||||
return (esp_sleep_get_wakeup_cause() == ESP_SLEEP_WAKEUP_BT);
|
||||
}
|
||||
#endif // CONFIG_FREERTOS_USE_TICKLESS_IDLE
|
||||
|
||||
esp_err_t controller_sleep_init(modem_clock_lpclk_src_t slow_clk_src)
|
||||
{
|
||||
esp_err_t rc = 0;
|
||||
|
@@ -118,6 +118,15 @@ enum {
|
||||
};
|
||||
#endif // CONFIG_BT_LE_CONTROLLER_LOG_ENABLED
|
||||
|
||||
typedef union {
|
||||
struct {
|
||||
uint32_t rtc_freq:20;
|
||||
uint32_t rsv:11;
|
||||
uint32_t bt_wakeup:1;
|
||||
};
|
||||
uint32_t val;
|
||||
} bt_wakeup_params_t;
|
||||
|
||||
/* External functions or variables
|
||||
************************************************************************
|
||||
*/
|
||||
@@ -212,6 +221,9 @@ static void esp_bt_controller_log_interface(uint32_t len, const uint8_t *addr, u
|
||||
static void esp_bt_ctrl_log_partition_get_and_erase_first_block(void);
|
||||
#endif // CONFIG_BT_LE_CONTROLLER_LOG_STORAGE_ENABLE
|
||||
#endif // CONFIG_BT_LE_CONTROLLER_LOG_ENABLED
|
||||
#if CONFIG_FREERTOS_USE_TICKLESS_IDLE
|
||||
static bool esp_bt_check_wakeup_by_bt(void);
|
||||
#endif // CONFIG_FREERTOS_USE_TICKLESS_IDLE
|
||||
/* Local variable definition
|
||||
***************************************************************************
|
||||
*/
|
||||
@@ -689,6 +701,7 @@ IRAM_ATTR void controller_sleep_cb(uint32_t enable_tick, void *arg)
|
||||
|
||||
IRAM_ATTR void controller_wakeup_cb(void *arg)
|
||||
{
|
||||
bt_wakeup_params_t *params;
|
||||
if (s_ble_active) {
|
||||
return;
|
||||
}
|
||||
@@ -699,15 +712,23 @@ IRAM_ATTR void controller_wakeup_cb(void *arg)
|
||||
assert(esp_rom_get_cpu_ticks_per_us() == pm_config.max_freq_mhz);
|
||||
r_ble_rtc_wake_up_state_clr();
|
||||
#endif //CONFIG_PM_ENABLE
|
||||
params = (bt_wakeup_params_t *)arg;
|
||||
esp_phy_enable(PHY_MODEM_BT);
|
||||
if (s_bt_lpclk_src == MODEM_CLOCK_LPCLK_SRC_RC_SLOW) {
|
||||
uint32_t *clk_freq = (uint32_t *)arg;
|
||||
*clk_freq = esp_clk_tree_lp_slow_get_freq_hz(ESP_CLK_TREE_SRC_FREQ_PRECISION_CACHED) / 5;
|
||||
params->rtc_freq = esp_clk_tree_lp_slow_get_freq_hz(ESP_CLK_TREE_SRC_FREQ_PRECISION_CACHED) / 5;
|
||||
}
|
||||
#if CONFIG_FREERTOS_USE_TICKLESS_IDLE
|
||||
params->bt_wakeup = esp_bt_check_wakeup_by_bt();
|
||||
#endif // CONFIG_FREERTOS_USE_TICKLESS_IDLE
|
||||
s_ble_active = true;
|
||||
}
|
||||
|
||||
#if CONFIG_FREERTOS_USE_TICKLESS_IDLE
|
||||
static bool esp_bt_check_wakeup_by_bt(void)
|
||||
{
|
||||
return (esp_sleep_get_wakeup_cause() == ESP_SLEEP_WAKEUP_BT);
|
||||
}
|
||||
|
||||
static esp_err_t sleep_modem_ble_mac_retention_init(void *arg)
|
||||
{
|
||||
uint8_t size;
|
||||
|
@@ -109,6 +109,15 @@ enum {
|
||||
BLE_LOG_INTERFACE_FLAG_END,
|
||||
};
|
||||
#endif // CONFIG_BT_LE_CONTROLLER_LOG_ENABLED
|
||||
|
||||
typedef union {
|
||||
struct {
|
||||
uint32_t rtc_freq:20;
|
||||
uint32_t rsv:11;
|
||||
uint32_t bt_wakeup:1;
|
||||
};
|
||||
uint32_t val;
|
||||
} bt_wakeup_params_t;
|
||||
/* External functions or variables
|
||||
************************************************************************
|
||||
*/
|
||||
@@ -204,6 +213,9 @@ static void esp_bt_controller_log_interface(uint32_t len, const uint8_t *addr, u
|
||||
static void esp_bt_ctrl_log_partition_get_and_erase_first_block(void);
|
||||
#endif // CONFIG_BT_LE_CONTROLLER_LOG_STORAGE_ENABLE
|
||||
#endif // CONFIG_BT_LE_CONTROLLER_LOG_ENABLED
|
||||
#if CONFIG_FREERTOS_USE_TICKLESS_IDLE
|
||||
static bool esp_bt_check_wakeup_by_bt(void);
|
||||
#endif // CONFIG_FREERTOS_USE_TICKLESS_IDLE
|
||||
/* Local variable definition
|
||||
***************************************************************************
|
||||
*/
|
||||
@@ -656,6 +668,7 @@ IRAM_ATTR void controller_sleep_cb(uint32_t enable_tick, void *arg)
|
||||
|
||||
IRAM_ATTR void controller_wakeup_cb(void *arg)
|
||||
{
|
||||
bt_wakeup_params_t *params;
|
||||
if (s_ble_active) {
|
||||
return;
|
||||
}
|
||||
@@ -666,15 +679,23 @@ IRAM_ATTR void controller_wakeup_cb(void *arg)
|
||||
assert(esp_rom_get_cpu_ticks_per_us() == pm_config.max_freq_mhz);
|
||||
r_ble_rtc_wake_up_state_clr();
|
||||
#endif //CONFIG_PM_ENABLE
|
||||
params = (bt_wakeup_params_t *)arg;
|
||||
esp_phy_enable(PHY_MODEM_BT);
|
||||
if (s_bt_lpclk_src == MODEM_CLOCK_LPCLK_SRC_RC_SLOW) {
|
||||
uint32_t *clk_freq = (uint32_t *)arg;
|
||||
*clk_freq = esp_clk_tree_lp_slow_get_freq_hz(ESP_CLK_TREE_SRC_FREQ_PRECISION_CACHED) / 5;
|
||||
params->rtc_freq = esp_clk_tree_lp_slow_get_freq_hz(ESP_CLK_TREE_SRC_FREQ_PRECISION_CACHED) / 5;
|
||||
}
|
||||
#if CONFIG_FREERTOS_USE_TICKLESS_IDLE
|
||||
params->bt_wakeup = esp_bt_check_wakeup_by_bt();
|
||||
#endif // CONFIG_FREERTOS_USE_TICKLESS_IDLE
|
||||
s_ble_active = true;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_FREERTOS_USE_TICKLESS_IDLE
|
||||
static bool esp_bt_check_wakeup_by_bt(void)
|
||||
{
|
||||
return (esp_sleep_get_wakeup_cause() == ESP_SLEEP_WAKEUP_BT);
|
||||
}
|
||||
|
||||
static esp_err_t sleep_modem_ble_mac_retention_init(void *arg)
|
||||
{
|
||||
uint8_t size;
|
||||
|
Submodule components/bt/controller/lib_esp32c2/esp32c2-bt-lib updated: c5a5ba3f0a...2045454453
Submodule components/bt/controller/lib_esp32c6/esp32c6-bt-lib updated: 9d2f7a02d1...56d7454a97
Submodule components/bt/controller/lib_esp32h2/esp32h2-bt-lib updated: 0783414092...a8a87adbd0
@@ -459,7 +459,7 @@ r_ble_ll_resolv_list_clr = 0x4000117c;
|
||||
r_ble_ll_resolv_list_find = 0x40001180;
|
||||
r_ble_ll_resolv_list_read_size = 0x40001184;
|
||||
r_ble_ll_resolv_list_reset = 0x40001188;
|
||||
r_ble_ll_resolv_list_rmv = 0x4000118c;
|
||||
//r_ble_ll_resolv_list_rmv = 0x4000118c;
|
||||
r_ble_ll_resolv_local_addr_rd = 0x40001190;
|
||||
r_ble_ll_resolv_peer_addr_rd = 0x40001194;
|
||||
r_ble_ll_resolv_peer_rpa_any = 0x40001198;
|
||||
@@ -503,7 +503,7 @@ r_ble_ll_scan_have_rxd_scan_rsp = 0x4000122c;
|
||||
r_ble_ll_scan_init = 0x40001230;
|
||||
r_ble_ll_scan_initiator_start = 0x40001234;
|
||||
r_ble_ll_scan_is_inside_window = 0x40001238;
|
||||
r_ble_ll_scan_move_window_to = 0x4000123c;
|
||||
//r_ble_ll_scan_move_window_to = 0x4000123c;
|
||||
r_ble_ll_scan_npl_reset = 0x40001240;
|
||||
r_ble_ll_scan_parse_auxptr = 0x40001244;
|
||||
r_ble_ll_scan_parse_ext_hdr = 0x40001248;
|
||||
@@ -601,9 +601,9 @@ r_ble_ll_utils_csa2_prng = 0x400013b8;
|
||||
r_ble_ll_utils_remapped_channel = 0x400013bc;
|
||||
r_ble_ll_whitelist_add = 0x400013c0;
|
||||
r_ble_ll_whitelist_chg_allowed = 0x400013c4;
|
||||
r_ble_ll_whitelist_clear = 0x400013c8;
|
||||
//r_ble_ll_whitelist_clear = 0x400013c8;
|
||||
r_ble_ll_whitelist_read_size = 0x400013cc;
|
||||
r_ble_ll_whitelist_rmv = 0x400013d0;
|
||||
//r_ble_ll_whitelist_rmv = 0x400013d0;
|
||||
r_ble_ll_whitelist_search = 0x400013d4;
|
||||
r_ble_ll_write_rf_path_compensation = 0x400013d8;
|
||||
r_ble_lll_adv_aux_scannable_pdu_payload_len = 0x400013dc;
|
||||
|
@@ -408,7 +408,7 @@ r_ble_ll_scan_get_peer_rpa = 0x40001228;
|
||||
r_ble_ll_scan_have_rxd_scan_rsp = 0x4000122c;
|
||||
r_ble_ll_scan_initiator_start = 0x40001234;
|
||||
r_ble_ll_scan_is_inside_window = 0x40001238;
|
||||
r_ble_ll_scan_move_window_to = 0x4000123c;
|
||||
//r_ble_ll_scan_move_window_to = 0x4000123c;
|
||||
r_ble_ll_scan_npl_reset = 0x40001240;
|
||||
r_ble_ll_scan_parse_auxptr = 0x40001244;
|
||||
r_ble_ll_scan_parse_ext_hdr = 0x40001248;
|
||||
|
Reference in New Issue
Block a user