KConfig 2.5 KB
Newer Older
B
bernard 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
menu "Device virtual file system"

config RT_USING_DFS
    bool "Using device virtual file system"
    default y
    help
        The device file system is a light weight virtual file system.

if RT_USING_DFS
    config DFS_USING_WORKDIR
        bool "Using working directory"
        default y

    config DFS_FILESYSTEMS_MAX
        int "The maximal number of mounted file system"
        default 2
    
    config DFS_FD_MAX
        int "The maximal number of opened files"
        default 4
    
    config RT_USING_DFS_ELMFAT
        bool "Enable elm-chan fatfs"
        default y
        help
            FatFs is a generic FAT/exFAT file system module for small embedded systems.
    if RT_USING_DFS_ELMFAT
        config RT_DFS_ELM_CODE_PAGE
            int "OEM code page"
            default 437
        
32 33 34 35 36 37 38 39 40 41
        config RT_DFS_ELM_USE_LFN
            int "Support long file name"
            default 0
            range 0 3
            help
                0: LFN disable
                1: LFN with static LFN working buffer
                2: LFN with dynamic LFN working buffer on the stack
                3: LFN with dynamic LFN working buffer on the heap
        
B
bernard 已提交
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
        config RT_DFS_ELM_MAX_LFN
            int "Maximal size of file name length"
            default 256
        
        config RT_DFS_ELM_DRIVES
            int "Number of volumes (logical drives) to be used."
            default 2
        
        config RT_DFS_ELM_MAX_SECTOR_SIZE
            int "Maximum sector size to be handled."
            default 512
            help
                if you use some spi nor flash for fatfs, please set this the erase sector size, for example 4096.

        config RT_DFS_ELM_USE_ERASE
            bool "Enable sector erase feature"
            default n
        
        config RT_DFS_ELM_REENTRANT
            bool "Enable the reentrancy (thread safe) of the FatFs module"
            default y
    endif

    config RT_USING_DFS_DEVFS
        bool "Using devfs for device objects"
        default y
    
    config RT_USING_DFS_NET
        bool "Enable BSD socket operated by file system API"
        default n
        help
            Let BSD socket operated by file system API, such as read/write and involveed in select/poll POSIX APIs.

    config RT_USING_DFS_NFS
        bool "Using NFS v3 client file system"
        default n

    if RT_USING_DFS_NFS
        config RT_NFS_HOST_EXPORT
            string "NFSv3 host export"
            default "192.168.1.5:/"
    endif

endif

endmenu