KConfig 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. menu "Device virtual file system"
  2. config RT_USING_DFS
  3. bool "Using device virtual file system"
  4. default y
  5. help
  6. The device file system is a light weight virtual file system.
  7. if RT_USING_DFS
  8. config DFS_USING_WORKDIR
  9. bool "Using working directory"
  10. default y
  11. config DFS_FILESYSTEMS_MAX
  12. int "The maximal number of mounted file system"
  13. default 2
  14. config DFS_FD_MAX
  15. int "The maximal number of opened files"
  16. default 4
  17. config RT_USING_DFS_ELMFAT
  18. bool "Enable elm-chan fatfs"
  19. default y
  20. help
  21. FatFs is a generic FAT/exFAT file system module for small embedded systems.
  22. if RT_USING_DFS_ELMFAT
  23. config RT_DFS_ELM_CODE_PAGE
  24. int "OEM code page"
  25. default 437
  26. config RT_DFS_ELM_WORD_ACCESS
  27. bool "Using RT_DFS_ELM_WORD_ACCESS"
  28. default y
  29. choice
  30. prompt "Support long file name"
  31. default RT_DFS_ELM_USE_LFN_0
  32. config RT_DFS_ELM_USE_LFN_0
  33. bool "0: LFN disable"
  34. config RT_DFS_ELM_USE_LFN_1
  35. bool "1: LFN with static LFN working buffer"
  36. config RT_DFS_ELM_USE_LFN_2
  37. bool "2: LFN with dynamic LFN working buffer on the stack"
  38. config RT_DFS_ELM_USE_LFN_3
  39. bool "3: LFN with dynamic LFN working buffer on the heap"
  40. endchoice
  41. config RT_DFS_ELM_USE_LFN
  42. int
  43. default 0 if RT_DFS_ELM_USE_LFN_0
  44. default 1 if RT_DFS_ELM_USE_LFN_1
  45. default 2 if RT_DFS_ELM_USE_LFN_2
  46. default 3 if RT_DFS_ELM_USE_LFN_3
  47. config RT_DFS_ELM_MAX_LFN
  48. int "Maximal size of file name length"
  49. default 256
  50. config RT_DFS_ELM_DRIVES
  51. int "Number of volumes (logical drives) to be used."
  52. default 2
  53. config RT_DFS_ELM_MAX_SECTOR_SIZE
  54. int "Maximum sector size to be handled."
  55. default 512
  56. help
  57. if you use some spi nor flash for fatfs, please set this the erase sector size, for example 4096.
  58. config RT_DFS_ELM_USE_ERASE
  59. bool "Enable sector erase feature"
  60. default n
  61. config RT_DFS_ELM_REENTRANT
  62. bool "Enable the reentrancy (thread safe) of the FatFs module"
  63. default y
  64. endif
  65. config RT_USING_DFS_DEVFS
  66. bool "Using devfs for device objects"
  67. default y
  68. config RT_USING_DFS_NET
  69. bool "Enable BSD socket operated by file system API"
  70. default n
  71. help
  72. Let BSD socket operated by file system API, such as read/write and involveed in select/poll POSIX APIs.
  73. config RT_USING_DFS_NFS
  74. bool "Using NFS v3 client file system"
  75. default n
  76. if RT_USING_DFS_NFS
  77. config RT_NFS_HOST_EXPORT
  78. string "NFSv3 host export"
  79. default "192.168.1.5:/"
  80. endif
  81. endif
  82. endmenu