feat(phy): add phy partial calibration in phy init

This commit is contained in:
Zhang Jun Hao
2019-09-06 17:36:53 +08:00
committed by dongheng
parent df1e032b58
commit e3c73f339c
3 changed files with 29 additions and 0 deletions

View File

@ -560,6 +560,31 @@ endmenu
menu PHY
choice ESP8266_PHY_CALIBRATION
prompt "RF calibration"
default ESP8266_PHY_FULL_CALIBRATION
help
If calibration data is not found, full calibration will be performed. To ensure better RF performance,
it is recommend to set RF_calibration to ESP8266_PHY_FULL_CALIBRATION, otherwise the RF performance may become poor.
Full calibration needs 170 - 180ms.
Partial calibration needs 35 - 40ms.
No calibration needs 3.260 - 3.264ms.
config ESP8266_PHY_FULL_CALIBRATION
bool "RF full calibration"
config ESP8266_PHY_NO_CALIBRATION
bool "RF no calibration"
config ESP8266_PHY_PARTIAL_CALIBRATION
bool "RF partial calibration"
endchoice
config ESP8266_PHY_CALIBRATION
int
default 3 if ESP8266_PHY_FULL_CALIBRATION
default 2 if ESP8266_PHY_PARTIAL_CALIBRATION
default 1 if ESP8266_PHY_NO_CALIBRATION
config ESP_PHY_CALIBRATION_AND_DATA_STORAGE
bool "Store phy calibration data in NVS"
default y