summaryrefslogtreecommitdiff
path: root/lora_pkt_fwd/inc/trace.h
diff options
context:
space:
mode:
Diffstat (limited to 'lora_pkt_fwd/inc/trace.h')
-rw-r--r--lora_pkt_fwd/inc/trace.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/lora_pkt_fwd/inc/trace.h b/lora_pkt_fwd/inc/trace.h
new file mode 100644
index 0000000..a067851
--- /dev/null
+++ b/lora_pkt_fwd/inc/trace.h
@@ -0,0 +1,37 @@
+/*
+ / _____) _ | |
+( (____ _____ ____ _| |_ _____ ____| |__
+ \____ \| ___ | (_ _) ___ |/ ___) _ \
+ _____) ) ____| | | || |_| ____( (___| | | |
+(______/|_____)_|_|_| \__)_____)\____)_| |_|
+ (C)2013 Semtech-Cycleo
+
+Description:
+ LoRa concentrator : Packet Forwarder trace helpers
+
+License: Revised BSD License, see LICENSE.TXT file include in the project
+Maintainer: Michael Coracin
+*/
+
+
+#ifndef _LORA_PKTFWD_TRACE_H
+#define _LORA_PKTFWD_TRACE_H
+
+#define DEBUG_PKT_FWD 0
+#define DEBUG_JIT 0
+#define DEBUG_JIT_ERROR 1
+#define DEBUG_TIMERSYNC 0
+#define DEBUG_BEACON 0
+#define DEBUG_LOG 1
+
+#define MSG(args...) printf(args) /* message that is destined to the user */
+#define MSG_DEBUG(FLAG, fmt, ...) \
+ do { \
+ if (FLAG) \
+ fprintf(stdout, "%s:%d:%s(): " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__); \
+ } while (0)
+
+
+
+#endif
+/* --- EOF ------------------------------------------------------------------ */