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.
Functions | |
MEMSPACE void | sep () |
print seperator More... | |
MEMSPACE int WEAK_ATR | isdigit (int c) |
test if a character is a digit More... | |
MEMSPACE int WEAK_ATR | isupper (int c) |
Is a character upper case. More... | |
MEMSPACE int WEAK_ATR | islower (int c) |
MEMSPACE int WEAK_ATR | tolower (int c) |
Convert character to lower case, only if it is upper case. More... | |
MEMSPACE int WEAK_ATR | toupper (int c) |
Convert character to upper case, only if it is lower case. More... | |
MEMSPACE void * | memchr (const void *str, int c, size_t size) |
find a character in a string of maximum size More... | |
MEMSPACE size_t WEAK_ATR | strlen (const char *str) |
String Length. More... | |
MEMSPACE WEAK_ATR char * | strcpy (char *dest, const char *src) |
copy a string More... | |
MEMSPACE WEAK_ATR char * | strncpy (char *dest, const char *src, size_t size) |
copy a string of at most N characters More... | |
MEMSPACE WEAK_ATR char * | strcat (char *dest, const char *src) |
Append string. More... | |
MEMSPACE WEAK_ATR char * | strncat (char *dest, const char *src, size_t max) |
Append string of at most N bytes from src. More... | |
MEMSPACE void WEAK_ATR | reverse (char *str) |
Reverse a string in place Example: abcdef -> fedcba. More... | |
MEMSPACE void WEAK_ATR | strupper (char *str) |
UPPERCASE a string. More... | |
MEMSPACE void | trim_tail (char *str) |
Trim White space and control characters from end of string. More... | |
MEMSPACE char * | skipspaces (char *ptr) |
Skip white space in a string - tabs and spaces. More... | |
MEMSPACE char * | nextspace (char *ptr) |
Skip to first white space in a string - tabs and spaces. More... | |
MEMSPACE char * | skipchars (char *str, char *pat) |
Skip characters defined in user string. More... | |
MEMSPACE int WEAK_ATR | strcmp (const char *str, const char *pat) |
Compare two strings. More... | |
MEMSPACE int WEAK_ATR | strncmp (const char *str, const char *pat, size_t len) |
Compare two strings maximum len bytes in size. More... | |
MEMSPACE int WEAK_ATR | strcasecmp (const char *str, const char *pat) |
Compare two strings without case. More... | |
MEMSPACE int WEAK_ATR | strncasecmp (const char *str, const char *pat, size_t len) |
Compare two strings without case maximum len bytes in size. More... | |
MEMSPACE int | MATCH (char *str, char *pat) |
Compare two strings. More... | |
MEMSPACE int | MATCHARGS (char *str, char *pat, int min, int argc) |
Match two strings and compare argument index Display message if the number of arguments is too few. More... | |
MEMSPACE int | MATCHI (char *str, char *pat) |
Compare two strings without case. More... | |
MEMSPACE int | MATCH_LEN (char *str, char *pat) |
Compare two strings limted to length of pattern. More... | |
MEMSPACE int | MATCHI_LEN (char *str, char *pat) |
Compare two strings without case limted to length of pattern. More... | |
MEMSPACE int | split_args (char *str, char *argv[], int max) |
Split string into arguments stored in argv[] We split source string into arguments Warning: source string is modified! To save memory each gap in the source string is terminated with an EOS This becomes the end of string for each argument returned Warning: Do NOT modify the source string or argument contents while using them You can reassign new pointers to the arguments if you like. More... | |
MEMSPACE char * | get_token (char *str, char *token, int max) |
return next token More... | |
MEMSPACE int | token (char *str, char *pat) |
Search for token in a string matching user pattern. More... | |
MEMSPACE int32_t | get_value (char *str) |
get a number More... | |
MEMSPACE char * | strnalloc (char *str, int len) |
Allocate space for string with maximum size. More... | |
MEMSPACE char * | stralloc (char *str) |
Allocate space for string. More... | |
MEMSPACE char* get_token | ( | char * | str, |
char * | token, | ||
int | max | ||
) |
return next token
[in] | str | string to search. |
[out] | token | token to return |
[in] | max | maximum token size |
Definition at line 628 of file stringsup.c.
get a number
[in] | str | string to examine |
Definition at line 706 of file stringsup.c.
test if a character is a digit
[in] | c | character |
Definition at line 48 of file stringsup.c.
Referenced by atol().
[in] | c | character. |
Definition at line 80 of file stringsup.c.
Referenced by toupper().
Is a character upper case.
[in] | c | character. |
Definition at line 64 of file stringsup.c.
Referenced by tolower().
MEMSPACE int MATCH | ( | char * | str, |
char * | pat | ||
) |
Compare two strings.
[in] | str | string to match. |
[in] | pat | pattern to compare. |
Definition at line 455 of file stringsup.c.
Referenced by MATCHARGS().
MEMSPACE int MATCH_LEN | ( | char * | str, |
char * | pat | ||
) |
Compare two strings limted to length of pattern.
[in] | str | string to match. |
[in] | pat | pattern to compare. |
Definition at line 511 of file stringsup.c.
MEMSPACE int MATCHARGS | ( | char * | str, |
char * | pat, | ||
int | min, | ||
int | argc | ||
) |
Match two strings and compare argument index Display message if the number of arguments is too few.
str | string to test |
pat | pattern to match |
min | minumum number or arguments |
argc | actual number of arguments |
Definition at line 471 of file stringsup.c.
Referenced by fatfs_tests(), posix_tests(), and user_tests().
MEMSPACE int MATCHI | ( | char * | str, |
char * | pat | ||
) |
Compare two strings without case.
[in] | str | string to match. |
[in] | pat | pattern to compare. |
Definition at line 493 of file stringsup.c.
MEMSPACE int MATCHI_LEN | ( | char * | str, |
char * | pat | ||
) |
Compare two strings without case limted to length of pattern.
[in] | str | string to match. |
[in] | pat | pattern to compare. |
Definition at line 537 of file stringsup.c.
Referenced by get_value(), and match_headers().
find a character in a string of maximum size
[in] | str | string |
[in] | c | character |
[in] | size | string length to search |
Definition at line 125 of file stringsup.c.
MEMSPACE char* nextspace | ( | char * | ptr | ) |
Skip to first white space in a string - tabs and spaces.
[in] | ptr | input string |
Definition at line 306 of file stringsup.c.
Referenced by process_args().
Reverse a string in place Example: abcdef -> fedcba.
[in] | str | string |
Definition at line 231 of file stringsup.c.
MEMSPACE void sep | ( | void | ) |
print seperator
undo any existing macros
Definition at line 32 of file stringsup.c.
Referenced by setup().
MEMSPACE char* skipchars | ( | char * | str, |
char * | pat | ||
) |
Skip characters defined in user string.
[in] | str | string |
[in] | pat | pattern string |
Definition at line 328 of file stringsup.c.
MEMSPACE char* skipspaces | ( | char * | ptr | ) |
Skip white space in a string - tabs and spaces.
[in] | ptr | input string |
Definition at line 289 of file stringsup.c.
Referenced by get_token(), get_value(), match_headers(), parse_http_request(), split_args(), timetests(), and token().
MEMSPACE int split_args | ( | char * | str, |
char * | argv[], | ||
int | max | ||
) |
Split string into arguments stored in argv[] We split source string into arguments Warning: source string is modified! To save memory each gap in the source string is terminated with an EOS This becomes the end of string for each argument returned Warning: Do NOT modify the source string or argument contents while using them You can reassign new pointers to the arguments if you like.
Definition at line 566 of file stringsup.c.
Referenced by user_tasks().
MEMSPACE char* stralloc | ( | char * | str | ) |
Allocate space for string.
[in] | str | user string. |
Definition at line 774 of file stringsup.c.
Referenced by main().
Compare two strings without case.
[in] | str | string to match. |
[in] | pat | pattern to compare. |
Definition at line 410 of file stringsup.c.
Referenced by file_type(), http_value(), and MATCHI().
Append string.
[in] | dest | string |
[in] | src | string |
Definition at line 199 of file stringsup.c.
Compare two strings.
[in] | str | string to match. |
[in] | pat | pattern to compare. |
Definition at line 362 of file stringsup.c.
Referenced by FindFontName(), main(), MATCH(), and stat().
copy a string
[in] | dest | destination string |
[in] | src | source string |
Definition at line 161 of file stringsup.c.
Referenced by escape(), fatfs_ls(), fatfs_scan_files(), ls(), main(), setup_networking(), stralloc(), and strcat().
String Length.
[in] | str | string |
Definition at line 146 of file stringsup.c.
Referenced by arg_name(), arg_value(), cat(), escape(), fatfs_ls(), fatfs_scan_files(), get_date(), html_msg(), logfile(), ls(), main(), MATCH(), match_headers(), MATCH_LEN(), match_token(), MATCHI(), MATCHI_LEN(), mctime(), next_arg(), parse_http_request(), process_args(), ReadBdf(), readdir(), reverse(), send_message(), stralloc(), token(), trim_tail(), and upload().
MEMSPACE char* strnalloc | ( | char * | str, |
int | len | ||
) |
Allocate space for string with maximum size.
[in] | str | user string. |
[in] | len | maximum string length. |
Definition at line 750 of file stringsup.c.
Compare two strings without case maximum len bytes in size.
[in] | str | string to match. |
[in] | pat | pattern to compare. |
[in] | len | maximum string length for compare |
Definition at line 432 of file stringsup.c.
Referenced by MATCHI_LEN().
Append string of at most N bytes from src.
[in] | dest | string |
[in] | src | string |
Definition at line 214 of file stringsup.c.
Referenced by html_msg().
Compare two strings maximum len bytes in size.
[in] | str | string to match. |
[in] | pat | pattern to compare. |
[in] | len | maximum string length for compare |
Definition at line 386 of file stringsup.c.
Referenced by MATCH_LEN(), match_token(), and token().
copy a string of at most N characters
[in] | dest | destination string |
[in] | src | source string |
[in] | size | maximum destination size |
Definition at line 179 of file stringsup.c.
Referenced by main(), readdir(), strerror_r(), strnalloc(), strncat(), and user_loop().
UPPERCASE a string.
[in] | str | string |
Definition at line 253 of file stringsup.c.
MEMSPACE int token | ( | char * | str, |
char * | pat | ||
) |
Search for token in a string matching user pattern.
[in] | str | string to search. |
[in] | pat | pattern to search for. |
Definition at line 671 of file stringsup.c.
Referenced by rcvr_datablock(), and ReadBdf().
Convert character to lower case, only if it is upper case.
[in] | c | character. |
Definition at line 96 of file stringsup.c.
Referenced by mkfs().
Convert character to upper case, only if it is lower case.
[in] | c | character. |
Definition at line 112 of file stringsup.c.
Referenced by ReadBdf(), strcasecmp(), strncasecmp(), and strupper().
MEMSPACE void trim_tail | ( | char * | str | ) |
Trim White space and control characters from end of string.
[in] | str | string |
Definition at line 271 of file stringsup.c.
Referenced by cat(), and match_headers().