ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts
1.0
ESP8266ILI9341DisplayProject
|
#include "user_config.h"
#include "fatfs.sup/fatfs.h"
#include "printf/mathio.h"
#include "lib/time.h"
Go to the source code of this file.
Functions | |
MEMSPACE uint32_t | tm_to_fat (tm_t *t) |
FAT time structer reference. More... | |
MEMSPACE DWORD | get_fattime (void) |
Read time and convert to FAT32 time. More... | |
MEMSPACE void | put_rc (int rc) |
display FatFs return code as ascii string More... | |
MEMSPACE int | fatfs_scan_files (char *path) |
Use were FILINFO structure can be share in many functions See: fatfs_alloc_filinfo(), fatfs_scan_files() and fatfs_ls() More... | |
MEMSPACE char * | fatfs_fstype (int type) |
return a string with the file system type More... | |
MEMSPACE void | fatfs_status (char *ptr) |
Compute space used, number of directories and files contained used by a drive. More... | |
MEMSPACE void | fatfs_filinfo_list (FILINFO *info) |
Display FILINFO structure in a readable format. More... | |
Variables | |
FATFS | Fatfs [_VOLUMES] |
FatFs Drive Volumes. More... | |
DWORD | AccSize |
Total file space used. More... | |
WORD | AccFiles |
Total number or Files and Directories. More... | |
WORD | AccDirs |
Display FILINFO structure in a readable format.
/// ----A 2014/10/16 00:39 14 test2.txt /// D---- 2014/10/12 21:29 0 tmp ///
@param[in] : FILINFO pointer @return void
Definition at line 335 of file fatfs_sup.c.
Referenced by fatfs_ls().
MEMSPACE char* fatfs_fstype | ( | int | type | ) |
return a string with the file system type
[in] | type | file system type |
Definition at line 232 of file fatfs_sup.c.
Referenced by fatfs_status().
MEMSPACE int fatfs_scan_files | ( | char * | path | ) |
Use were FILINFO structure can be share in many functions See: fatfs_alloc_filinfo(), fatfs_scan_files() and fatfs_ls()
Allocate FILINFO structure and optional long file name buffer
[in] | allocate | If allocate is true use calloc otherwise return static __filinfo |
[in] | path |
Definition at line 194 of file fatfs_sup.c.
Referenced by fatfs_scan_files(), and fatfs_status().
MEMSPACE void fatfs_status | ( | char * | ptr | ) |
Compute space used, number of directories and files contained used by a drive.
[in] | ptr | Drive path like "/" |
Definition at line 268 of file fatfs_sup.c.
Referenced by fatfs_tests(), mmc_init(), and mmc_test().
Read time and convert to FAT32 time.
Definition at line 130 of file fatfs_sup.c.
Referenced by rtc_read().
MEMSPACE void put_rc | ( | int | rc | ) |
display FatFs return code as ascii string
Credit: Part of FatFs avr example project (C)ChaN, 2013
[in] | rc | FatFs status return code |
Definition at line 145 of file fatfs_sup.c.
Referenced by fatfs_ls(), fatfs_status(), fatfs_tests(), mkfs(), and mmc_init().
FAT time structer reference.
/// typedef struct /// { /// WORD year; /* 2000..2099 */ /// BYTE month; /* 1..12 */ /// BYTE mday; /* 1.. 31 */ /// BYTE wday; /* 1..7 */ /// BYTE hour; /* 0..23 */ /// BYTE min; /* 0..59 */ /// BYTE sec; /* 0..59 */ /// } RTC; ///Convert Linux POSIX tm_t * to FAT32 time.
[in] | t | POSIX struct tm * to convert. |
Definition at line 113 of file fatfs_sup.c.
Referenced by get_fattime(), and rtc_read().
WORD AccDirs |
Definition at line 164 of file fatfs_sup.c.
Referenced by fatfs_scan_files(), and fatfs_status().
WORD AccFiles |
Total number or Files and Directories.
Definition at line 164 of file fatfs_sup.c.
Referenced by fatfs_scan_files(), and fatfs_status().
DWORD AccSize |
Total file space used.
Definition at line 161 of file fatfs_sup.c.
Referenced by fatfs_scan_files(), and fatfs_status().