Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
e10d5f0
feat(esp_partition): add support for partition tables larger than 4MB…
RathiSonika Aug 14, 2025
3ba0451
feat(efuse): Support efuses for ESP32-P4 ECO5
KonstantinKondrashov Aug 28, 2025
36d0a20
fix(ble_mesh): check data length before assigning adv data pointer
forx157 Oct 30, 2025
c087ced
fix(ble): fixed hci event log when link layer logging is disabled
Oct 30, 2025
2158a66
fix(rmt): fix pm lock type to increase stability
Kainarx Oct 29, 2025
c49033b
fix(examples): fixed bridge example test endnode to host send
kostaond Oct 27, 2025
b554cbe
fix(http_server): Fixed response status code for temporary redirect
hrushikesh430 Nov 3, 2025
2621a23
feat(cam): support esp32p4 eco5 dvp cam
Bruce297 Oct 17, 2025
4dc1bb0
feat(bt): Update bt lib for ESP32-C3 and ESP32-S3(0871069)
esp-cjh Nov 5, 2025
7910b5d
feat(ble): Enable get bt ts for ESP32-C3 and ESP32-S3
esp-cjh Nov 5, 2025
6c65b25
feat(ble): make ble log task stack size configurable
esp-cjh Nov 5, 2025
2a89a24
test(freertos): Added miscellaneous stability fixes to unit tests
sudeep-mohanty Nov 3, 2025
c23218f
feat(openthread): output logs of host for debugging CI issues
gytxxsy Oct 14, 2025
d32b70d
fix(esp_psram): make SPIRAM_USE_MEMMAP available for all targets
mahavirj Oct 24, 2025
0f22c81
feat(efuse): Adds calibration efuses for ESP32-P4 ECO5
KonstantinKondrashov Sep 25, 2025
a45758d
ci(esp_tee): Remove incorrect error checks for TEE flash protection t…
laukik-hase Nov 5, 2025
20710cc
feat(openthread): optimize fail cases in CI test
Oct 22, 2025
4e525b6
feat(tools): update toolchain version to esp-14.2.0_20251107
Lapshin Nov 8, 2025
987305e
fix(esp_driver_uart): resolve the issue of other chips receiving brea…
hbler99 Oct 28, 2025
2edf94d
fix(adc): fix ESP32-P4 ADC2 wrong channel num
Bruce297 Jun 30, 2025
7077a84
feat(adc): add adc_continuous_parse_data api
Bruce297 Nov 10, 2025
a447848
test(pcnt): fix pcnt example pytest
Kainarx Nov 4, 2025
ced7d1c
fix(examples): Fix typos in NimBLE example comments
rabuu Nov 4, 2025
7e50476
fix(802.15.4): fix line save in 154 debug
Nov 10, 2025
79ae28f
fix(bt/bluedroid): update the COD before enabling inquiry scan
BetterJincheng Aug 25, 2025
30f93c0
feat(mbedtls): update to version 3.6.5
Ashish285 Oct 16, 2025
7243d19
Merge branch 'test/esp_idf_hp_uart_wakeup_5.5' into 'release/v5.5'
Nov 11, 2025
501405d
Merge branch 'feature/update-toolchain-to-esp-14.2.0_20251107_v5.5' i…
Nov 11, 2025
3337587
Merge branch 'fix/ble_mesh_adv_rpt_fix_v5.5' into 'release/v5.5'
Nov 11, 2025
303842a
Merge branch 'fix/hci_log_spi_out_ceva_v5.5' into 'release/v5.5'
Nov 11, 2025
7fd2f23
Merge branch 'fix/fix_esp32_rmt_pm_lock_type_v5.5' into 'release/v5.5'
Nov 11, 2025
14f472c
Merge branch 'fix/bridge_example_v5.5' into 'release/v5.5'
Nov 11, 2025
344266f
Merge branch 'fix/incorrect_response_status_code_captive_portal_v5.5'…
Nov 11, 2025
ab760da
Merge branch 'feat/p4_eco5_dvp_v5.5' into 'release/v5.5'
ginkgm Nov 11, 2025
011dd41
Merge branch 'feat/support_larger_than_4m_partition_on_linux_target_v…
Nov 11, 2025
91dd2ae
Merge branch 'feat/support_cble50y25_277_v5.5' into 'release/v5.5'
Nov 11, 2025
85604da
Merge branch 'contrib/github_pr_17824_v5.5' into 'release/v5.5'
Nov 11, 2025
f702d40
Merge branch 'test/freertos_flaky_tests_stabilization_v5.5' into 'rel…
Nov 11, 2025
621ab81
Merge branch 'bugfix/fix_thread_ci_testcases_not_stable_v5.5' into 'r…
Nov 11, 2025
16158b4
Merge branch 'ci/tee_flash_prot_failures_v5.5' into 'release/v5.5'
Nov 11, 2025
1ad4d50
Merge branch 'fix/fix_save_line_in_debug_for_154_v5.5' into 'release/…
Nov 11, 2025
317a6f0
fix(mbedtls/port): Align AES and SHA DMA buffers to 16 when SPIRAM en…
Harshal5 Nov 11, 2025
7b57a1c
fix(esp_security): Fix undefined efuse build failure in case of ESP32-P4
Harshal5 Nov 4, 2025
6ea6354
fix(esp_security): Set WR_DIS_SECURE_BOOT_SHA384_EN by default when
Harshal5 Oct 26, 2025
dca7f49
ci: attach_log_url for multi dut tests
Oct 27, 2025
6b89f1e
Merge branch 'feat/update_mbedtls_3.6.5_v5.5' into 'release/v5.5'
mahavirj Nov 12, 2025
34ff240
Merge branch 'fix/disallow_enabling_sb_sha384_when_sb_sha256_is_enabl…
mahavirj Nov 12, 2025
f1fb7b3
fix(wifi): fix issue that disarm send wake null timer donot take effect
Nov 6, 2025
db3d064
fix(ble): increase default ble log stack size for xtensa chips
Nov 12, 2025
86bd3d3
Merge branch 'fix/axi_dma_ext_mem_alignment_c5_v5.5' into 'release/v5.5'
Nov 12, 2025
4020a93
feat(phy): update esp32c3 esp32s3 esp32c2 esp32s2 libphy for RXDC
Nov 12, 2025
6d105dc
feat(esp_coex): set the pull mode of the external coex input pin
zwx1995esp Nov 3, 2025
f501d0a
Merge branch 'feat/libphy_c3_s3_c2_rxdc_20250804_v5.5' into 'release/…
Nov 13, 2025
dc7304b
Merge branch 'fix/wrong_channel_gpio_num_on_p4_adc2_v5.5' into 'relea…
Nov 13, 2025
0434169
Merge branch 'bugfix/psram_mmap_for_all_targets_v5.5' into 'release/v…
Nov 13, 2025
ad9b680
Merge branch 'fix/pcnt_example_pytest_v5.5' into 'release/v5.5'
Nov 13, 2025
8c9f686
Merge branch 'bugfix/cod_chg_by_scan_ena_v5.5' into 'release/v5.5'
Nov 13, 2025
0ba481b
Merge branch 'fix/increase_ble_log_task_stack_size_for_xtensa_chips_v…
Nov 13, 2025
72d9925
Merge branch 'feat/set_pull_mode_of_coex_input_pin_v5.5' into 'releas…
Nov 13, 2025
c51b5e9
Merge branch 'feature/support_efuses_esp32p4_eco5_v5.5' into 'release…
ginkgm Nov 13, 2025
38ea935
fix(bt/bluedroid): Fixed HID memory leak
boblane1 Oct 23, 2025
39bcc8f
Merge branch 'bugfix/fix_send_wakenull_off_channel_v5.5' into 'releas…
Nov 14, 2025
2dc1a9b
Merge branch 'bugfix/fix_hid_memory_leak_v5.5' into 'release/v5.5'
Nov 14, 2025
8d036f2
Merge branch 'ci/attach_dut_log_url-v5.5' into 'release/v5.5'
Nov 14, 2025
1539f07
Update crosstool-NG version to 15.2.0
Jason2866 Nov 18, 2025
f5fefab
Refactor toolchain flags for ESP32-P4
Jason2866 Nov 18, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/bootloader/Kconfig.projbuild
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,7 @@ menu "Security features"

