KConfig 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. choice
  27. prompt "Support long file name"
  28. default RT_DFS_ELM_USE_LFN_0
  29. config RT_DFS_ELM_USE_LFN_0
  30. bool "0: LFN disable"
  31. config RT_DFS_ELM_USE_LFN_1
  32. bool "1: LFN with static LFN working buffer"
  33. config RT_DFS_ELM_USE_LFN_2
  34. bool "2: LFN with dynamic LFN working buffer on the stack"
  35. config RT_DFS_ELM_USE_LFN_3
  36. bool "3: LFN with dynamic LFN working buffer on the heap"
  37. endchoice
  38. config RT_DFS_ELM_USE_LFN
  39. int
  40. default 0 if RT_DFS_ELM_USE_LFN_0
  41. default 1 if RT_DFS_ELM_USE_LFN_1
  42. default 2 if RT_DFS_ELM_USE_LFN_2
  43. default 3 if RT_DFS_ELM_USE_LFN_3
  44. config RT_DFS_ELM_MAX_LFN
  45. int "Maximal size of file name length"
  46. default 256
  47. config RT_DFS_ELM_DRIVES
  48. int "Number of volumes (logical drives) to be used."
  49. default 2
  50. config RT_DFS_ELM_MAX_SECTOR_SIZE
  51. int "Maximum sector size to be handled."
  52. default 512
  53. help
  54. if you use some spi nor flash for fatfs, please set this the erase sector size, for example 4096.
  55. config RT_DFS_ELM_USE_ERASE
  56. bool "Enable sector erase feature"
  57. default n
  58. config RT_DFS_ELM_REENTRANT
  59. bool "Enable the reentrancy (thread safe) of the FatFs module"
  60. default y
  61. endif
  62. config RT_USING_DFS_DEVFS
  63. bool "Using devfs for device objects"
  64. default y
  65. config RT_USING_DFS_NET
  66. bool "Enable BSD socket operated by file system API"
  67. default n
  68. help
  69. Let BSD socket operated by file system API, such as read/write and involveed in select/poll POSIX APIs.
  70. config RT_USING_DFS_NFS
  71. bool "Using NFS v3 client file system"
  72. default n
  73. if RT_USING_DFS_NFS
  74. config RT_NFS_HOST_EXPORT
  75. string "NFSv3 host export"
  76. default "192.168.1.5:/"
  77. endif
  78. endif
  79. endmenu