-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.h
38 lines (34 loc) · 840 Bytes
/
main.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/**
* @file main.h
* @author Bernd Giesecke (bernd@giesecke.tk)
* @brief Globals and Includes
* @version 0.1
* @date 2022-04-10
*
* @copyright Copyright (c) 2022
*
*/
#include <Arduino.h>
// Debug
// Debug output set to 0 to disable app debug output
#ifndef MY_DEBUG
#define MY_DEBUG 1
#endif
#if MY_DEBUG > 0
#define MYLOG(tag, ...) \
do \
{ \
if (tag) \
Serial.printf("[%s] ", tag); \
Serial.printf(__VA_ARGS__); \
Serial.printf("\n"); \
} while (0); \
delay(100)
#else
#define MYLOG(...)
#endif
// Globals
extern uint32_t g_send_repeat_time;
extern volatile bool tx_active;
/** Module stuff */
#include "module_handler.h"