Kconfig.projbuild 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. menu "Example Configuration"
  2. choice EXAMPLE_MAX_CPU_FREQ
  3. prompt "Maximum CPU frequency"
  4. default EXAMPLE_MAX_CPU_FREQ_160 if !IDF_TARGET_ESP32H2 && !IDF_TARGET_ESP32C2
  5. default EXAMPLE_MAX_CPU_FREQ_96 if IDF_TARGET_ESP32H2
  6. default EXAMPLE_MAX_CPU_FREQ_120 if IDF_TARGET_ESP32C2
  7. depends on PM_ENABLE
  8. help
  9. Maximum CPU frequency to use for dynamic frequency scaling.
  10. config EXAMPLE_MAX_CPU_FREQ_80
  11. bool "80 MHz"
  12. config EXAMPLE_MAX_CPU_FREQ_96
  13. bool "96 MHz"
  14. depends on IDF_TARGET_ESP32H2
  15. config EXAMPLE_MAX_CPU_FREQ_160
  16. bool "160 MHz"
  17. config EXAMPLE_MAX_CPU_FREQ_120
  18. bool "120 MHz"
  19. depends on IDF_TARGET_ESP32C2
  20. config EXAMPLE_MAX_CPU_FREQ_240
  21. bool "240 MHz"
  22. depends on IDF_TARGET_ESP32 || IDF_TARGET_ESP32S3
  23. endchoice
  24. config EXAMPLE_MAX_CPU_FREQ_MHZ
  25. int
  26. default 80 if EXAMPLE_MAX_CPU_FREQ_80
  27. default 96 if EXAMPLE_MAX_CPU_FREQ_96
  28. default 120 if EXAMPLE_MAX_CPU_FREQ_120
  29. default 160 if EXAMPLE_MAX_CPU_FREQ_160
  30. default 240 if EXAMPLE_MAX_CPU_FREQ_240
  31. choice EXAMPLE_MIN_CPU_FREQ
  32. prompt "Minimum CPU frequency"
  33. default EXAMPLE_MIN_CPU_FREQ_40M if !IDF_TARGET_ESP32H2 && !IDF_TARGET_ESP32C2
  34. default EXAMPLE_MIN_CPU_FREQ_32M if IDF_TARGET_ESP32H2
  35. default EXAMPLE_MIN_CPU_FREQ_26M if IDF_TARGET_ESP32C2
  36. depends on PM_ENABLE
  37. help
  38. Minimum CPU frequency to use for dynamic frequency scaling.
  39. Should be set to XTAL frequency or XTAL frequency divided by integer.
  40. config EXAMPLE_MIN_CPU_FREQ_80M
  41. bool "80 MHz"
  42. depends on !(IDF_TARGET_ESP32 && EXAMPLE_MAX_CPU_FREQ_240)
  43. help
  44. ESP32 does not support switching between 240M and 80M.The root cause
  45. is that when switching between 240M and 80M, we need to disable
  46. BBPLL and then re-enable it with a different frequency.Since the
  47. Bluetooth baseband works from PLL frequency, it will temporarily
  48. lose its 80 MHz clock, while the BBPLL is disabled.
  49. config EXAMPLE_MIN_CPU_FREQ_40M
  50. bool "40 MHz (use with 40MHz XTAL)"
  51. depends on XTAL_FREQ_40 || XTAL_FREQ_AUTO
  52. config EXAMPLE_MIN_CPU_FREQ_32M
  53. bool "32 MHz (use with 32MHz XTAL)"
  54. depends on IDF_TARGET_ESP32H2
  55. depends on XTAL_FREQ_32 || XTAL_FREQ_AUTO
  56. config EXAMPLE_MIN_CPU_FREQ_26M
  57. bool "26 MHz (use with 26MHz XTAL)"
  58. depends on IDF_TARGET_ESP32C2
  59. depends on XTAL_FREQ_26 || XTAL_FREQ_AUTO
  60. config EXAMPLE_MIN_CPU_FREQ_20M
  61. bool "20 MHz (use with 40MHz XTAL)"
  62. depends on XTAL_FREQ_40 || XTAL_FREQ_AUTO
  63. config EXAMPLE_MIN_CPU_FREQ_10M
  64. bool "10 MHz (use with 40MHz XTAL)"
  65. depends on XTAL_FREQ_40 || XTAL_FREQ_AUTO
  66. endchoice
  67. config EXAMPLE_MIN_CPU_FREQ_MHZ
  68. int
  69. default 80 if EXAMPLE_MIN_CPU_FREQ_80M
  70. default 40 if EXAMPLE_MIN_CPU_FREQ_40M
  71. default 32 if EXAMPLE_MIN_CPU_FREQ_32M
  72. default 26 if EXAMPLE_MIN_CPU_FREQ_26M
  73. default 20 if EXAMPLE_MIN_CPU_FREQ_20M
  74. default 10 if EXAMPLE_MIN_CPU_FREQ_10M
  75. choice EXAMPLE_USE_IO_TYPE
  76. prompt "I/O Capability"
  77. default BLE_SM_IO_CAP_NO_IO
  78. help
  79. I/O capability of device.
  80. config BLE_SM_IO_CAP_DISP_ONLY
  81. bool "DISPLAY ONLY"
  82. config BLE_SM_IO_CAP_DISP_YES_NO
  83. bool "DISPLAY YESNO"
  84. config BLE_SM_IO_CAP_KEYBOARD_ONLY
  85. bool "KEYBOARD ONLY"
  86. config BLE_SM_IO_CAP_NO_IO
  87. bool "Just works"
  88. config BLE_SM_IO_CAP_KEYBOARD_DISP
  89. bool "Both KEYBOARD & DISPLAY"
  90. endchoice
  91. config EXAMPLE_IO_TYPE
  92. int
  93. default 0 if BLE_SM_IO_CAP_DISP_ONLY
  94. default 1 if BLE_SM_IO_CAP_DISP_YES_NO
  95. default 2 if BLE_SM_IO_CAP_KEYBOARD_ONLY
  96. default 3 if BLE_SM_IO_CAP_NO_IO
  97. default 4 if BLE_SM_IO_CAP_KEYBOARD_DISP
  98. config EXAMPLE_BONDING
  99. bool
  100. default n
  101. prompt "Use Bonding"
  102. help
  103. Use this option to enable/disable bonding.
  104. config EXAMPLE_MITM
  105. bool
  106. default n
  107. prompt "MITM security"
  108. help
  109. Use this option to enable/disable MITM security.
  110. config EXAMPLE_USE_SC
  111. bool
  112. depends on BT_NIMBLE_SM_SC
  113. default n
  114. prompt "Use Secure Connection feature"
  115. help
  116. Use this option to enable/disable Security Manager Secure Connection 4.2 feature.
  117. config EXAMPLE_EXTENDED_ADV
  118. bool
  119. depends on SOC_BLE_50_SUPPORTED
  120. default y if SOC_ESP_NIMBLE_CONTROLLER
  121. select BT_NIMBLE_EXT_ADV
  122. prompt "Enable Extended Adv"
  123. help
  124. Use this option to enable extended advertising in the example.
  125. If this option is disabled, ensure config BT_NIMBLE_EXT_ADV is
  126. also disabled from Nimble stack menuconfig
  127. config EXAMPLE_RANDOM_ADDR
  128. bool
  129. prompt "Advertise RANDOM Address"
  130. help
  131. Use this option to advertise a random address instead of public address
  132. config EXAMPLE_ENCRYPTION
  133. bool
  134. prompt "Enable Link Encryption"
  135. help
  136. This adds Encrypted Read and Write permissions in the custom GATT server.
  137. config EXAMPLE_RESOLVE_PEER_ADDR
  138. bool
  139. prompt "Enable resolving peer address"
  140. help
  141. Use this option to enable resolving peer's address.
  142. endmenu