www.pudn.com > arm_uDisk.rar > F_system.h
#ifndef _F_SYSTEM_ #define _F_SYSTEM_ #define ERR_NONE 0x00 #define ERR_NO_EXTNAME 0x01 #define ERR_FILE_SEARCH 0x02 #define ERR_DIRENTRY 0x03 ////////////****** Error defined for file system from 0x80 ******/////////// #define F_ERR_INVALID_BOOT_SECTOR 0x80 #define F_ERR_UNSUPPORTED_PARTITION_TYPE 0x81 #define F_ERR_FILE_NOT_EXIST 0x82 #define F_ERR_OPENMODE 0x83 #define F_ERR_FILEREAD 0x84 #define F_ERR_FILE_EXIST 0x85 #define F_ERR_SEEK_POSTION 0x86 #define F_ERR_NO_ENOUGH_SPACE 0x87 #define F_ERR_DRIVER_READ_FAILURE 0x88 #define F_ERR_INVALID_MBR 0x89 ////////////****** Error defined for file system from 0x80 ******/////////// #define EOF_CLUSTER 0xA0 #define EOF_FATCHAIN 0xA1 //void DataPrint(u16 linenum, u16 totalnum, u8 *databuf); unsigned char Intnum2Char(unsigned char Intnum); char *strupr(char *string); char *strlwr(char *string); void memcpy(void *s1, const void *s2, int n); void memset(void *s, const char ch, int n); char *strcpy(char *dest, char *src); int strcmp(const char *s1, const char *s2); //void memcpy(void *s1, const void *s2, int n); //void memset(void *s, const char ch, int n); //int strlen(const char *s); #endif //_F_SYSTEM_