SmartVehicle-Sortic
SmartFactory
LogConfiguration.h
Go to the documentation of this file.
1
15
#ifndef LOGCONFIGURATION_H
16
#define LOGCONFIGURATION_H
17
18
// #define DEBUGGER ///< Option to activate the Serial.print global
19
20
#ifdef DEBUGGER
21
#define DEBUG_ERROR
22
// #define DEBUG_WARNING
23
#define DEBUG_STATUS
24
// #define DEBUG_EVENT
25
#define DEBUG_POSITION
26
// #define DEBUG_INFO1
27
#define DEBUG_INFO2
28
// #define DEBUG_INFO3
29
// #define DEBUG_FUNCCALL
30
#endif
31
32
#ifdef DEBUG_ERROR
33
#define DBERROR(x) \
34
Serial.print("ERROR: "); \
35
Serial.println(x);
36
#else
37
#define DBERROR(x)
38
#endif
39
40
#ifdef DEBUG_WARNING
41
#define DBWARNING(x) Serial.print(x)
42
#define DBWARNINGln(x) Serial.println(x)
43
#else
44
#define DBWARNING(x)
45
#define DBWARNINGln(x)
46
#endif
47
48
#ifdef DEBUG_STATUS
49
#define DBSTATUS(x) Serial.print(x)
50
#define DBSTATUSln(x) Serial.println(x)
51
#else
52
#define DBSTATUS(x)
53
#define DBSTATUSln(x)
54
#endif
55
56
#ifdef DEBUG_EVENT
57
#define DBEVENT(x) Serial.print(x)
58
#define DBEVENTln(x) Serial.println(x)
59
#else
60
#define DBEVENT(x)
61
#define DBEVENTln(x)
62
#endif
63
64
#ifdef DEBUG_POSITION
65
#define DBPOS(x) Serial.print(x)
66
#define DBPOSln(x) Serial.println(x)
67
#else
68
#define DBPOS(x)
69
#define DBPOSln(x)
70
#endif
71
72
#ifdef DEBUG_INFO1
73
#define DBINFO1(x) \
74
if (Serial) { \
75
Serial.print(x); \
76
};
77
#define DBINFO1ln(x) \
78
if (Serial) { \
79
Serial.println(x); \
80
};
81
#else
82
#define DBINFO1(x)
83
#define DBINFO1ln(x)
84
#endif
85
86
#ifdef DEBUG_INFO2
87
#define DBINFO2(x) \
88
if (Serial) { \
89
Serial.print(x); \
90
};
91
#define DBINFO2ln(x) \
92
if (Serial) { \
93
Serial.println(x); \
94
};
95
#else
96
#define DBINFO2(x)
97
#define DBINFO2ln(x)
98
#endif
99
100
#ifdef DEBUG_INFO3
101
#define DBINFO3(x) \
102
if (Serial) { \
103
Serial.print(x); \
104
};
105
#define DBINFO3ln(x) \
106
if (Serial) { \
107
Serial.println(x); \
108
};
109
#else
110
#define DBINFO3(x)
111
#define DBINFO3ln(x)
112
#endif
113
114
#ifdef DEBUG_FUNCCALL
115
#define DBFUNCCALL(x) \
116
if (Serial) { \
117
Serial.print(x); \
118
}
119
#define DBFUNCCALLln(x) \
120
if (Serial) { \
121
Serial.println(x); \
122
}
123
#else
124
#define DBFUNCCALL(x)
125
#define DBFUNCCALLln(x)
126
#endif
127
128
#endif
lib
Configuration
LogConfiguration.h
Generated by
1.8.15