Kconfig 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. menu "PHY"
  2. config ESP_PHY_CALIBRATION_AND_DATA_STORAGE
  3. bool "Store phy calibration data in NVS"
  4. default y
  5. help
  6. If this option is enabled, NVS will be initialized and calibration data will be loaded from there.
  7. PHY calibration will be skipped on deep sleep wakeup. If calibration data is not found, full calibration
  8. will be performed and stored in NVS. Normally, only partial calibration will be performed.
  9. If this option is disabled, full calibration will be performed.
  10. If it's easy that your board calibrate bad data, choose 'n'.
  11. Two cases for example, you should choose 'n':
  12. 1.If your board is easy to be booted up with antenna disconnected.
  13. 2.Because of your board design, each time when you do calibration, the result are too unstable.
  14. If unsure, choose 'y'.
  15. menuconfig ESP_PHY_INIT_DATA_IN_PARTITION
  16. bool "Use a partition to store PHY init data"
  17. default n
  18. help
  19. If enabled, PHY init data will be loaded from a partition.
  20. When using a custom partition table, make sure that PHY data
  21. partition is included (type: 'data', subtype: 'phy').
  22. With default partition tables, this is done automatically.
  23. If PHY init data is stored in a partition, it has to be flashed there,
  24. otherwise runtime error will occur.
  25. If this option is not enabled, PHY init data will be embedded
  26. into the application binary.
  27. If unsure, choose 'n'.
  28. config ESP_PHY_DEFAULT_INIT_IF_INVALID
  29. bool "Reset default PHY init data if invalid"
  30. default n
  31. depends on ESP_PHY_INIT_DATA_IN_PARTITION
  32. help
  33. If enabled, PHY init data will be restored to default if
  34. it cannot be verified successfully to avoid endless bootloops.
  35. If unsure, choose 'n'.
  36. if ESP_PHY_INIT_DATA_IN_PARTITION
  37. config ESP_PHY_MULTIPLE_INIT_DATA_BIN
  38. bool "Support multiple PHY init data bin"
  39. depends on ESP_PHY_INIT_DATA_IN_PARTITION
  40. default n
  41. help
  42. If enabled, the corresponding PHY init data type can be automatically switched
  43. according to the country code. China's PHY init data bin is used by default.
  44. Can be modified by country information in API esp_wifi_set_country().
  45. The priority of switching the PHY init data type is:
  46. 1. Country configured by API esp_wifi_set_country()
  47. and the parameter policy is WIFI_COUNTRY_POLICY_MANUAL.
  48. 2. Country notified by the connected AP.
  49. 3. Country configured by API esp_wifi_set_country()
  50. and the parameter policy is WIFI_COUNTRY_POLICY_AUTO.
  51. config ESP_PHY_MULTIPLE_INIT_DATA_BIN_EMBED
  52. bool "Support embedded multiple phy init data bin to app bin"
  53. depends on ESP_PHY_MULTIPLE_INIT_DATA_BIN
  54. default n
  55. help
  56. If enabled, multiple phy init data bin will embedded into app bin
  57. If not enabled, multiple phy init data bin will still leave alone, and need to be flashed by users.
  58. config ESP_PHY_INIT_DATA_ERROR
  59. bool "Terminate operation when PHY init data error"
  60. depends on ESP_PHY_MULTIPLE_INIT_DATA_BIN
  61. default n
  62. help
  63. If enabled, when an error occurs while the PHY init data is updated,
  64. the program will terminate and restart.
  65. If not enabled, the PHY init data will not be updated when an error occurs.
  66. endif
  67. config ESP_PHY_MAX_WIFI_TX_POWER
  68. int "Max WiFi TX power (dBm)"
  69. range 10 20
  70. default 20
  71. help
  72. Set maximum transmit power for WiFi radio. Actual transmit power for high
  73. data rates may be lower than this setting.
  74. config ESP_PHY_MAX_TX_POWER
  75. int
  76. default ESP_PHY_MAX_WIFI_TX_POWER
  77. config ESP_PHY_MAC_BB_PD
  78. bool "Power down MAC and baseband of Wi-Fi and Bluetooth when PHY is disabled"
  79. depends on ((IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S3) && FREERTOS_USE_TICKLESS_IDLE)
  80. default n
  81. help
  82. If enabled, the MAC and baseband of Wi-Fi and Bluetooth will be powered
  83. down when PHY is disabled. Enabling this setting reduces power consumption
  84. by a small amount but increases RAM use by approximately 4 KB(Wi-Fi only),
  85. 2 KB(Bluetooth only) or 5.3 KB(Wi-Fi + Bluetooth).
  86. config ESP_PHY_REDUCE_TX_POWER
  87. bool "Reduce PHY TX power when brownout reset"
  88. depends on ESP32_BROWNOUT_DET
  89. default y
  90. help
  91. When brownout reset occurs, reduce PHY TX power to keep the code running.
  92. endmenu # PHY