Kconfig.projbuild 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. menu "Example Configuration"
  2. orsource "$IDF_PATH/examples/common_components/env_caps/$IDF_TARGET/Kconfig.env_caps"
  3. config SNIFFER_STORE_HISTORY
  4. bool "Store command history into flash"
  5. default y
  6. help
  7. Linenoise line editing library provides functions to save and load command history.
  8. If this option is enabled, initalizes a FAT filesystem and uses it to store command history.
  9. choice SNIFFER_PCAP_DESTINATION
  10. prompt "Select destination to store pcap file"
  11. default SNIFFER_PCAP_DESTINATION_SD
  12. help
  13. Select where to store the pcap file.
  14. Currently support storing files to SD card or to host via JTAG interface with 'Trace memory' enabled.
  15. config SNIFFER_PCAP_DESTINATION_SD
  16. bool "SD Card"
  17. help
  18. Store pcap file to SD card.
  19. config SNIFFER_PCAP_DESTINATION_JTAG
  20. bool "JTAG (App Trace)"
  21. depends on APPTRACE_DEST_TRAX
  22. help
  23. Store pcap file to host via JTAG interface.
  24. config SNIFFER_PCAP_DESTINATION_MEMORY
  25. bool "Memory"
  26. help
  27. Store pcap file to memory.
  28. endchoice
  29. if SNIFFER_PCAP_DESTINATION_SD
  30. choice SNIFFER_SD_MODE
  31. prompt "Select SD card work mode"
  32. default SNIFFER_SD_SDMMC_MODE
  33. help
  34. Select whitch peripheral SD card should use.
  35. config SNIFFER_SD_SDMMC_MODE
  36. bool "SDMMC"
  37. depends on IDF_TARGET_ESP32 || IDF_TARGET_ESP32S3
  38. help
  39. Use SDMMC mode (Not support on esp32c3).
  40. config SNIFFER_SD_SPI_MODE
  41. bool "SPI"
  42. help
  43. Use SPI mode.
  44. endchoice
  45. config SNIFFER_MOUNT_POINT
  46. string "SD card mount point in the filesystem"
  47. default "/sdcard"
  48. help
  49. Specify the mount point in the VFS (Virtual File System) for SD card.
  50. config SNIFFER_PCAP_FILE_NAME_MAX_LEN
  51. int "Max name length of pcap file"
  52. default 32
  53. help
  54. Specify maximum name length of pcap file.
  55. endif
  56. if SNIFFER_PCAP_DESTINATION_MEMORY
  57. config SNIFFER_PCAP_MEMORY_SIZE
  58. int "Memory size of the '.pcap' file in memory"
  59. default 4096
  60. help
  61. Max memory size to storage packet in memory.
  62. endif
  63. config SNIFFER_WORK_QUEUE_LEN
  64. int "Length of sniffer work queue"
  65. default 128
  66. help
  67. The sniffer callback function should not do heavy work, so we put all heavy IO operation to another task.
  68. The task gets some basic info of sniffer packet via queue.
  69. Here you should specify the length of queue.
  70. config SNIFFER_TASK_STACK_SIZE
  71. int "Stack size of sniffer task"
  72. default 4096
  73. help
  74. Stack size of sniffer task.
  75. config SNIFFER_TASK_PRIORITY
  76. int "Priority of sniffer task"
  77. default 2
  78. help
  79. Priority of sniffer task.
  80. endmenu