File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 1919 "value" : " malloc" ,
2020 "macro_name" : " MEM_ALLOC"
2121 },
22+ "color-theme" : {
23+ "help" : " Set color theme. 0 for readable, 1 for unobtrusive." ,
24+ "options" : [0 , 1 ],
25+ "macro_name" : " MBED_TRACE_COLOR_THEME" ,
26+ "value" : 0
27+ },
2228 "deallocator" : {
2329 "value" : " free" ,
2430 "macro_name" : " MEM_FREE"
Original file line number Diff line number Diff line change 4949#endif
5050#endif /* YOTTA_CFG_MEMLIB */
5151
52+ #if defined(MBED_TRACE_COLOR_THEME ) && (MBED_TRACE_COLOR_THEME == 1 )
5253#define VT100_COLOR_ERROR "\x1b[31m"
5354#define VT100_COLOR_WARN "\x1b[33m"
5455#define VT100_COLOR_INFO "\x1b[39m"
5556#define VT100_COLOR_DEBUG "\x1b[90m"
57+ #else
58+ #define VT100_COLOR_ERROR "\x1b[31m"
59+ #define VT100_COLOR_WARN "\x1b[33m"
60+ #define VT100_COLOR_INFO "\x1b[39m"
61+ #define VT100_COLOR_DEBUG "\x1b[94m"
62+ #endif
5663
5764/** default max trace line size in bytes */
5865#ifdef MBED_TRACE_LINE_LENGTH
You can’t perform that action at this time.
0 commit comments