29 #error Wrong configuration file (ffconf.h). 41 extern PARTITION VolToPart[];
42 #define LD2PD(vol) (VolToPart[vol].pd) 43 #define LD2PT(vol) (VolToPart[vol].pt) 46 #define LD2PD(vol) (vol) 57 #error _LFN_UNICODE must be 0 in non-LFN cfg. 62 #define _TEXT(x) L ## x 219 FRESULT
f_mkdir (
const TCHAR*);
222 FRESULT
f_rename (
const TCHAR*,
const TCHAR*);
224 FRESULT
f_chdir (
const TCHAR*);
235 #define f_eof(fp) (((fp)->fptr == (fp)->fsize) ? 1 : 0) 236 #define f_error(fp) (((fp)->flag & FA__ERROR) ? 1 : 0) 237 #define f_tell(fp) ((fp)->fptr) 238 #define f_size(fp) ((fp)->fsize) 260 void* ff_memalloc (
UINT);
261 void ff_memfree (
void*);
283 #define FA_OPEN_EXISTING 0x00 284 #define FA__ERROR 0x80 287 #define FA_WRITE 0x02 288 #define FA_CREATE_NEW 0x04 289 #define FA_CREATE_ALWAYS 0x08 290 #define FA_OPEN_ALWAYS 0x10 291 #define FA__WRITTEN 0x20 292 #define FA__DIRTY 0x40 316 #define CREATE_LINKMAP 0xFFFFFFFF 323 #if _WORD_ACCESS == 1 324 #define LD_WORD(ptr) (WORD)(*(WORD*)(BYTE*)(ptr)) 325 #define LD_DWORD(ptr) (DWORD)(*(DWORD*)(BYTE*)(ptr)) 326 #define ST_WORD(ptr,val) *(WORD*)(BYTE*)(ptr)=(WORD)(val) 327 #define ST_DWORD(ptr,val) *(DWORD*)(BYTE*)(ptr)=(DWORD)(val) 329 #define LD_WORD(ptr) (WORD)(((WORD)*((BYTE*)(ptr)+1)<<8)|(WORD)*(BYTE*)(ptr)) 330 #define LD_DWORD(ptr) (DWORD)(((DWORD)*((BYTE*)(ptr)+3)<<24)|((DWORD)*((BYTE*)(ptr)+2)<<16)|((WORD)*((BYTE*)(ptr)+1)<<8)|*(BYTE*)(ptr)) 331 #define ST_WORD(ptr,val) *(BYTE*)(ptr)=(BYTE)(val); *((BYTE*)(ptr)+1)=(BYTE)((WORD)(val)>>8) 332 #define ST_DWORD(ptr,val) *(BYTE*)(ptr)=(BYTE)(val); *((BYTE*)(ptr)+1)=(BYTE)((WORD)(val)>>8); *((BYTE*)(ptr)+2)=(BYTE)((DWORD)(val)>>16); *((BYTE*)(ptr)+3)=(BYTE)((DWORD)(val)>>24)
FRESULT f_write(FIL *, const void *, UINT, UINT *)
FRESULT f_getcwd(TCHAR *, UINT)
FRESULT f_mkfs(BYTE, BYTE, UINT)
FRESULT f_forward(FIL *, UINT(*)(const BYTE *, UINT), UINT, UINT *)
int f_printf(FIL *, const TCHAR *,...)
FRESULT f_rename(const TCHAR *, const TCHAR *)
FRESULT f_truncate(FIL *)
FRESULT f_read(FIL *, void *, UINT, UINT *)
FRESULT f_chdir(const TCHAR *)
int f_vprintf(FIL *, const TCHAR *, va_list arp)
FRESULT f_utime(const TCHAR *, const FILINFO *)
FRESULT f_lseek(FIL *, DWORD)
FRESULT f_chmod(const TCHAR *, BYTE, BYTE)
WCHAR ff_convert(WCHAR, UINT)
int f_puts(const TCHAR *, FIL *)
DWORD get_fattime(void)
Current time returned is packed into a DWORD value.
FRESULT f_unlink(const TCHAR *)
FRESULT f_getfree(const TCHAR *, DWORD *, FATFS **)
FRESULT f_readdir(DIR *, FILINFO *)
FRESULT f_fdisk(BYTE, const DWORD[], void *)
FRESULT f_open(FIL *, const TCHAR *, BYTE)
TCHAR * f_gets(TCHAR *, int, FIL *)
FRESULT f_stat(const TCHAR *, FILINFO *)
FRESULT f_mount(BYTE, FATFS *)
FRESULT f_opendir(DIR *, const TCHAR *)
FRESULT f_mkdir(const TCHAR *)