2021-05-24 11:39:39 +00:00
|
|
|
menu "PHY"
|
|
|
|
|
2021-06-16 03:39:08 +00:00
|
|
|
config ESP_PHY_CALIBRATION_AND_DATA_STORAGE
|
2021-05-24 11:39:39 +00:00
|
|
|
bool "Store phy calibration data in NVS"
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
If this option is enabled, NVS will be initialized and calibration data will be loaded from there.
|
|
|
|
PHY calibration will be skipped on deep sleep wakeup. If calibration data is not found, full calibration
|
|
|
|
will be performed and stored in NVS. Normally, only partial calibration will be performed.
|
|
|
|
If this option is disabled, full calibration will be performed.
|
|
|
|
|
|
|
|
If it's easy that your board calibrate bad data, choose 'n'.
|
|
|
|
Two cases for example, you should choose 'n':
|
|
|
|
1.If your board is easy to be booted up with antenna disconnected.
|
|
|
|
2.Because of your board design, each time when you do calibration, the result are too unstable.
|
|
|
|
If unsure, choose 'y'.
|
|
|
|
|
2021-06-16 03:39:08 +00:00
|
|
|
menuconfig ESP_PHY_INIT_DATA_IN_PARTITION
|
2021-05-24 11:39:39 +00:00
|
|
|
bool "Use a partition to store PHY init data"
|
2023-02-23 09:15:36 +00:00
|
|
|
depends on SOC_WIFI_SUPPORTED
|
2021-05-24 11:39:39 +00:00
|
|
|
default n
|
|
|
|
help
|
|
|
|
If enabled, PHY init data will be loaded from a partition.
|
|
|
|
When using a custom partition table, make sure that PHY data
|
|
|
|
partition is included (type: 'data', subtype: 'phy').
|
|
|
|
With default partition tables, this is done automatically.
|
|
|
|
If PHY init data is stored in a partition, it has to be flashed there,
|
|
|
|
otherwise runtime error will occur.
|
|
|
|
|
|
|
|
If this option is not enabled, PHY init data will be embedded
|
|
|
|
into the application binary.
|
|
|
|
|
|
|
|
If unsure, choose 'n'.
|
|
|
|
|
2021-06-16 03:39:08 +00:00
|
|
|
config ESP_PHY_DEFAULT_INIT_IF_INVALID
|
2021-05-24 11:39:39 +00:00
|
|
|
bool "Reset default PHY init data if invalid"
|
|
|
|
default n
|
2021-06-16 03:39:08 +00:00
|
|
|
depends on ESP_PHY_INIT_DATA_IN_PARTITION
|
2021-05-24 11:39:39 +00:00
|
|
|
help
|
|
|
|
If enabled, PHY init data will be restored to default if
|
|
|
|
it cannot be verified successfully to avoid endless bootloops.
|
|
|
|
|
|
|
|
If unsure, choose 'n'.
|
|
|
|
|
2021-06-16 03:39:08 +00:00
|
|
|
if ESP_PHY_INIT_DATA_IN_PARTITION
|
|
|
|
config ESP_PHY_MULTIPLE_INIT_DATA_BIN
|
2021-05-24 11:39:39 +00:00
|
|
|
bool "Support multiple PHY init data bin"
|
2021-06-16 03:39:08 +00:00
|
|
|
depends on ESP_PHY_INIT_DATA_IN_PARTITION
|
2021-05-24 11:39:39 +00:00
|
|
|
default n
|
|
|
|
help
|
|
|
|
If enabled, the corresponding PHY init data type can be automatically switched
|
|
|
|
according to the country code. China's PHY init data bin is used by default.
|
|
|
|
Can be modified by country information in API esp_wifi_set_country().
|
|
|
|
The priority of switching the PHY init data type is:
|
|
|
|
1. Country configured by API esp_wifi_set_country()
|
|
|
|
and the parameter policy is WIFI_COUNTRY_POLICY_MANUAL.
|
|
|
|
2. Country notified by the connected AP.
|
|
|
|
3. Country configured by API esp_wifi_set_country()
|
|
|
|
and the parameter policy is WIFI_COUNTRY_POLICY_AUTO.
|
|
|
|
|
2021-06-16 03:39:08 +00:00
|
|
|
config ESP_PHY_MULTIPLE_INIT_DATA_BIN_EMBED
|
2021-06-04 08:45:45 +00:00
|
|
|
bool "Support embedded multiple phy init data bin to app bin"
|
2021-06-16 03:39:08 +00:00
|
|
|
depends on ESP_PHY_MULTIPLE_INIT_DATA_BIN
|
2021-06-04 08:45:45 +00:00
|
|
|
default n
|
|
|
|
help
|
|
|
|
If enabled, multiple phy init data bin will embedded into app bin
|
|
|
|
If not enabled, multiple phy init data bin will still leave alone, and need to be flashed by users.
|
|
|
|
|
2021-06-16 03:39:08 +00:00
|
|
|
config ESP_PHY_INIT_DATA_ERROR
|
2021-05-24 11:39:39 +00:00
|
|
|
bool "Terminate operation when PHY init data error"
|
2021-06-16 03:39:08 +00:00
|
|
|
depends on ESP_PHY_MULTIPLE_INIT_DATA_BIN
|
2021-05-24 11:39:39 +00:00
|
|
|
default n
|
|
|
|
help
|
|
|
|
If enabled, when an error occurs while the PHY init data is updated,
|
|
|
|
the program will terminate and restart.
|
|
|
|
If not enabled, the PHY init data will not be updated when an error occurs.
|
|
|
|
endif
|
|
|
|
|
2021-06-16 03:39:08 +00:00
|
|
|
config ESP_PHY_MAX_WIFI_TX_POWER
|
2021-05-24 11:39:39 +00:00
|
|
|
int "Max WiFi TX power (dBm)"
|
|
|
|
range 10 20
|
|
|
|
default 20
|
|
|
|
help
|
|
|
|
Set maximum transmit power for WiFi radio. Actual transmit power for high
|
|
|
|
data rates may be lower than this setting.
|
|
|
|
|
2021-06-16 03:39:08 +00:00
|
|
|
config ESP_PHY_MAX_TX_POWER
|
2021-05-24 11:39:39 +00:00
|
|
|
int
|
2021-06-16 03:39:08 +00:00
|
|
|
default ESP_PHY_MAX_WIFI_TX_POWER
|
2021-05-24 11:39:39 +00:00
|
|
|
|
2021-06-16 03:39:08 +00:00
|
|
|
config ESP_PHY_MAC_BB_PD
|
2021-05-24 11:39:39 +00:00
|
|
|
bool "Power down MAC and baseband of Wi-Fi and Bluetooth when PHY is disabled"
|
2022-03-14 03:33:01 +00:00
|
|
|
depends on SOC_PM_SUPPORT_MAC_BB_PD && FREERTOS_USE_TICKLESS_IDLE
|
2021-05-24 11:39:39 +00:00
|
|
|
default n
|
|
|
|
help
|
|
|
|
If enabled, the MAC and baseband of Wi-Fi and Bluetooth will be powered
|
|
|
|
down when PHY is disabled. Enabling this setting reduces power consumption
|
|
|
|
by a small amount but increases RAM use by approximately 4 KB(Wi-Fi only),
|
|
|
|
2 KB(Bluetooth only) or 5.3 KB(Wi-Fi + Bluetooth).
|
|
|
|
|
2021-06-16 03:39:08 +00:00
|
|
|
config ESP_PHY_REDUCE_TX_POWER
|
2021-05-24 11:39:39 +00:00
|
|
|
bool "Reduce PHY TX power when brownout reset"
|
2022-01-07 04:22:56 +00:00
|
|
|
depends on ESP_BROWNOUT_DET
|
2023-03-17 07:25:28 +00:00
|
|
|
default n
|
2021-05-24 11:39:39 +00:00
|
|
|
help
|
|
|
|
When brownout reset occurs, reduce PHY TX power to keep the code running.
|
|
|
|
|
2021-10-21 08:46:12 +00:00
|
|
|
config ESP_PHY_ENABLE_USB
|
|
|
|
bool "Enable USB when phy init"
|
2021-12-22 04:44:00 +00:00
|
|
|
depends on USB_OTG_SUPPORTED || ESP_CONSOLE_USB_SERIAL_JTAG || ESP_CONSOLE_SECONDARY_USB_SERIAL_JTAG
|
2021-11-08 11:55:26 +00:00
|
|
|
default y if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S3
|
|
|
|
default n
|
2021-10-21 08:46:12 +00:00
|
|
|
help
|
2021-11-08 11:55:26 +00:00
|
|
|
When using USB Serial/JTAG/OTG/CDC, PHY should enable USB, otherwise USB module
|
2021-12-22 04:44:00 +00:00
|
|
|
can not work properly. Notice: Enabling this configuration option will slightly impact wifi performance.
|
2021-10-21 08:46:12 +00:00
|
|
|
|
2023-01-16 09:48:32 +00:00
|
|
|
config ESP_PHY_ENABLE_CERT_TEST
|
2023-01-16 11:54:11 +00:00
|
|
|
bool "Enable RF certification test functions"
|
2023-01-16 09:48:32 +00:00
|
|
|
default n
|
2023-01-16 11:54:11 +00:00
|
|
|
depends on IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S3
|
2023-01-16 09:48:32 +00:00
|
|
|
help
|
2023-01-16 11:54:11 +00:00
|
|
|
If enabled, you can use RF certification test APIs.
|
2023-01-16 09:48:32 +00:00
|
|
|
|
2021-05-24 11:39:39 +00:00
|
|
|
endmenu # PHY
|