Commit Graph

66 Commits

Author SHA1 Message Date
chenjianhua 85a2c95aa7 fix(bt): Update bt lib for ESP32(dc1cd581)
- Remove unused functions in the controller
- Add an SDK config for the minimum size of encryption key
2025-03-25 14:38:00 +08:00
Wang Meng Yang 6683d50054 Merge branch 'bugfix/fix_esp32_bt_disable_crash_v5.0' into 'release/v5.0'
fix(bt): Fix controller disable cause iwdt timeout on esp32 (v5.0)

See merge request espressif/esp-idf!37776
2025-03-24 14:29:47 +08:00
Zhou Xiao a72a99dae5 fix(ble): fix ble log init failure mem leak for ESP32
(cherry picked from commit bb9dc5a927)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-03-18 12:53:43 +08:00
linruihao af82753edd fix(bt): Fix controller disable cause iwdt timeout on esp32 2025-03-14 17:53:24 +08:00
zhanghaipeng d6f803079b fix(ble/controller): Fix BLE Kconfig on ESP32 to avoid unexpected behavior 2025-03-03 11:19:22 +08:00
zhanghaipeng 162331877c fix(ble): Update bt lib for ESP32(2a2631f)
- Support ESP32 BLE GPIO DEBUG
2025-02-26 16:20:54 +08:00
Zhou Xiao 56e38729b1 feat(ble): support ble log spi out for ESP32
(cherry picked from commit e2fbec5d2e)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-02-19 20:53:23 +08:00
chenjianhua 01d9a716b9 fix(bt): Update bt lib for ESP32(ba6739f)
- Fixed assert in lld_evt.c at line 2353
- Fixed interrupt WDT when shutdown bt controller
- Added config for BLE vendor HCI QA command
- Added config for BLE channel assessment and ping procedure
2025-02-11 16:56:31 +08:00
xiongweichao a1d6fc04a4 feat(bt): Added API to get/set low power clock source 2025-02-08 14:29:33 +08:00
Zhang Hai Peng 00f6929123 fix(blufi): Fixed blufi init fail after deinit
(cherry picked from commit 7addb57ccd)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2024-12-09 17:45:19 +08:00
chenjianhua 4fa7610be8 feat(ble/bluedroid): Support setting connection params when creating connection 2024-12-03 18:05:12 +08:00
zhanghaipeng fe6d4ebe1e fix(bt/ble): Update esp32 libbtdm_app.a (17db8bd)
- Added a verification step for the Access Address within the CONNECT_IND PDU
2024-11-08 14:26:15 +08:00
chenjianhua ec7ff931c3 fix(bt): Update bt lib for ESP32(a2a7457)
- Fixed assert in ke_mem.c at line 409 when controller reset
- Added config for BLE instant passed workaround
- Fixed connection can't be established when initiating and advertising coexist
2024-11-08 14:24:54 +08:00
xiongweichao cf0261a903 feat(ble): Support using 32k oscillator as Bluetooth sleep clock 2024-10-10 11:28:16 +08:00
zhanghaipeng 7207816a3f feat(ble/controller): Display BLE controller init status for ESP32 and ESP32C3/S3 2024-09-27 15:52:49 +08:00
zhanghaipeng ae186b888b feat(ble/controller): Support get BLE controller free heap size 2024-08-23 09:42:32 +08:00
Wang Mengyang a372e0ee88 fix(bt): Fix heap corruption in the call of esp_bt_mem_release on ESP32
Closes https://github.com/espressif/esp-idf/issues/14263
2024-08-13 07:55:23 +08:00
Wang Mengyang 76486bbfcb change(bt): Rename linker script file names and symbol names
1. rename linker files
2. support memory release in case that ESP_ALLOW_BSS_SEG_EXTERNAL_MEMORY is enabled
3. improve the implementation of memory release
2024-05-06 17:14:58 +08:00
Wang Mengyang eca6545ffe fix(bt): Fix missing linker symbol when ESP_ALLOW_BSS_SEG_EXTERNAL_MEMORY enabled
1. Closes https://github.com/espressif/esp-idf/issues/10427
2. add two linker script to unify linker script symbols for BT libraries
3. The memory release functions have also been simplified

fix(bt): remove unused file linker.lf
2024-05-06 17:14:55 +08:00
zhanghaipeng c9c946811c fix(bt/controller): Update bt lib for ESP32(5838b68)
- Fixed BLE scan assert
 - Fixed assert(10,0) in lld_pdu
 - Add BLE scan backoff in menuconfig
