Kconfig.projbuild 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. menu "Performance Benchmark Example Configuration"
  2. config EXAMPLE_USE_MEGABYTES
  3. bool "Use megabytes instead of megabits"
  4. default y
  5. help
  6. If this config item is set, the IO speed will be displayed in megabytes per second
  7. instead of megabits per second.
  8. config EXAMPLE_TEST_SPIFLASH
  9. bool "Test internal SPI flash"
  10. default y
  11. help
  12. If this config item is set, the internal SPI flash will be tested.
  13. menu "Internal flash test config"
  14. depends on EXAMPLE_TEST_SPIFLASH
  15. config EXAMPLE_TEST_SPIFLASH_RAW
  16. bool "Test raw access"
  17. default y
  18. help
  19. If this config item is set, raw access will be tested.
  20. config EXAMPLE_TEST_SPIFLASH_FATFS
  21. bool "Test FATFS"
  22. default y
  23. help
  24. If this config item is set, FATFS will be tested.
  25. config EXAMPLE_TEST_SPIFLASH_SPIFFS
  26. bool "Test SPIFFS"
  27. default y
  28. help
  29. If this config item is set, SPIFFS will be tested.
  30. endmenu # "Internal flash test config"
  31. config EXAMPLE_TEST_SD_CARD
  32. bool "Test SD card"
  33. default y
  34. help
  35. If this config item is set, the SD card will be tested after it is mounted.
  36. choice EXAMPLE_SD_CARD_INTERFACE
  37. prompt "SD card interface"
  38. depends on EXAMPLE_TEST_SD_CARD
  39. default EXAMPLE_USE_SDMMC if SOC_SDMMC_HOST_SUPPORTED
  40. default EXAMPLE_USE_SDSPI if !SOC_SDMMC_HOST_SUPPORTED
  41. help
  42. Select the SD card interface.
  43. if SOC_SDMMC_HOST_SUPPORTED
  44. config EXAMPLE_USE_SDMMC
  45. bool "SDMMC"
  46. endif # SOC_SDMMC_HOST_SUPPORTED
  47. config EXAMPLE_USE_SDSPI
  48. bool "SDSPI"
  49. endchoice # EXAMPLE_SD_CARD_INTERFACE
  50. menu "SD card test config"
  51. depends on EXAMPLE_TEST_SD_CARD
  52. config EXAMPLE_TEST_SD_CARD_RAW
  53. bool "Test raw access"
  54. default y
  55. help
  56. If this config item is set, raw access will be tested.
  57. config EXAMPLE_TEST_SD_CARD_FATFS
  58. bool "Test FATFS"
  59. default y
  60. help
  61. If this config item is set, FATFS will be tested.
  62. choice EXAMPLE_SD_CARD_FREQ_PICKER
  63. prompt "SD card frequency"
  64. default EXAMPLE_SD_FREQ_HIGHSPEED if EXAMPLE_USE_SDMMC
  65. default EXAMPLE_SD_FREQ_DEFAULT if EXAMPLE_USE_SDSPI
  66. help
  67. Select the frequency of SD card interface.
  68. config EXAMPLE_SD_FREQ_PROBING
  69. bool "Probing frequency (400kHz)"
  70. config EXAMPLE_SD_FREQ_DEFAULT
  71. bool "Default frequency (20MHz)"
  72. config EXAMPLE_SD_FREQ_HIGHSPEED
  73. bool "High speed frequency (40MHz)"
  74. depends on EXAMPLE_USE_SDMMC
  75. config EXAMPLE_SD_FREQ_CUSTOM
  76. bool "Custom frequency"
  77. endchoice # EXAMPLE_SD_CARD_FREQ_PICKER
  78. config EXAMPLE_SD_FREQ_CUSTOM_VAL
  79. int "Custom frequency (kHz)"
  80. default 20000
  81. depends on EXAMPLE_SD_FREQ_CUSTOM
  82. help
  83. Enter the custom frequency of SD card interface.
  84. if EXAMPLE_USE_SDMMC
  85. choice EXAMPLE_SDMMC_BUS_WIDTH
  86. prompt "SD/MMC bus width"
  87. help
  88. Select the bus width of SD or MMC interface.
  89. Note that even if 1 line mode is used,
  90. D3 pin of the SD card must have a pull-up resistor connected.
  91. Otherwise the card may enter SPI mode,
  92. the only way to recover from which is to cycle power to the card.
  93. config EXAMPLE_SDMMC_BUS_WIDTH_4
  94. bool "4 lines (D0 - D3)"
  95. config EXAMPLE_SDMMC_BUS_WIDTH_1
  96. bool "1 line (D0)"
  97. endchoice # EXAMPLE_SDMMC_BUS_WIDTH
  98. if SOC_SDMMC_USE_GPIO_MATRIX
  99. config EXAMPLE_PIN_CMD
  100. int "CMD GPIO number"
  101. default 35 if IDF_TARGET_ESP32S3
  102. config EXAMPLE_PIN_CLK
  103. int "CLK GPIO number"
  104. default 36 if IDF_TARGET_ESP32S3
  105. config EXAMPLE_PIN_D0
  106. int "D0 GPIO number"
  107. default 37 if IDF_TARGET_ESP32S3
  108. if EXAMPLE_SDMMC_BUS_WIDTH_4
  109. config EXAMPLE_PIN_D1
  110. int "D1 GPIO number"
  111. default 38 if IDF_TARGET_ESP32S3
  112. config EXAMPLE_PIN_D2
  113. int "D2 GPIO number"
  114. default 33 if IDF_TARGET_ESP32S3
  115. config EXAMPLE_PIN_D3
  116. int "D3 GPIO number"
  117. default 34 if IDF_TARGET_ESP32S3
  118. endif # EXAMPLE_SDMMC_BUS_WIDTH_4
  119. endif # SOC_SDMMC_USE_GPIO_MATRIX
  120. endif # EXAMPLE_USE_SDMMC
  121. if EXAMPLE_USE_SDSPI
  122. config EXAMPLE_PIN_MOSI
  123. int "MOSI GPIO number"
  124. default 15 if IDF_TARGET_ESP32
  125. default 35 if IDF_TARGET_ESP32S2
  126. default 35 if IDF_TARGET_ESP32S3
  127. default 5 if IDF_TARGET_ESP32H2
  128. default 4 # C3 and others
  129. config EXAMPLE_PIN_MISO
  130. int "MISO GPIO number"
  131. default 2 if IDF_TARGET_ESP32
  132. default 37 if IDF_TARGET_ESP32S2
  133. default 37 if IDF_TARGET_ESP32S3
  134. default 0 if IDF_TARGET_ESP32H2
  135. default 6 # C3 and others
  136. config EXAMPLE_PIN_CLK
  137. int "CLK GPIO number"
  138. default 14 if IDF_TARGET_ESP32
  139. default 36 if IDF_TARGET_ESP32S2
  140. default 36 if IDF_TARGET_ESP32S3
  141. default 4 if IDF_TARGET_ESP32H2
  142. default 5 # C3 and others
  143. config EXAMPLE_PIN_CS
  144. int "CS GPIO number"
  145. default 13 if IDF_TARGET_ESP32
  146. default 34 if IDF_TARGET_ESP32S2
  147. default 34 if IDF_TARGET_ESP32S3
  148. default 1 # C3 and others
  149. endif # EXAMPLE_USE_SDSPI
  150. endmenu # "SD card test config"
  151. endmenu # "Performance Monitor Example Configuration"