config SECURE_BOOT_SKIP_WRITE_PROTECTION_SCA
bool "Skip write-protection of SECURE_FLASH_PSEUDO_ROUND_FUNC_STRENGTH"
default y if SECURE_FLASH_PSEUDO_ROUND_FUNC
default y if SECURE_FLASH_PSEUDO_ROUND_FUNC && !SECURE_FLASH_ENCRYPTION_MODE_RELEASE
default n
depends on SOC_ECDSA_SUPPORT_CURVE_P384 && SOC_FLASH_ENCRYPTION_XTS_AES_SUPPORT_PSEUDO_ROUND
help
Expand Down
8 changes: 8 additions & 0 deletions components/bt/common/ble_log/Kconfig.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ config BLE_LOG_ENABLED
Enable BLE Log Module

if BLE_LOG_ENABLED
config BLE_LOG_TASK_STACK_SIZE
int "Stack size for BLE Log Task"
default 1024 if IDF_TARGET_ARCH_RISCV
default 2048 if IDF_TARGET_ARCH_XTENSA
default 1024
help
Stack size for BLE Log Task

config BLE_LOG_LBM_TRANS_SIZE
int "Buffer size for each peripheral transport"
default 512
Expand Down
20 changes: 14 additions & 6 deletions components/bt/common/ble_log/ble_log_spi_out.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,14 @@
#define SPI_OUT_LOG_STR_BUF_SIZE (100)
#define SPI_OUT_MALLOC(size) heap_caps_malloc(size, MALLOC_CAP_INTERNAL | MALLOC_CAP_8BIT)
#define SPI_OUT_TASK_PRIORITY (ESP_TASK_PRIO_MAX - 1)

