10 #ifndef SUPPRESSCOLLORS 11 #define ANSI_COLOR_RED "\x1b[31m" 12 #define ANSI_COLOR_GREEN "\x1b[32m" 13 #define ANSI_COLOR_YELLOW "\x1b[33m" 14 #define ANSI_COLOR_BLUE "\x1b[34m" 15 #define ANSI_COLOR_MAGENTA "\x1b[35m" 16 #define ANSI_COLOR_CYAN "\x1b[36m" 17 #define ANSI_COLOR_RESET "\x1b[0m" 19 #define ANSI_COLOR_RED "" 20 #define ANSI_COLOR_GREEN "" 21 #define ANSI_COLOR_YELLOW "" 22 #define ANSI_COLOR_BLUE "" 23 #define ANSI_COLOR_MAGENTA "" 24 #define ANSI_COLOR_CYAN "" 25 #define ANSI_COLOR_RESET "" 28 #define MAXCMD_LEN 255 29 #define HEXDUMP_COLS 16 32 #ifndef SUPPRESSHEXDUMP 33 #define SUPPRESSHEXDUMP 0 35 #define HEXDUMP(a, b) (SUPPRESSHEXDUMP==0) ? __hexdump__(a,b) : (void) 0; 122 sprintf(str,
"0x%06x: ", i);
128 sprintf(str,
"%02x ", 0xFF & ((
char*) p_buf)[i]);
142 }
else if (isprint((
int) ((
char*) p_buf)[j]))
144 Serial.print(((
char*) p_buf)[j]);
void printlnMagenta(const char c[])
Definition: fprint.h:69
#define ANSI_COLOR_MAGENTA
Definition: fprint.h:15
void printlnGreen(const char c[])
Definition: fprint.h:43
void printGreen(const char c[])
Definition: fprint.h:95
#define MAXCMD_LEN
Definition: fprint.h:28
void __hexdump__(const void *p_buf, uint32_t l_len)
Definition: fprint.h:114
void printMagenta(const char c[])
Definition: fprint.h:82
#define ANSI_COLOR_RESET
Definition: fprint.h:17
#define HEXDUMP_COLS
Definition: fprint.h:29
void printlnRed(const char c[])
Definition: fprint.h:56
#define ANSI_COLOR_GREEN
Definition: fprint.h:12
#define ANSI_COLOR_RED
Definition: fprint.h:11