⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 f_system.h

📁 S3C2410 USB Mass storage 源码.
💻 H
字号:
#ifndef _F_SYSTEM_
#define _F_SYSTEM_

#include "2410addr.h"
#include "2410lib.h"
#include "f_type.h"
//#include "mdt_types.h"
//#include "mdt_system.h"

#define ERR_NONE			0x00
#define ERR_NO_EXTNAME		0x01
#define ERR_FILE_SEARCH		0x02
#define ERR_DIRENTRY		0x03
#define _READ_SD_

////////////****** 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_FILECREATE						0x88
#define F_ERR_DRIVER_READ_FAILURE				0x89
#define F_ERR_INVALID_MBR						0x90


////////////****** 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 INT_Char(u32 IntNum, char *str);

//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_

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -