define RT_DFS_ELM_CODE_PAGE in the rtconfig.h

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2296 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
dzzxzz@gmail.com 2012-09-20 07:10:57 +00:00
parent f7e6104397
commit 8138af2826
2 changed files with 12 additions and 4 deletions

View File

@ -94,10 +94,14 @@
/* using DFS support */ /* using DFS support */
#define RT_USING_DFS #define RT_USING_DFS
#define RT_USING_DFS_ELMFAT #define RT_USING_DFS_ELMFAT
/* use long file name feature */ /* use long file name feature */
#define RT_DFS_ELM_USE_LFN 2 #define RT_DFS_ELM_USE_LFN 2
#define RT_DFS_ELM_REENTRANT #define RT_DFS_ELM_REENTRANT
/* the max number of file length */ /* define OEM code page */
#define RT_DFS_ELM_CODE_PAGE 936
/* Using OEM code page file */
// #define RT_DFS_ELM_CODE_PAGE_FILE
/* the max number of file length */
#define RT_DFS_ELM_MAX_LFN 128 #define RT_DFS_ELM_MAX_LFN 128
/* #define RT_USING_DFS_YAFFS2 */ /* #define RT_USING_DFS_YAFFS2 */
#define RT_USING_DFS_DEVFS #define RT_USING_DFS_DEVFS
@ -109,9 +113,9 @@
/* the max number of mounted filesystem */ /* the max number of mounted filesystem */
#define DFS_FILESYSTEMS_MAX 4 #define DFS_FILESYSTEMS_MAX 4
/* the max number of opened files */ /* the max number of opened files */
#define DFS_FD_MAX 16 #define DFS_FD_MAX 16
/* the max number of cached sector */ /* the max number of cached sector */
#define DFS_CACHE_MAX_NUM 4 #define DFS_CACHE_MAX_NUM 4
/* Enable freemodbus protocol stack*/ /* Enable freemodbus protocol stack*/

View File

@ -106,6 +106,10 @@
// <item description="LFN1">2</item> // <item description="LFN1">2</item>
// </integer> // </integer>
#define RT_DFS_ELM_USE_LFN 1 #define RT_DFS_ELM_USE_LFN 1
// <integer name="RT_DFS_ELM_CODE_PAGE" description="OEM code page" default="936">
#define RT_DFS_ELM_CODE_PAGE 936
// <bool name="RT_DFS_ELM_CODE_PAGE_FILE" description="Using OEM code page file" default="false" />
// #define RT_DFS_ELM_CODE_PAGE_FILE
// <integer name="RT_DFS_ELM_MAX_LFN" description="Maximal size of file name length" default="256" /> // <integer name="RT_DFS_ELM_MAX_LFN" description="Maximal size of file name length" default="256" />
#define RT_DFS_ELM_MAX_LFN 256 #define RT_DFS_ELM_MAX_LFN 256
// <bool name="RT_USING_DFS_YAFFS2" description="Using YAFFS2" default="false" /> // <bool name="RT_USING_DFS_YAFFS2" description="Using YAFFS2" default="false" />