Adapted to LoRa Semtech + Nucleo
Dependents: LoRaWAN-lmic-app LoRaWAN-lmic-app LoRaWAN-test-10secs LoRaPersonalizedDeviceForEverynet ... more
Fork of cantcoap by
dbg.h
00001 #pragma once 00002 #include <stdio.h> 00003 00004 #define DEBUG 1 00005 #undef DEBUG 00006 00007 #define DBG_NEWLINE "\n" 00008 00009 #define INFO(...) printf(__VA_ARGS__); printf(DBG_NEWLINE); 00010 #define INFOX(...); printf(__VA_ARGS__); 00011 #define ERR(...) printf(__VA_ARGS__); printf(DBG_NEWLINE); 00012 00013 #ifdef DEBUG 00014 #define DBG(...) fprintf(stderr,"%s:%d ",__FILE__,__LINE__); fprintf(stderr,__VA_ARGS__); fprintf(stderr,"\r\n"); 00015 #define DBGX(...) fprintf(stderr,__VA_ARGS__); 00016 #define DBGLX(...) fprintf(stderr,"%s:%d ",__FILE__,__LINE__); fprintf(stderr,__VA_ARGS__); 00017 #define DBG_PDU() printBin(); 00018 #else 00019 #define DBG(...) {}; 00020 #define DBGX(...) {}; 00021 #define DBGLX(...) {}; 00022 #define DBG_PDU() {}; 00023 #endif
Generated on Wed Jul 20 2022 04:38:21 by
