Kconfig.projbuild 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. menu "HTTP file_serving example menu"
  2. config EXAMPLE_MOUNT_SD_CARD
  3. bool "Use SD card for file storage"
  4. default n
  5. help
  6. If this config item is set, the file you upload to server can be chosen to save in the SDcard.
  7. config EXAMPLE_FORMAT_IF_MOUNT_SDCARD_FAILED
  8. bool "Format the card if mount failed"
  9. default n
  10. depends on EXAMPLE_MOUNT_SD_CARD
  11. help
  12. If this config item is set, the card will be formatted if mount has failed.
  13. config EXAMPLE_USE_SDMMC_HOST
  14. bool "Use SDMMC host"
  15. default y
  16. depends on EXAMPLE_MOUNT_SD_CARD && SOC_SDMMC_HOST_SUPPORTED
  17. help
  18. If this config item is set, SDMMC is used to mount the SDcard.
  19. Otherwise, will use SPI host to access and mount the SDcard.
  20. menu "SD card pin configuration (SPI)"
  21. depends on EXAMPLE_MOUNT_SD_CARD && !EXAMPLE_USE_SDMMC_HOST
  22. config EXAMPLE_PIN_MOSI
  23. int "MOSI GPIO number"
  24. default 15 if IDF_TARGET_ESP32
  25. default 35 if IDF_TARGET_ESP32S2
  26. default 35 if IDF_TARGET_ESP32S3
  27. default 4 # C3 and others
  28. config EXAMPLE_PIN_MISO
  29. int "MISO GPIO number"
  30. default 2 if IDF_TARGET_ESP32
  31. default 37 if IDF_TARGET_ESP32S2
  32. default 37 if IDF_TARGET_ESP32S3
  33. default 6 # C3 and others
  34. config EXAMPLE_PIN_CLK
  35. int "CLK GPIO number"
  36. default 14 if IDF_TARGET_ESP32
  37. default 36 if IDF_TARGET_ESP32S2
  38. default 36 if IDF_TARGET_ESP32S3
  39. default 5 # C3 and others
  40. config EXAMPLE_PIN_CS
  41. int "CS GPIO number"
  42. default 13 if IDF_TARGET_ESP32
  43. default 34 if IDF_TARGET_ESP32S2
  44. default 34 if IDF_TARGET_ESP32S3
  45. default 1 # C3 and others
  46. endmenu
  47. menu "SD card pin configuration (SDMMC)"
  48. depends on EXAMPLE_USE_SDMMC_HOST && SOC_SDMMC_USE_GPIO_MATRIX
  49. config EXAMPLE_PIN_CMD
  50. int "CMD GPIO number"
  51. default 35 if IDF_TARGET_ESP32S3
  52. default 1
  53. config EXAMPLE_PIN_CLK
  54. int "CLK GPIO number"
  55. default 36 if IDF_TARGET_ESP32S3
  56. default 2
  57. config EXAMPLE_PIN_D0
  58. int "D0 GPIO number"
  59. default 37 if IDF_TARGET_ESP32S3
  60. default 3
  61. config EXAMPLE_PIN_D1
  62. int "D1 GPIO number"
  63. default 38 if IDF_TARGET_ESP32S3
  64. default 4
  65. config EXAMPLE_PIN_D2
  66. int "D2 GPIO number"
  67. default 33 if IDF_TARGET_ESP32S3
  68. default 5
  69. config EXAMPLE_PIN_D3
  70. int "D3 GPIO number"
  71. default 34 if IDF_TARGET_ESP32S3
  72. default 6
  73. endmenu
  74. config EXAMPLE_HTTPD_CONN_CLOSE_HEADER
  75. bool "Send connection close header from request handlers"
  76. default y
  77. help
  78. If this config item is set, Connection: close header will be set in handlers.
  79. This closes HTTP connection and frees the server socket instantly.
  80. endmenu