www.pudn.com > OS.rar > FileSystemExtFunc.c, change:2006-12-11,size:3855b


 
/*-------------------------------------------------* 
* Function		: 
* Usage         : 
* Version		: 
* Return Code   : 
* Revision      : 
* Remark        : 
*--------------------------------------------------*/ 
 
#include ".\System\GPL162002_Far\include\system_head.h" 
#include ".\Driver\GPL162002_Far\Include\Driver_head.h" 
#include ".\Component\GPL162002_Far\Include\Component_head.h" 
 
//#define	UNITAB_ADDR_START		0x8fc00 
//#define	SEEK_SPEEDUP_ADDR_START	0x8ec00 
#define	MAX_OPEN_FILE_NUM		8 
 
extern unsigned int ASCIIToHEX(unsigned char Date); 
extern unsigned int ASCIITwoWordToHEX(unsigned char * DateBuf); 
 
/****************************************************************/ 
/*																*/ 
/*			       getdate.c									*/ 
/*																*/ 
/*		  user write this file to assign the file system date   */ 
/*																*/ 
/****************************************************************/ 
void UserGetDate(struct s_dosdate *dd) 
{ 
} 
 
/****************************************************************/ 
/*																*/ 
/*			       gettime.c									*/ 
/*																*/ 
/*		  user write this file to assign the file system time   */ 
/*																*/ 
/****************************************************************/ 
void UserGetTime(struct s_dostime *dt) 
{ 
} 
 
 
//======================================================== 
// 需要用户提供一段RAM空间, 这段空间用来加速 
// 大小: 从SEEK_SPEEDUP_ADDR_START开始,共512*可同时打开文件个数(words). 
//======================================================== 
int get_seek_speedup_userram(unsigned long *addr, unsigned int *length) 
{ 
	*addr = SEEK_SPEEDUP_ADDR_START; 
	*length = 512 * MAX_OPEN_FILE_NUM; 
	return 0; 
} 
 
//======================================================== 
// 需要用户提供一段RAM空间, 这段空间用来放unitab表 
// 大小:  从UNITAB_ADDR_START开始, 大小1K(words). 
unsigned long get_unitab_extram_add(void) 
{ 
	return UNITAB_ADDR_START; 
} 
 
//======================================================== 
// 照搬 
int release_unitab_extram_add(unsigned long addr) 
{ 
	return 0; 
} 
 
//======================================================== 
//Function Name:	DrvSDCInitial 
//Syntax:			int DrvSDCInitial() 
//Purpose:			Initialize SD Card 
//Note: 
//Parameters:		void 
//Return:			0:SDCSuccess	-1:SDCFail 
//======================================================= 
/* int DrvSDCInitial(void) 
{ 
	return 0xffff; 
} 
 
//======================================================== 
//Function Name:	DrvSDCGetSize 
//Syntax:			int DrvSDCGetSize() 
//Purpose:			Return Number of SDC Sectors 
//Note: 
//Parameters: 
//Return:			Total Sector Number 
//======================================================= 
unsigned long DrvSDCGetSize(void) 
{ 
	return 0;	//SDCTotalSector; 
} 
 
 
//======================================================== 
//Function Name:	DrvSDCReadSector 
//Syntax:			int DrvSDCReadSector((unsigned long) LBA, (unsigned long) Store Address) 
//Purpose:			Read one Sector 
//Note: 
//Parameters: 
//Return:			0:Success	-1:Fail 
//======================================================= 
int DrvSDCReadSector(unsigned long sec, unsigned long buf) 
{ 
	return 0xffff; 
} 
 
//======================================================== 
//Function Name:	DrvSDCWriteSector 
//Syntax:			int DrvSDCWriteSector((unsigned long) LBA, (unsigned long) Data Address) 
//Purpose:			Write one Sector 
//Note: 
//Parameters: 
//Return:			0:Success	-1:Fail 
//======================================================= 
int DrvSDCWriteSector(unsigned long sec, unsigned long buf) 
{ 
	return 0xffff; 
} 
 
 
void DrvSDCCreatSem(void) 
{ 
} 
 
 unsigned long SDCTotalSector( void ) 
{ 
	return 0; 
} 
 
int DrvSDCReadMultiSector_USB( void ) 
{ 
	return -1; 
} 
 
int DrvSDCMultiWriteSector_USB( void ) 
{ 
	return -1; 
} 
 */