FreeRTOS Tetris
TUM_Print.h
Go to the documentation of this file.
1 
26 #ifndef __TUM_PRINT_H__
27 #define __TUM_PRINT_H__
28 
29 #include <stdio.h>
30 
58 #ifndef SAFE_PRINT_QUEUE_LEN
59 #define SAFE_PRINT_QUEUE_LEN 20
60 #endif // SAFE_PRINT_QUEUE_LEN
61 #ifndef SAFE_PRINT_MAX_MSG_LEN
62 #define SAFE_PRINT_MAX_MSG_LEN 256
63 #endif // SAFE_PRINT_QUEUE_LEN
64 #ifndef SAFE_PRINT_STACK_SIZE
65 #define SAFE_PRINT_STACK_SIZE (SAFE_PRINT_MAX_MSG_LEN * 2)
66 #endif // SAFE_PRINT_STACK_SIZE
67 #ifndef SAFE_PRINT_PRIORITY
68 #define SAFE_PRINT_PRIORITY tskIDLE_PRIORITY
69 #endif // SAFE_PRINT_PRIORITY
70 #ifndef SAFE_PRINT_INPUT_BUFFER_COUNT
71 #define SAFE_PRINT_INPUT_BUFFER_COUNT 10
72 #endif // SAFE_PRINT_INPUT_BUFFER_COUNT
73 //Uncomment to embed print debug ID's into messages
74 // #define SAFE_PRINT_DEBUG
83 void fprints(FILE *__restrict __stream, const char *__format, ...);
84 
90 void prints(const char *__format, ...);
91 
97 int safePrintInit(void);
98 
102 void safePrintExit(void);
103 
106 #endif // __TUM_PRINT_H__
fprints
void fprints(FILE *__restrict __stream, const char *__format,...)
Prints a formatted string to the specifed IO stream.
Definition: TUM_Print.c:96
prints
void prints(const char *__format,...)
Prints a formatted string to stdout
Definition: TUM_Print.c:104
safePrintExit
void safePrintExit(void)
Exits the printing module.
Definition: TUM_Print.c:160
safePrintInit
int safePrintInit(void)
Initializes the printing module.
Definition: TUM_Print.c:126