2024-04-18 14:09:09 +08:00
gongyantao 9b605ab112 change(bt/bluedroid): Redirect app functions in controller based on the bluetooth mode 2024-02-23 19:07:12 +08:00
zhanghaipeng a3759a122e docs(ble/bluedroid): Optimize documentation for BLE duplicate scan 2024-01-22 20:53:20 +08:00
zhiweijian f3729b1610 feat: add config to disable ble hci uart flow control 2023-10-20 17:16:45 +08:00
zhiweijian b13e24f26c change: enable pll track by default on ESP32 2023-10-20 17:16:37 +08:00
zhanghaipeng e8810e86fc fix(bt): Fix the issue of not printing the Bluetooth MAC address for ESP32
- Add a log statement to print the Bluetooth MAC address
2023-07-13 16:42:48 +08:00
wangmengyang 239e97ff7e bt: added coex adapter operation to get version of coexist module to ESP32 Bluetooth Controller 2023-05-04 06:37:19 +00:00
zwj 0733694f1f Update bt lib for ESP32
- Add config to set duplicate scan list refresh period
- overwrite the oldest device infor if the list is full
- Fixed duplicate scan period is not accurate
2022-12-19 20:26:17 +08:00
zwj 5fff471b50 Fixed some memory was not released after bluetooth controller initialization failed on ESP32 2022-12-19 20:19:28 +08:00
liuning 7d16868e32 phy: only set phy_init_flag at power domain off, when all modems deinit 2022-12-15 10:45:09 +08:00
baohongde 6d631d14de components/bt: Make sure sempher and queue used in isr is in DRAM 2022-07-21 13:50:29 +08:00
zwj 9a46d06532 fix esp32 BLE ke_mem.c assert 2022-07-07 11:23:11 +00:00
Jack cb0dd5cc75 fix the bug that some memory leaked in phy after wifi/ble deinit 2022-06-16 20:42:20 +08:00
xiongweichao d888665160 Bluetooth build fail when power management is enabled
Closes https://github.com/espressif/esp-idf/issues/9081
2022-06-02 10:46:19 +08:00
Anton Maklakov 877dc3e304 bt: make int types consistent 2022-05-27 08:03:54 +00:00
songruojing a5b09cf015 rtc_clk: Clean up some clock related enum and macro in soc/rtc.h, replace with new ones in
soc/clk_tree_defs.h
2022-05-24 22:59:41 +08:00
Marius Vikhammer d2872095f9 soc: moved kconfig options out of the target component.
Moved the following kconfig options out of the target component:
 * CONFIG_ESP*_DEFAULT_CPU_FREQ* -> esp_system
 * ESP*_REV_MIN -> esp_hw_support
 * ESP*_TIME_SYSCALL -> newlib
 * ESP*_RTC_* -> esp_hw_support

Where applicable these target specific konfig names were merged into
a single common config, e.g;
CONFIG_ESP*_DEFAULT_CPU_FREQ -> CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ
2022-04-21 12:09:43 +08:00
songruo 60bb5c913d clk_tree: prework of introducing clk subsystem control
1. Clean up clk usage in IDF, replace rtc_clk_xtal/apb_freq_get with
   upper level API esp_clk_xtal/apb_freq
2. Fix small errors and wrong comments related to clock
3. Add clk_tree_defs.h to provide an unified clock id for each chip
   Modify the NGed drivers to adopt new clock ids
2022-04-11 12:09:06 +08:00
Anton Maklakov 68e5d9d585 Remove IRAM_ATTR from any function declarations
IRAM_ATTR expands to a unique section attribute. Applying it to both
declaration and definition results in a section conflict.
2022-03-22 09:58:50 +00:00
Sudeep Mohanty a9fda54d39 esp_hw_support/esp_system: Re-evaluate header inclusions and include directories
This commit updates the visibility of various header files and cleans up
some unnecessary inclusions. Also, this commit removes certain header
include paths which were maintained for backward compatibility.
2022-03-07 11:18:08 +05:30
baohongde c138e47f45 components/bt: Update licenses 2021-12-08 10:59:06 +08:00
Cao Sen Miao eddc196081 esp_clk: refactor target/clk.h to private/esp_clk.h 2021-11-26 14:56:30 +08:00
xiewenxiang 6d35819d16 component/bt: fix assert fail when interrupt hlevel disable 2021-11-24 20:10:00 +08:00
Jiang Jiang Jian 3a443d523f Merge branch 'bugfix/fix_memory_leak_controller_deinit' into 'master'
ESP32: Fix memory leak in controller deinit function

See merge request espressif/esp-idf!15449
2021-11-11 03:36:18 +00:00
morris 16677b0d3c global: make periph enable/disable APIs private
peripheral enable/disable usually should be managed by driver itself,
so make it as espressif private APIs, not recommended for user to use it
in application code.
However, if user want to re-write the driver or ports to other platform,
this is still possible by including the header in this way:
"esp_private/peripheral_ctrl.h"
2021-11-08 10:37:47 +08:00
xiewenxiang 9b16f5d831 component/bt: fix crash when shutdown bt 2021-11-02 10:29:10 +08:00
Li Shuai 46dedca23c ci: replace old header with new SPDX header style 2021-10-14 10:51:10 +08:00
baohongde 17d719bad7 Power Management: power up/down BT power domain when BT init/deinit 2021-10-14 10:51:09 +08:00
Rahul Tank 7f9a15f298 ESP32: Fix memory leak in controller deinit function
Added change to dealloc s_pm_lock in controller deinit as it gets allocated
during init procedure.

Closes https://github.com/espressif/esp-idf/issues/7653
2021-10-08 14:35:47 +05:30
baohongde b310c062cd components/bt: move config BT_RESERVE_DRAM from bluedroid to ESP32 controller 2021-09-16 20:26:35 +08:00
baohongde eb176c3453 Fix bt init error with psram 2021-09-15 10:57:45 +08:00