26 #ifndef __GFX_PRINT_H__
27 #define __GFX_PRINT_H__
57 #ifndef SAFE_PRINT_QUEUE_LEN
58 #define SAFE_PRINT_QUEUE_LEN 20
60 #ifndef SAFE_PRINT_MAX_MSG_LEN
61 #define SAFE_PRINT_MAX_MSG_LEN 256
63 #ifndef SAFE_PRINT_STACK_SIZE
64 #define SAFE_PRINT_STACK_SIZE (SAFE_PRINT_MAX_MSG_LEN * 2)
66 #ifndef SAFE_PRINT_PRIORITY
67 #define SAFE_PRINT_PRIORITY tskIDLE_PRIORITY
69 #ifndef SAFE_PRINT_INPUT_BUFFER_COUNT
70 #define SAFE_PRINT_INPUT_BUFFER_COUNT 10
76 #define PRINT_ERROR(msg, ...) \
77 fprintf(stderr, "[ERROR] " msg, ##__VA_ARGS__); \
78 fprintf(stderr, " @-> %s:%d, %s\n", __FILE__, __LINE__, __func__)
79 #define PRINT_TASK_ERROR(task) PRINT_ERROR("Failed to print task ##task");
87 void fprints(FILE *__restrict __stream,
const char *__format, ...);
94 void prints(
const char *__format, ...);
int gfxSafePrintInit(void)
Initializes the printing module.
Definition: gfx_print.c:126
void prints(const char *__format,...)
Prints a formatted string to stdout
Definition: gfx_print.c:104
void fprints(FILE *__restrict __stream, const char *__format,...)
Prints a formatted string to the specifed IO stream.
Definition: gfx_print.c:96
void gfxSafePrintExit(void)
Exits the printing module.
Definition: gfx_print.c:160