]> granicus.if.org Git - esp-idf/commit
component/bt: bugfix of bluetooth modem sleep not being able to work with Dynamic...
authorwangmengyang <wangmengyang@espressif.com>
Fri, 14 Dec 2018 06:56:29 +0000 (14:56 +0800)
committerwangmengyang <wangmengyang@espressif.com>
Fri, 14 Dec 2018 06:56:29 +0000 (14:56 +0800)
commit8de9149b11f36a3bbfe20ddbfc749d53a4a84afd
tree1c9dce71bbb8ff3e3ffbc4a6a647ae46ce75ddd8
parent24ebdbd3f4fa6fba52dba08e569f8079ac8cf6f7
component/bt: bugfix of bluetooth modem sleep not being able to work with Dynamic Frequency Scaling

1. start an esp_timer on entering sleep to acquire pm_lock before wake up from modem sleep
2. decrease the clock division of XTAL fed to bluetooth low power clock from 32us to 2us period to allow to work under 240MHz Max CPU frequency
3. decrease the minimum sleep duration threshold to allow shorter bluetooth modem sleep period, especially for BLE with short connection interval
4. reconfigure bluetooth baseband(BT-BB) settings after PHY/RF init upon waking up from modem sleep to avoid packet RX/TX performance degradation
components/bt/Kconfig
components/bt/bt.c
components/bt/include/esp_bt.h
components/bt/lib
components/esp32/include/esp_phy_init.h
components/esp32/phy_init.c