#if CONFIG_IDF_TARGET_ARCH_RISCV
#define SPI_OUT_TASK_STACK_SIZE (1024)
#elif CONFIG_IDF_TARGET_ARCH_XTENSA
#define SPI_OUT_TASK_STACK_SIZE (2048)
#else
static_assert(false, "BLE Log SPI Out: Unsupported target architecture");
#endif /* CONFIG_IDF_TARGET_ARCH_RISCV */

#if SPI_OUT_TS_SYNC_ENABLED
#define SPI_OUT_TS_SYNC_TIMEOUT_MS (1000)
Expand Down Expand Up @@ -247,9 +254,9 @@ extern uint32_t r_ble_lll_timer_current_tick_get(void);
#elif defined(CONFIG_IDF_TARGET_ESP32C2)
extern uint32_t r_os_cputime_get32(void);
#define SPI_OUT_GET_LC_TIME r_os_cputime_get32()
// #elif defined(CONFIG_IDF_TARGET_ESP32C3) || defined(CONFIG_IDF_TARGET_ESP32S3)
// extern uint32_t lld_read_clock_us(void);
// #define SPI_OUT_GET_LC_TIME lld_read_clock_us()
#elif defined(CONFIG_IDF_TARGET_ESP32C3) || defined(CONFIG_IDF_TARGET_ESP32S3)
extern uint32_t lld_read_clock_us(void);
#define SPI_OUT_GET_LC_TIME lld_read_clock_us()
#else
#define SPI_OUT_GET_LC_TIME esp_timer_get_time()
#endif
Expand Down Expand Up @@ -1365,12 +1372,13 @@ int ble_log_spi_out_hci_write(uint8_t source, const uint8_t *addr, uint16_t len)
return -1;
}

