forked from TaraHoleInIt/SLIP8266
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmydebug.h
More file actions
33 lines (27 loc) · 788 Bytes
/
Copy pathmydebug.h
File metadata and controls
33 lines (27 loc) · 788 Bytes
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
#ifndef _MYDEBUG_H_
#define _MYDEBUG_H_
#define DEBUG_UART
// #define DEBUG_ETHERFRAME
// #define DEBUG_UDP
#if defined ( DEBUG_UART )
#define DebugPrintf DebugPrintf_UART
#elif defined ( DEBUG_ETHERFRAME )
#define DebugPrintf DebugPrintf_EtherFrame
#elif defined ( DEBUG_UDP )
#define DebugPrintf DebugPrintf_UDP
#else
#define DebugPrintf( a, ... )
#endif
/*
* Sends a printf formatted string and arguments to the serial port.
*/
int DebugPrintf_UART( const char* Message, ... );
/*
* Sends a printf formatted string and arugments over WiFi with an ethertype of 0xBEEF.
*/
int DebugPrintf_EtherFrame( const char* Message, ... );
/*
* Sends a printf formatted string and arguments as a UDP broadcast to port 7810.
*/
int DebugPrintf_UDP( const char* Message, ... );
#endif