#include "ff.h"
#include "diskio.h"
/* 扩展字符范围 */
#define _DF1S 0x81
#define _DF1E 0xFE
#define _DS1S 0x40
#define _DS1E 0x7E
#define _DS2S 0x80
#define _DS2E 0xFE
/* 字符类型相关宏定义 */
#define IsUpper(c) (((c)>='A')&&((c)<='Z'))
#define IsLower(c) (((c)>='a')&&((c)<='z'))
#define IsDigit(c) (((c)>='0')&&((c)<='9'))
/* 是否是扩展字符 */
#define IsDBCS1(c) ((BYTE)(c) >= _DF1S && (BYTE)(c) <= _DF1E)
#define IsDBCS2(c) (((BYTE)(c) >= _DS1S && (BYTE)(c) <= _DS1E) || ((BYTE)(c) >= _DS2S && (BYTE)(c) <= _DS2E))
/* 文件属性位 */
#define AM_VOL 0x08 /* 卷标 */
#define AM_LFN 0x0F /* 长文件名 */
#define AM_MASK 0x3F /* 属性有效位掩码 */
/* Additional file access control and file status flags for internal use */
#define FA_SEEKEND 0x20 /* 打开文件的时候将偏移量指向文件结果 */
#define FA_MODIFIED 0x40 /* 文件已经被修
05-31
1万+
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交