Դصַ
http://elm-chan.org/fsw/ff/00index_e.html

ֲ¼Ӧİ汾Ϊ R0.09b

1. ֱ ff9b.zip ļȻѹ临ƵԼĹС
	ǽڣ \User\FatFS\src

2. ڹhļ· \User\FatFS\src

3. ڹ2Դļ
	ff.c
	diskio.c
	cc936.c

4. ޸ diskio.c ļ

5. Ϊֳ֧ļ cc936.c ļ static const WCHAR uni2oem[] 
	һGB2312UNICODEתռóռԼ170Kֽڡ

==========================================
ffconf.h ޸ļ¼
1#define _CODE_PAGE	932		/* ı */
		޸Ϊ
	#define _CODE_PAGE	936		/* Ǽı */

2#define	_FS_LOCK	0	޸ 3  ͬʱ3ļ0ʾֻܴ1

3#define	_USE_LFN	0		/* 0 to 3 */
	޸Ϊ
	#define	_USE_LFN	1   ʹܳļ侲̬ڴڴ洢ļ
	1: Enable LFN with static working buffer on the BSS. Always NOT reentrant.

4ĩβ #include "diskio.h" ҪĿϵͳIDFS_SDFS_NAND)

 (5) #define _VOLUMES	3	Ϊͬʱ֧SD,NAND Flash  USB ֽʣ 1 ޸Ϊ 3

diskio.c ޸ļ¼
1. ޸ disk_initialize, SDʼ
2. ޸ disk_status, SD״̬
3. ޸ disk_readʵֶSD
4. ޸ disk_writeʵдSD
5. ޸ disk_ioctl ʱδ
6. Ӻ  DWORD get_fattime (void);

diskio.h ޸ļ¼
1. ļĩβ̴
	/* Definitions of physical drive number for each media */
	#define FS_SD		0
	#define FS_NAND		1
	#define FS_USB		2


ļ⡿
1. ļֻжļ FileInf.fname ļ FileInf.lfname Ϊ
2. ff_mkdir Ŀ¼ʱļ̣ȷȡļFileInf.lfname
3. f_open ļʱļȴ 8.3ʽȷFileInf.lfname

SD_WriteMultiBlocks()⡿
1.  disk_write Уд block1ѡ SD_WriteMultiBlocks
	һβҪ count + 1 ȷд룬1ݽȷ
ԭ顿
				/* ˴ʣ д count 1block޷д */
				Status = SD_WriteMultiBlocks((uint8_t *)buff, sector << 9 ,SECTOR_SIZE, count + 1);
