Formula Student Electronics & Software
The code for the embedded software
Loading...
Searching...
No Matches
debug.h
Go to the documentation of this file.
1
5
#ifndef _LOG_H_
6
#define _LOG_H_
7
8
#include <Arduino.h>
9
15
#define _LOG(prefix, ...) Serial.printf("[" prefix "] " __VA_ARGS__)
16
20
#define INFO(...) _LOG("INFO", __VA_ARGS__)
21
25
#define LOG(...) _LOG("LOG", __VA_ARGS__)
26
30
#define ALERT(...) _LOG("ALERT", __VA_ARGS__)
31
35
#define ERROR(...) Serial.printf("[ERROR] " __VA_ARGS__)
36
37
// uncomment this line to enable debug messages
38
// #define APPS_DEBUG
39
// #define CAN_DEBUG
40
// #define DISPLAY_DEBUG
41
// #define MAIN_DEBUG
42
// #define R2D_DEBUG
43
44
// uncomment these lines to enable aditional data display and data logging
45
#define DATA_DISPLAY 0
46
// #define DATA_LOGGING
47
48
#endif
// _LOG_H_
c3
include
debug.h
Generated by
1.9.8