ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts
1.0
ESP8266ILI9341DisplayProject
|
Go to the source code of this file.
Data Structures | |
struct | FATFS |
struct | _FDID |
struct | FIL |
struct | DIR |
struct | FILINFO |
Macros | |
#define | _FATFS 68020 /* Revision ID */ |
#define | LD2PD(vol) (BYTE)(vol) /* Each logical drive is bound to the same physical drive number */ |
#define | LD2PT(vol) 0 /* Find first valid partition or in SFD */ |
#define | _T(x) x |
#define | _TEXT(x) x |
#define | f_eof(fp) ((int)((fp)->fptr == (fp)->obj.objsize)) |
#define | f_error(fp) ((fp)->err) |
#define | f_tell(fp) ((fp)->fptr) |
#define | f_size(fp) ((fp)->obj.objsize) |
#define | f_rewind(fp) f_lseek((fp), 0) |
#define | f_rewinddir(dp) f_readdir((dp), 0) |
#define | EOF (-1) |
#define | FA_READ 0x01 |
#define | FA_WRITE 0x02 |
#define | FA_OPEN_EXISTING 0x00 |
#define | FA_CREATE_NEW 0x04 |
#define | FA_CREATE_ALWAYS 0x08 |
#define | FA_OPEN_ALWAYS 0x10 |
#define | FA_OPEN_APPEND 0x30 |
#define | CREATE_LINKMAP ((FSIZE_t)0 - 1) |
#define | FM_FAT 0x01 |
#define | FM_FAT32 0x02 |
#define | FM_EXFAT 0x04 |
#define | FM_ANY 0x07 |
#define | FM_SFD 0x08 |
#define | FS_FAT12 1 |
#define | FS_FAT16 2 |
#define | FS_FAT32 3 |
#define | FS_EXFAT 4 |
#define | AM_RDO 0x01 /* Read only */ |
#define | AM_HID 0x02 /* Hidden */ |
#define | AM_SYS 0x04 /* System */ |
#define | AM_DIR 0x10 /* Directory */ |
#define | AM_ARC 0x20 /* Archive */ |
Typedefs | |
typedef char | TCHAR |
typedef DWORD | FSIZE_t |
Functions | |
FRESULT | f_open (FIL *fp, const TCHAR *path, BYTE mode) |
FRESULT | f_close (FIL *fp) |
FRESULT | f_read (FIL *fp, void *buff, UINT btr, UINT *br) |
FRESULT | f_write (FIL *fp, const void *buff, UINT btw, UINT *bw) |
FRESULT | f_lseek (FIL *fp, FSIZE_t ofs) |
FRESULT | f_truncate (FIL *fp) |
FRESULT | f_sync (FIL *fp) |
FRESULT | f_opendir (DIR *dp, const TCHAR *path) |
FRESULT | f_closedir (DIR *dp) |
FRESULT | f_readdir (DIR *dp, FILINFO *fno) |
FRESULT | f_findfirst (DIR *dp, FILINFO *fno, const TCHAR *path, const TCHAR *pattern) |
FRESULT | f_findnext (DIR *dp, FILINFO *fno) |
FRESULT | f_mkdir (const TCHAR *path) |
FRESULT | f_unlink (const TCHAR *path) |
FRESULT | f_rename (const TCHAR *path_old, const TCHAR *path_new) |
FRESULT | f_stat (const TCHAR *path, FILINFO *fno) |
FRESULT | f_chmod (const TCHAR *path, BYTE attr, BYTE mask) |
FRESULT | f_utime (const TCHAR *path, const FILINFO *fno) |
FRESULT | f_chdir (const TCHAR *path) |
FRESULT | f_chdrive (const TCHAR *path) |
FRESULT | f_getcwd (TCHAR *buff, UINT len) |
FRESULT | f_getfree (const TCHAR *path, DWORD *nclst, FATFS **fatfs) |
FRESULT | f_getlabel (const TCHAR *path, TCHAR *label, DWORD *vsn) |
FRESULT | f_setlabel (const TCHAR *label) |
FRESULT | f_forward (FIL *fp, UINT(*func)(const BYTE *, UINT), UINT btf, UINT *bf) |
FRESULT | f_expand (FIL *fp, FSIZE_t szf, BYTE opt) |
FRESULT | f_mount (FATFS *fs, const TCHAR *path, BYTE opt) |
FRESULT | f_mkfs (const TCHAR *path, BYTE opt, DWORD au, void *work, UINT len) |
FRESULT | f_fdisk (BYTE pdrv, const DWORD *szt, void *work) |
int | f_putc (TCHAR c, FIL *fp) |
int | f_puts (const TCHAR *str, FIL *cp) |
int | f_printf (FIL *fp, const TCHAR *str,...) |
TCHAR * | f_gets (TCHAR *buff, int len, FIL *fp) |
DWORD | get_fattime (void) |
Read time and convert to FAT32 time. More... | |
WCHAR | ff_convert (WCHAR chr, UINT dir) |
WCHAR | ff_wtoupper (WCHAR chr) |
void * | ff_memalloc (UINT msize) |
void | ff_memfree (void *mblock) |
#define AM_ARC 0x20 /* Archive */ |
Definition at line 359 of file ff.h.
Referenced by dir_read(), f_chmod(), f_open(), f_rename(), f_sync(), and fatfs_filinfo_list().
#define AM_DIR 0x10 /* Directory */ |
Definition at line 358 of file ff.h.
Referenced by f_chdir(), f_mkdir(), f_open(), f_opendir(), f_rename(), f_unlink(), fatfs_filinfo_list(), fatfs_ls(), fatfs_scan_files(), follow_path(), stat(), and sum_sfn().
#define AM_HID 0x02 /* Hidden */ |
Definition at line 356 of file ff.h.
Referenced by f_chmod(), and fatfs_filinfo_list().
#define AM_RDO 0x01 /* Read only */ |
Definition at line 355 of file ff.h.
Referenced by chmod(), f_chmod(), f_open(), f_unlink(), fatfs_filinfo_list(), and stat().
#define AM_SYS 0x04 /* System */ |
Definition at line 357 of file ff.h.
Referenced by f_chmod(), fatfs_filinfo_list(), and stat().
#define CREATE_LINKMAP ((FSIZE_t)0 - 1) |
#define f_size | ( | fp | ) | ((fp)->obj.objsize) |
#define f_tell | ( | fp | ) | ((fp)->fptr) |
Definition at line 284 of file ff.h.
Referenced by fatfs_getc(), and lseek().
#define FA_CREATE_ALWAYS 0x08 |
Definition at line 334 of file ff.h.
Referenced by f_open(), fatfs_ls(), and open().
#define FA_OPEN_ALWAYS 0x10 |
#define FA_OPEN_EXISTING 0x00 |
Definition at line 332 of file ff.h.
Referenced by fatfs_ls(), and truncate().
#define FA_READ 0x01 |
Definition at line 330 of file ff.h.
Referenced by f_expand(), f_open(), f_read(), fatfs_ls(), find_volume(), open(), and truncate().
#define FA_WRITE 0x02 |
Definition at line 331 of file ff.h.
Referenced by f_chmod(), f_expand(), f_lseek(), f_mkdir(), f_open(), f_rename(), f_setlabel(), f_truncate(), f_unlink(), f_utime(), f_write(), fatfs_ls(), open(), and truncate().
#define FM_FAT32 0x02 |
Definition at line 343 of file ff.h.
Referenced by f_mkfs(), fatfs_tests(), and mkfs().
#define FS_EXFAT 4 |
Definition at line 352 of file ff.h.
Referenced by create_chain(), dir_alloc(), dir_find(), dir_next(), dir_read(), dir_register(), dir_remove(), dir_sdi(), f_chdir(), f_chmod(), f_expand(), f_getcwd(), f_getfree(), f_getlabel(), f_lseek(), f_mkdir(), f_mkfs(), f_open(), f_opendir(), f_rename(), f_setlabel(), f_sync(), f_unlink(), f_utime(), f_write(), fatfs_fstype(), find_volume(), follow_path(), get_fat(), get_fileinfo(), put_fat(), and remove_chain().
#define FS_FAT12 1 |
Definition at line 349 of file ff.h.
Referenced by f_getfree(), f_mkfs(), fatfs_fstype(), find_volume(), get_fat(), and put_fat().
#define FS_FAT16 2 |
Definition at line 350 of file ff.h.
Referenced by f_getfree(), f_mkfs(), fatfs_fstype(), find_volume(), get_fat(), and put_fat().
#define FS_FAT32 3 |
Definition at line 351 of file ff.h.
Referenced by dir_sdi(), f_getlabel(), f_mkdir(), f_mkfs(), fatfs_fstype(), find_volume(), get_fat(), ld_clust(), put_fat(), st_clust(), and sync_fs().
#define LD2PD | ( | vol | ) | (BYTE)(vol) /* Each logical drive is bound to the same physical drive number */ |
Definition at line 49 of file ff.h.
Referenced by f_mkfs(), and find_volume().
#define LD2PT | ( | vol | ) | 0 /* Find first valid partition or in SFD */ |
Definition at line 50 of file ff.h.
Referenced by f_mkfs(), and find_volume().
enum FRESULT |
Definition at line 3866 of file ff.c.
Referenced by chdir(), and fatfs_ls().
Definition at line 4823 of file ff.c.
Referenced by chmod(), and fatfs_tests().
Definition at line 3808 of file ff.c.
Referenced by close(), fatfs_ls(), and open().
Definition at line 4226 of file ff.c.
Referenced by closedir().
Definition at line 4297 of file ff.c.
Referenced by f_findfirst().
Referenced by f_expand().
Definition at line 3919 of file ff.c.
Referenced by fatfs_ls(), and getcwd().
Definition at line 4387 of file ff.c.
Referenced by fatfs_ls(), and fatfs_status().
Definition at line 4915 of file ff.c.
Referenced by fatfs_status().
Definition at line 4000 of file ff.c.
Referenced by fatfs_getc(), ftruncate(), lseek(), open(), and truncate().
Definition at line 4622 of file ff.c.
Referenced by fatfs_ls(), and mkdir().
Definition at line 5296 of file ff.c.
Referenced by fatfs_tests(), and mkfs().
Definition at line 3255 of file ff.c.
Referenced by fatfs_tests(), mkfs(), and mmc_init().
Definition at line 3304 of file ff.c.
Referenced by fatfs_ls(), open(), and truncate().
Definition at line 4155 of file ff.c.
Referenced by f_findfirst(), fatfs_ls(), fatfs_scan_files(), and opendir().
Definition at line 3506 of file ff.c.
Referenced by f_gets(), fatfs_getc(), fatfs_ls(), and read().
Definition at line 4260 of file ff.c.
Referenced by f_findnext(), fatfs_ls(), fatfs_scan_files(), and readdir().
Definition at line 4716 of file ff.c.
Referenced by fatfs_ls(), and rename().
Definition at line 4351 of file ff.c.
Referenced by fatfs_ls(), and stat().
Definition at line 4475 of file ff.c.
Referenced by ftruncate(), and truncate().
Definition at line 4526 of file ff.c.
Referenced by fatfs_ls(), rmdir(), and unlink().
Definition at line 3607 of file ff.c.
Referenced by fatfs_ls(), fatfs_putc(), putc_bfd(), putc_flush(), and write().
Definition at line 275 of file ccsbcs.c.
Referenced by create_name(), f_getlabel(), f_gets(), f_setlabel(), get_fileinfo(), putc_bfd(), and sum_sfn().
void* ff_memalloc | ( | UINT | msize | ) |
void ff_memfree | ( | void * | mblock | ) |
Definition at line 303 of file ccsbcs.c.
Referenced by cmp_lfn(), create_name(), dir_find(), f_mkfs(), f_setlabel(), get_achar(), and sum_sfn().
DWORD get_fattime | ( | void | ) |
Read time and convert to FAT32 time.
Definition at line 130 of file fatfs_sup.c.
Referenced by rtc_read().