if (source == BLE_LOG_SPI_OUT_SOURCE_HCI_UPSTREAM) {
#if SPI_OUT_LL_ENABLED
if (source == BLE_LOG_SPI_OUT_SOURCE_HCI_UPSTREAM) {
ble_log_spi_out_ll_write(len, addr, 0, NULL, BIT(LL_LOG_FLAG_HCI_UPSTREAM));
#endif // SPI_OUT_LL_ENABLED
}
if (source == BLE_LOG_SPI_OUT_SOURCE_HCI_DOWNSTREAM) {
if (source == BLE_LOG_SPI_OUT_SOURCE_HCI_DOWNSTREAM)
#endif /* SPI_OUT_LL_ENABLED */
{
spi_out_log_cb_t *log_cb;
bool fallback = false;
if (!spi_out_get_task_mapping(LOG_MODULE_TASK_MAP(hci),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

/* MACRO */
#define BLE_LOG_TASK_PRIO (ESP_TASK_PRIO_MAX - 1)
#define BLE_LOG_TASK_STACK_SIZE (1024)
#define BLE_LOG_TASK_STACK_SIZE CONFIG_BLE_LOG_TASK_STACK_SIZE
#define BLE_LOG_TASK_HOOK_TIMEOUT_MS (1000)

/* INTERFACE */
Expand Down
5 changes: 1 addition & 4 deletions components/bt/common/osi/allocator.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,5 @@ void *osi_calloc_func(size_t size)

void osi_free_func(void *ptr)
{
#if HEAP_MEMORY_DEBUG
osi_mem_dbg_clean(ptr, __func__, __LINE__);
#endif
free(ptr);
osi_free(ptr);
}
8 changes: 4 additions & 4 deletions components/bt/controller/esp32c3/Kconfig.in
Original file line number Diff line number Diff line change
Expand Up @@ -616,15 +616,15 @@ menu "Controller debug log Options (Experimental)"

config BT_CTRL_LE_LOG_MODE_EN
depends on BT_CTRL_LE_LOG_EN
int "Enable log for specified BLE mode"
range 0 4095
default 4093
hex "Enable log for specified BLE mode"
range 0 0xFFFF
default 0xDB7F

config BT_CTRL_LE_LOG_LEVEL
depends on BT_CTRL_LE_LOG_EN
int "The level of BLE log"
range 0 5
default 2
default 1

config BT_CTRL_LE_LOG_BUF1_SIZE
depends on BT_CTRL_LE_LOG_EN
Expand Down
62 changes: 32 additions & 30 deletions components/bt/controller/esp32c3/bt.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,12 @@ struct osi_funcs_t {
};

#if CONFIG_BT_CTRL_LE_LOG_EN
typedef void (*interface_func_t) (uint32_t len, const uint8_t*addr, bool end);
typedef void (*interface_func_t) (uint32_t len, const uint8_t *addr, uint32_t len_append, const uint8_t *addr_append, uint32_t flag);

enum {
BLE_LOG_INTERFACE_FLAG_CONTINUE = 0,
BLE_LOG_INTERFACE_FLAG_END,
};
#endif // CONFIG_BT_CTRL_LE_LOG_EN

/* External functions or values
Expand Down Expand Up @@ -304,11 +309,14 @@ extern void btdm_aa_check_enhance_enable(void);

/* BLE Log module */
#if CONFIG_BT_CTRL_LE_LOG_EN
extern int r_ble_log_init_simple(interface_func_t interface, void *handler);
extern void r_ble_log_deinit_simple(void);
extern int r_ble_log_init_async(interface_func_t bt_controller_log_interface, bool task_create, uint8_t buffers, uint32_t *bufs_size);
extern int r_ble_log_deinit_async(void);
extern void r_ble_log_async_select_dump_buffers(uint8_t buffers);
extern void r_ble_log_async_output_dump_all(bool output);
extern void esp_panic_handler_feed_wdts(void);
extern int r_ble_log_ctrl_level_and_mod(uint8_t level, uint32_t mod_en);
#endif // CONFIG_BT_CTRL_LE_LOG_EN
#if (CONFIG_BT_BLUEDROID_ENABLED || CONFIG_BT_NIMBLE_ENABLED)
extern void scan_stack_enableAdvFlowCtrlVsCmd(bool en);
Expand Down Expand Up @@ -399,12 +407,13 @@ static esp_err_t try_heap_caps_add_region(intptr_t start, intptr_t end);
static void bt_controller_deinit_internal(void);

#if CONFIG_BT_CTRL_LE_LOG_EN
static void esp_bt_controller_log_interface(uint32_t len, const uint8_t *addr, bool end);
#if !CONFIG_BT_CTRL_LE_LOG_MODE_BLE_LOG_V2
#if CONFIG_BT_CTRL_LE_LOG_STORAGE_EN
void esp_bt_read_ctrl_log_from_flash(bool output);
static int esp_bt_controller_log_storage(uint32_t len, const uint8_t *addr, bool end);
static void esp_bt_ctrl_log_partition_get_and_erase_first_block(void);
#endif // #if CONFIG_BT_CTRL_LE_LOG_STORAGE_EN
#endif // CONFIG_BT_CTRL_LE_LOG_STORAGE_EN
#endif // !CONFIG_BT_CTRL_LE_LOG_MODE_BLE_LOG_V2
#endif // CONFIG_BT_CTRL_LE_LOG_EN

/* Local variable definition
Expand Down Expand Up @@ -538,18 +547,14 @@ static bool is_filled = false;
#endif // CONFIG_BT_CTRL_LE_LOG_STORAGE_EN

#if CONFIG_BT_CTRL_LE_LOG_MODE_BLE_LOG_V2
static IRAM_ATTR void esp_bt_controller_log_interface(uint32_t len, const uint8_t *addr, bool end)
{
ble_log_write_hex_ll(len, addr, 0, NULL, 0);
}

void esp_ble_controller_log_dump_all(bool output)
{
ble_log_dump_to_console();
}
#else /* !CONFIG_BT_CTRL_LE_LOG_MODE_BLE_LOG_V2 */
static void esp_bt_controller_log_interface(uint32_t len, const uint8_t *addr, bool end)
static void esp_bt_controller_log_interface(uint32_t len, const uint8_t *addr, uint32_t len_append, const uint8_t *addr_append, uint32_t flag)
{
bool end = (flag & BIT(BLE_LOG_INTERFACE_FLAG_END));
if (log_output_mode == LOG_STORAGE_TO_FLASH) {
#if CONFIG_BT_CTRL_LE_LOG_STORAGE_EN
esp_bt_controller_log_storage(len, addr, end);
Expand All @@ -558,24 +563,19 @@ static void esp_bt_controller_log_interface(uint32_t len, const uint8_t *addr, b
portMUX_TYPE spinlock = portMUX_INITIALIZER_UNLOCKED;
portENTER_CRITICAL_SAFE(&spinlock);
esp_panic_handler_feed_wdts();
for (int i = 0; i < len; i++) {
esp_rom_printf("%02x ", addr[i]);
}

if (end) {
esp_rom_printf("\n");
if (len && addr) {
for (int i = 0; i < len; i++) { esp_rom_printf("%02x ", addr[i]); }
}
if (len_append && addr_append) {
for (int i = 0; i < len_append; i++) { esp_rom_printf("%02x ", addr_append[i]); }
}
if (end) { esp_rom_printf("\n"); }

portEXIT_CRITICAL_SAFE(&spinlock);
}
}

#if CONFIG_BT_CTRL_LE_LOG_SPI_OUT_EN
static IRAM_ATTR void esp_bt_controller_spi_log_interface(uint32_t len, const uint8_t *addr, bool end)
{
ble_log_spi_out_ll_write(len, addr, 0, NULL, 0);
}
#endif // CONFIG_BT_CTRL_LE_LOG_SPI_OUT_EN

void esp_ble_controller_log_dump_all(bool output)
{
if (log_output_mode == LOG_STORAGE_TO_FLASH) {
Expand Down Expand Up @@ -612,16 +612,13 @@ esp_err_t esp_bt_controller_log_init(uint8_t log_output_mode)
}

esp_err_t ret = ESP_OK;
uint8_t buffers = 0;

#if CONFIG_BT_CTRL_LE_LOG_EN
buffers |= ESP_BLE_LOG_BUF_CONTROLLER;
#endif // CONFIG_BT_CTRL_LE_LOG_EN
#if CONFIG_BT_CTRL_LE_HCI_LOG_EN
buffers |= ESP_BLE_LOG_BUF_HCI;
#endif // CONFIG_BT_CTRL_LE_HCI_LOG_EN
ret = r_ble_log_init_simple(ble_log_write_hex_ll, NULL);
if (ret != ESP_OK) {
return ret;
}

ret = r_ble_log_init_async(esp_bt_controller_log_interface, true, buffers, (uint32_t *)log_bufs_size);
ret = r_ble_log_ctrl_level_and_mod(BLE_LOG_LEVEL, BLE_LOG_MODE_EN);
if (ret == ESP_OK) {
log_is_inited = true;
}
Expand Down Expand Up @@ -664,14 +661,19 @@ esp_err_t esp_bt_controller_log_init(uint8_t log_output_mode)
case LOG_SPI_OUT:
task_create = true;
#if CONFIG_BT_CTRL_LE_LOG_SPI_OUT_EN
bt_controller_log_interface = esp_bt_controller_spi_log_interface;
bt_controller_log_interface = ble_log_spi_out_ll_write;
#endif // CONFIG_BT_CTRL_LE_LOG_SPI_OUT_EN
break;
default:
assert(0);
}

ret = r_ble_log_init_async(bt_controller_log_interface, task_create, buffers, (uint32_t *)log_bufs_size);
if (ret != ESP_OK) {
return ret;
}

ret = r_ble_log_ctrl_level_and_mod(BLE_LOG_LEVEL, BLE_LOG_MODE_EN);
if (ret == ESP_OK) {
log_is_inited = true;
}
Expand Down
2 changes: 1 addition & 1 deletion components/bt/esp_ble_mesh/core/bluedroid_host/adapter.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ void bt_mesh_ble_ext_adv_report(tBTM_BLE_EXT_ADV_REPORT *ext_adv_report)
memcpy(adv_rpt.dir_addr, ext_adv_report->dir_addr, BLE_MESH_ADDR_LEN);

adv_rpt.addr_type = ext_adv_report->addr_type;
adv_rpt.data = ext_adv_report->adv_data;
adv_rpt.data = ext_adv_report->adv_data_len ? ext_adv_report->adv_data : NULL;
adv_rpt.length = ext_adv_report->adv_data_len;
adv_rpt.rssi = ext_adv_report->rssi;
adv_rpt.event_type = ext_adv_report->event_type;
Expand Down
2 changes: 1 addition & 1 deletion components/bt/esp_ble_mesh/core/nimble_host/adapter.c
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ void bt_mesh_ble_ext_adv_report(struct ble_gap_ext_disc_desc *desc)

/* Here, only a shallow copy needs to be implemented;
* deep copying behavior occurs in btc_ble_mesh_ble_copy_req_data. */
adv_rpt.data = desc->data;
adv_rpt.data = desc->length_data ? desc->data : NULL;

adv_rpt.event_type = desc->props;
adv_rpt.addr_type = desc->addr.type;
Expand Down
2 changes: 1 addition & 1 deletion components/bt/esp_ble_mesh/core/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ static void inline callback_ble_adv_pkt(const bt_mesh_addr_t *addr,
adv_rpt.addr_type = addr->type;
adv_rpt.adv_type = adv_type;
adv_rpt.length = length;
adv_rpt.data = data;
adv_rpt.data = length ? data : NULL;
adv_rpt.rssi = rssi;
bt_mesh_ble_scan_cb_evt_to_btc(&adv_rpt);
}
Expand Down
2 changes: 1 addition & 1 deletion components/bt/host/bluedroid/api/esp_hidd_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ esp_err_t esp_bt_hid_device_send_report(esp_hidd_report_type_t type, uint8_t id,
args.send_report.data = data;

bt_status_t stat = btc_transfer_context(&msg, &args, sizeof(btc_hidd_args_t),
btc_hd_arg_deep_copy, btc_hd_cb_arg_deep_free);
btc_hd_arg_deep_copy, btc_hd_call_arg_deep_free);
return (stat == BT_STATUS_SUCCESS) ? ESP_OK : ESP_FAIL;
}

Expand Down
6 changes: 3 additions & 3 deletions components/bt/host/bluedroid/api/esp_hidh_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ esp_err_t esp_bt_hid_host_set_info(esp_bd_addr_t bd_addr, esp_hidh_hid_info_t *h
arg.set_info.hid_info = hid_info;

bt_status_t stat = btc_transfer_context(&msg, &arg, sizeof(btc_hidh_args_t),
btc_hh_arg_deep_copy, btc_hh_cb_arg_deep_free);
btc_hh_arg_deep_copy, btc_hh_call_arg_deep_free);
return (stat == BT_STATUS_SUCCESS) ? ESP_OK : ESP_FAIL;
}

Expand Down Expand Up @@ -224,7 +224,7 @@ esp_err_t esp_bt_hid_host_set_report(esp_bd_addr_t bd_addr, esp_hidh_report_type
arg.set_report.report = report;

bt_status_t stat = btc_transfer_context(&msg, &arg, sizeof(btc_hidh_args_t),
btc_hh_arg_deep_copy, btc_hh_cb_arg_deep_free);
btc_hh_arg_deep_copy, btc_hh_call_arg_deep_free);
return (stat == BT_STATUS_SUCCESS) ? ESP_OK : ESP_FAIL;
}

Expand All @@ -243,7 +243,7 @@ esp_err_t esp_bt_hid_host_send_data(esp_bd_addr_t bd_addr, uint8_t *data, size_t
arg.send_data.data = data;

bt_status_t stat = btc_transfer_context(&msg, &arg, sizeof(btc_hidh_args_t),
btc_hh_arg_deep_copy, btc_hh_cb_arg_deep_free);
btc_hh_arg_deep_copy, btc_hh_call_arg_deep_free);
return (stat == BT_STATUS_SUCCESS) ? ESP_OK : ESP_FAIL;
}

Expand Down
6 changes: 4 additions & 2 deletions components/bt/host/bluedroid/btc/profile/std/hid/btc_hd.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ btc_hd_cb_t btc_hd_cb = {0};

typedef void (bt_hid_copy_cb_t)(btc_msg_t *msg, void *p_dest, void *p_src);

static void btc_hd_cb_arg_deep_free(btc_msg_t *msg);

static inline void btc_hd_cb_to_app(esp_hidd_cb_event_t event, esp_hidd_cb_param_t *param)
{
esp_hd_cb_t btc_hd_cb = (esp_hd_cb_t)btc_profile_cb_get(BTC_PID_HD);
Expand Down Expand Up @@ -705,7 +707,7 @@ static void btc_hd_virtual_cable_unplug(void)
}
}

static void btc_hd_call_arg_deep_free(btc_msg_t *msg)
void btc_hd_call_arg_deep_free(btc_msg_t *msg)
{
btc_hidd_args_t *arg = (btc_hidd_args_t *)msg->arg;

Expand Down Expand Up @@ -756,7 +758,7 @@ void btc_hd_call_handler(btc_msg_t *msg)
btc_hd_call_arg_deep_free(msg);
}

void btc_hd_cb_arg_deep_free(btc_msg_t *msg)
static void btc_hd_cb_arg_deep_free(btc_msg_t *msg)
{
tBTA_HD *arg = (tBTA_HD *)msg->arg;

Expand Down
6 changes: 4 additions & 2 deletions components/bt/host/bluedroid/btc/profile/std/hid/btc_hh.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ static bdstr_t bdstr;
#define is_hidh_init() (btc_hh_cb.status > BTC_HH_DISABLED)
#define BTC_TIMEOUT_VUP_MS (3 * 1000)

static void btc_hh_cb_arg_deep_free(btc_msg_t *msg);

static inline void btc_hh_cb_to_app(esp_hidh_cb_event_t event, esp_hidh_cb_param_t *param)
{
esp_hh_cb_t btc_hh_cb = (esp_hh_cb_t)btc_profile_cb_get(BTC_PID_HH);
Expand Down Expand Up @@ -1097,7 +1099,7 @@ static void btc_hh_set_idle_time(btc_hidh_args_t *arg)
}
}

static void btc_hh_call_arg_deep_free(btc_msg_t *msg)
void btc_hh_call_arg_deep_free(btc_msg_t *msg)
{
btc_hidh_args_t *arg = (btc_hidh_args_t *)msg->arg;

Expand Down Expand Up @@ -1166,7 +1168,7 @@ void btc_hh_call_handler(btc_msg_t *msg)
btc_hh_call_arg_deep_free(msg);
}

void btc_hh_cb_arg_deep_free(btc_msg_t *msg)
static void btc_hh_cb_arg_deep_free(btc_msg_t *msg)
{
tBTA_HH *arg = (tBTA_HH *)msg->arg;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ void btc_hd_call_handler(btc_msg_t *msg);
void btc_hd_cb_handler(btc_msg_t *msg);

void btc_hd_arg_deep_copy(btc_msg_t *msg, void *p_dest, void *p_src);
void btc_hd_cb_arg_deep_free(btc_msg_t *msg);
void btc_hd_call_arg_deep_free(btc_msg_t *msg);

void btc_hd_get_profile_status(esp_hidd_profile_status_t *param);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,7 @@ void btc_hh_call_handler(btc_msg_t *msg);
void btc_hh_cb_handler(btc_msg_t *msg);

void btc_hh_arg_deep_copy(btc_msg_t *msg, void *p_dest, void *p_src);

void btc_hh_cb_arg_deep_free(btc_msg_t *msg);
void btc_hh_call_arg_deep_free(btc_msg_t *msg);

bool btc_hh_add_added_dev(BD_ADDR bd_addr, uint16_t attr_mask);

Expand Down
Loading