chenjianhua
9fce08c5d2
Update bt lib for ESP32-C3 and ESP32-S3(ff6efe7)
...
- fix(bt/controller): Fixed PHY enable and disable
- feat(bt/controller): Support DAA and LBT mode for BLE CCA
2023-09-18 19:39:27 +08:00
zhiweijian
f0c6c5962a
set BT_CTRL_BLE_MAX_ACT default value to 6
2023-05-11 02:45:56 +00:00
zwj
0e5c6144b7
- Support ESP32C3 and ESP32S3 new BLE lib
...
- Disable controller 5.0 feature bits if host 5.0 feature is not enabled
- Fixed extend ADV parameters check for ADV_DIRECT_HI
2023-05-11 02:45:56 +00:00
zwj
c6942be321
Merge ESP32C3 and ESP32S3 BLE bt.c files to one
2023-05-11 02:45:56 +00:00
wangmengyang
ebb7650e63
bluetooth: fix that functions "coex_enable" and "coex_disable" are not used in pairs on ESP32-C3, ESP32-S3 and ESP32-C2
2023-01-20 10:47:58 +08: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
e7ee437bcf
Update bt lib for ESP32-C3 and ESP32-S3
...
- 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:24:26 +08:00
zwj
c656e7ec07
Fixed some memory was not released after bluetooth controller initialization failed on ESP32-C3 and ESP32-S3
2022-12-19 20:22:58 +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
Jiang Jiang Jian
9406e80d5f
Merge branch 'bugfix/fix_c3_s3_ble_temperature_performance_v5.0' into 'release/v5.0'
...
Fixed bluetooth disconnection caused by HW temperature rise or fall(backport v5.0)
See merge request espressif/esp-idf!21370
2022-12-02 20:39:17 +08:00
zhiweijian
9cfffd2915
- update phy lib
...
- Enable BLE pll track to fix bluetooth disconnection caused by temperature rise or fall on ESP32C3 and ESP32S3
- call pll track in controller task
2022-12-01 18:44:31 +08:00
zwj
1b4499046a
support BLE memory release on ESP32C3 and ESP32S3
2022-11-21 10:33:55 +08:00
zwj
7e168de48d
Update bt lib for ESP32C3 and ESP32S3
...
- Added config to disable scan backoff
- Fixed llm_scan.c assert at line 1485 during controller deinit if duplicate scan is not stopped
- Call pll track in controller task
2022-11-21 10:33:35 +08:00
zwj
99cd53490b
change default tx power from 3dBm to 9dBm
2022-11-21 10:33:35 +08:00
zwj
ccd9d0f8ce
Update BLE lib for ESP32-C3 and ESP32-S3
...
- update ble tx power level mapping
- Fixed ble sch_arb assert
2022-08-23 19:42:28 +08:00
Li Shuai
b9a667b9f8
1. Wi-Fi: update tsf tick interval when lpclk is modified
...
2. Move register_lpclk_callback to coexistence
2022-08-15 21:16:11 +08:00
xiongweichao
555d72c90a
make bluetooth and wifi use the same low power clock
2022-08-15 21:15:51 +08:00
xiongweichao
b8b7dcc159
ESP32C3:bluetooth support use main XTAL in light sleep mode
2022-08-15 21:15:13 +08:00
Jiang Jiang Jian
9ec829f352
Merge branch 'bugfix/wifi_sta_and_ble_disconnect_BCI-303_master' into 'master'
...
component_bt: Fix wifi is initialized before bluetooth initialization, bluetooth can't stay connected
Closes BCI-303
See merge request espressif/esp-idf!18643
2022-07-08 19:43:10 +08:00
wangmengyang
1d55f12c2d
component/bt: reset Bluetooth hardware during controller inititalization on ESP32-C3/ESP32-S3
...
1. Rename MACROs SYSTEM_WIFI_RST_EN register bit fields to be more recognizable
2. reset Bluetooth baseband and clock bits to fix the issue of task watchdog triggered during controller initialization due to invalid hardware state
2022-07-06 16:23:48 +08:00
xiongweichao
155c4a5cb3
Fix wifi is initialized before bluetooth initialization, bluetooth can't stay connected
2022-07-06 14:42:46 +08:00
Jack
cb0dd5cc75
fix the bug that some memory leaked in phy after wifi/ble deinit
2022-06-16 20:42:20 +08:00
Jack
7a8b63869f
deinit BB MAC back memory when they are not used
2022-05-29 00:13:32 +08: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
Karl Wang
777dbb6c83
components/bt: disable Bluetooth PLL track function for ESP32-C3/ESP32-S3 as it introduced coexistence issues
2022-05-17 20:00:23 +08:00
Jiang Jiang Jian
baa5b8ed7d
Merge branch 'bufix/esp32c3_s3_build_err' into 'master'
...
component_bt: Fix ESP32C3/S3 build error after enabled light sleep
Closes BT-2086
See merge request espressif/esp-idf!17546
2022-05-01 17:48:18 +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
xiongweichao
2be8875fd7
Fix ESP32C3/S3 build error after enable light sleep
2022-03-24 11:43:04 +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
xiewenxiang
54298708fe
component/bt: Support set HW CCA threshold value
2021-12-28 18:15:18 +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
Jiang Jiang Jian
c6ad0e4658
Merge branch 'bugfix/power_down_bluetooth_module_when_deinit' into 'master'
...
component/bt: Power down bluetooth module when deinit
Closes WIFI-4180
See merge request espressif/esp-idf!15716
2021-11-11 03:23:46 +00:00
baohongde
11656377af
components/bt: Fix the issue caused by the power off the bt power domain
2021-11-09 12:03:49 +08: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
Li Shuai
46dedca23c
ci: replace old header with new SPDX header style
2021-10-14 10:51:10 +08:00
baohongde
e684b3f2a6
Power Management: Initialize backup memory for MAC and Baseband power up/down
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
xiongweichao
ba7252d2ea
Fix that when EXT CRYS is configured but not detected, light sleep is still allowed to be used
2021-08-16 16:51:54 +08:00
zwj
97188e8068
support hw recorrect
2021-06-25 15:30:02 +08:00
wangmengyang
a024de7cac
component/bt: fixed the assert in checking hardware sleep state during wake-up
...
The hardware sleep state change can take some time after wake-up interrupt. Use busy waiting instead of directly assert
2021-06-24 10:35:40 +08:00
Renz Bagaporo
e6edf34e82
esp32: move esp_clk functions
2021-03-31 19:17:33 +08:00
Jiang Jiang Jian
bd4e34b15a
Merge branch 'bugfix/btdm_incorrectly_spelled' into 'master'
...
component/bt: fix Spelling mistakes
Closes IDFGH-4886, IDFGH-4910, and IDFGH-4635
See merge request espressif/esp-idf!12814
2021-03-29 05:07:54 +00:00
XieWenxiang
f9cdd1d6c9
component/bt: Modify some ambiguous descriptions
2021-03-23 23:08:05 +08:00
Jiang Jiang Jian
5978352cf9
Merge branch 'bugfix/ble_tx_power_mapping' into 'master'
...
Bluetooth: Tx power level for ESP32C3 and IRAM_ATTR fix for ESP32S3 controller
See merge request espressif/esp-idf!12651
2021-03-23 03:04:30 +00:00
KonstantinKondrashov
aa1338bf23
wdt: Fix timeout and RTC_SLOW_CLK
...
RTC_SLOW_CLK
ESP32: 150kHz
ESP32-S2: 90kHz
ESP32-S3: 150kHz
ESP32-C3: 150kHz
2021-03-19 00:15:18 +08:00
wangmengyang
528964f12c
fixed incorrect Tx power mappings for ESP32C3 chip
2021-03-17 16:52:26 +08:00
baohongde
33df1358ef
Fix issues during light sleep and DFS
2021-03-09 13:49:59 +08:00
Angus Gratton
70e13752ae
Merge branch 'feature/rtc_time_get' into 'master'
...
rtc: Clean up for S2,S3,C3
Closes IDF-2569
See merge request espressif/esp-idf!12336
2021-03-05 01:16:15 +00:00