Semtech LoRaWAN-demo configured for 915MHz operation and multi-radio support (SX1276/SX1272)
Dependencies: mbed LoRaWAN-lib SX1272Lib SX1276Lib
Fork of LoRaWAN-demo-72 by
Diff: board/board.h
- Revision:
- 8:a35d5c979745
- Parent:
- 7:5077515c163b
--- a/board/board.h Mon Apr 24 13:29:34 2017 +0000 +++ b/board/board.h Wed Jun 28 19:13:35 2017 +0000 @@ -19,11 +19,22 @@ #include "system/timer.h" #include "debug.h" #include "system/utilities.h" -#include "sx1272-hal.h" + +// Configure LoRaWAN for US (915MHz) +#define USE_BAND_915 + +// Uncomment if using SX1276 +//#define USE_SX1276 -#define USE_BAND_868 +// Radio selection +#ifdef USE_SX1276 +#include "sx1276-hal.h" +extern SX1276MB1xAS Radio; +#else +#include "sx1272-hal.h" +extern SX1272MB2xAS Radio; +#endif -extern SX1272MB2xAS Radio; /*! * \brief Disable interrupts