Adapted to LoRa Semtech + Nucleo

Dependents:   LoRaWAN-lmic-app LoRaWAN-lmic-app LoRaWAN-test-10secs LoRaPersonalizedDeviceForEverynet ... more

Fork of cantcoap by Ashley Mills

Committer:
pnysten
Date:
Fri Nov 20 12:30:26 2015 +0000
Revision:
2:d0d57af6c9df
?

Who changed what in which revision?

UserRevisionLine numberNew contents of line
pnysten 2:d0d57af6c9df 1 #pragma once
pnysten 2:d0d57af6c9df 2 #include <stdio.h>
pnysten 2:d0d57af6c9df 3
pnysten 2:d0d57af6c9df 4 #define DEBUG 1
pnysten 2:d0d57af6c9df 5 #undef DEBUG
pnysten 2:d0d57af6c9df 6
pnysten 2:d0d57af6c9df 7 #define DBG_NEWLINE "\n"
pnysten 2:d0d57af6c9df 8
pnysten 2:d0d57af6c9df 9 #define INFO(...) printf(__VA_ARGS__); printf(DBG_NEWLINE);
pnysten 2:d0d57af6c9df 10 #define INFOX(...); printf(__VA_ARGS__);
pnysten 2:d0d57af6c9df 11 #define ERR(...) printf(__VA_ARGS__); printf(DBG_NEWLINE);
pnysten 2:d0d57af6c9df 12
pnysten 2:d0d57af6c9df 13 #ifdef DEBUG
pnysten 2:d0d57af6c9df 14 #define DBG(...) fprintf(stderr,"%s:%d ",__FILE__,__LINE__); fprintf(stderr,__VA_ARGS__); fprintf(stderr,"\r\n");
pnysten 2:d0d57af6c9df 15 #define DBGX(...) fprintf(stderr,__VA_ARGS__);
pnysten 2:d0d57af6c9df 16 #define DBGLX(...) fprintf(stderr,"%s:%d ",__FILE__,__LINE__); fprintf(stderr,__VA_ARGS__);
pnysten 2:d0d57af6c9df 17 #define DBG_PDU() printBin();
pnysten 2:d0d57af6c9df 18 #else
pnysten 2:d0d57af6c9df 19 #define DBG(...) {};
pnysten 2:d0d57af6c9df 20 #define DBGX(...) {};
pnysten 2:d0d57af6c9df 21 #define DBGLX(...) {};
pnysten 2:d0d57af6c9df 22 #define DBG_PDU() {};
pnysten 2:d0d57af6c9df 23 #endif