v1.0.0
* Initial release for SX1302 CoreCell Reference Design.
This commit is contained in:
parent
c7a5171a47
commit
4c61c5d48e
79 changed files with 30157 additions and 0 deletions
39
packet_forwarder/inc/trace.h
Normal file
39
packet_forwarder/inc/trace.h
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
/*
|
||||
/ _____) _ | |
|
||||
( (____ _____ ____ _| |_ _____ ____| |__
|
||||
\____ \| ___ | (_ _) ___ |/ ___) _ \
|
||||
_____) ) ____| | | || |_| ____( (___| | | |
|
||||
(______/|_____)_|_|_| \__)_____)\____)_| |_|
|
||||
(C)2019 Semtech
|
||||
|
||||
Description:
|
||||
LoRa concentrator : Packet Forwarder trace helpers
|
||||
|
||||
License: Revised BSD License, see LICENSE.TXT file include in the project
|
||||
*/
|
||||
|
||||
|
||||
#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)
|
||||
#define MSG_PRINTF(FLAG, fmt, ...) \
|
||||
do { \
|
||||
if (FLAG) \
|
||||
fprintf(stdout, fmt, ##__VA_ARGS__); \
|
||||
} while (0)
|
||||
|
||||
#endif
|
||||
/* --- EOF ------------------------------------------------------------------ */
|
||||
Loading…
Add table
Add a link
Reference in a new issue