diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-07-12 16:36:45 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-07-12 16:36:45 +0000 |
commit | ec5c538c2d9b423c79387a09c60457e918e22703 (patch) | |
tree | 986a5643cf00efbea8f795c17cc3466982031247 /nuttx/fs/fat | |
parent | e6f4d56ce41c0e258632e9525b2e62dd17fe8273 (diff) | |
download | px4-nuttx-ec5c538c2d9b423c79387a09c60457e918e22703.tar.gz px4-nuttx-ec5c538c2d9b423c79387a09c60457e918e22703.tar.bz2 px4-nuttx-ec5c538c2d9b423c79387a09c60457e918e22703.zip |
Add wchar_t type; Add LPC17xx CAN driver from Lzyy; Fix serial bug reported by Lzyy
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3775 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/fs/fat')
-rw-r--r-- | nuttx/fs/fat/fs_fat32.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/nuttx/fs/fat/fs_fat32.h b/nuttx/fs/fat/fs_fat32.h index ca5915098..15bb18283 100644 --- a/nuttx/fs/fat/fs_fat32.h +++ b/nuttx/fs/fat/fs_fat32.h @@ -148,8 +148,8 @@ #define PART_SIZE 12 /* 4@12: Partition size (in sectors) */ /**************************************************************************** - * Each FAT directory entry is 32-bytes long. The following define offsets - * relative to the beginning of a directory entry. + * Each FAT "short" 8.3 file name directory entry is 32-bytes long. The + * following define offsets relative to the beginning of a directory entry. */ #define DIR_NAME 0 /* 11@ 0: NAME: 8 bytes + 3 byte extension */ @@ -193,6 +193,15 @@ #define CLUS_NDXMASK(f) ((f)->fs_fatsecperclus - 1) /**************************************************************************** +/* The FAT "long" file name directory entry */ + +/* Sizes and limits */ + +#define LDIR_MAXCHARS 255 /* Max unicode characters */ +#define LDIR_MAXLFNCHARS 13 /* Max unicode characters in one LFN */ +#define LDIR_MAXLFNS 20 /* Max number of LFNs */ + +/**************************************************************************** * File system types */ #define FSTYPE_FAT12 0 |