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
board/board.h
- Committer:
- shaunkrnelson
- Date:
- 2017-06-28
- Revision:
- 9:3811f426252c
- Parent:
- 8:a35d5c979745
File content as of revision 9:3811f426252c:
/* / _____) _ | | ( (____ _____ ____ _| |_ _____ ____| |__ \____ \| ___ | (_ _) ___ |/ ___) _ \ _____) ) ____| | | || |_| ____( (___| | | | (______/|_____)_|_|_| \__)_____)\____)_| |_| (C)2015 Semtech Description: Target board general functions implementation License: Revised BSD License, see LICENSE.TXT file include in the project Maintainer: Miguel Luis and Gregory Cristian */ #ifndef __BOARD_H__ #define __BOARD_H__ #include "mbed.h" #include "system/timer.h" #include "debug.h" #include "system/utilities.h" // Configure LoRaWAN for US (915MHz) #define USE_BAND_915 // Uncomment if using SX1276 //#define USE_SX1276 // Radio selection #ifdef USE_SX1276 #include "sx1276-hal.h" extern SX1276MB1xAS Radio; #else #include "sx1272-hal.h" extern SX1272MB2xAS Radio; #endif /*! * \brief Disable interrupts * * \remark IRQ nesting is managed */ void BoardDisableIrq( void ); /*! * \brief Enable interrupts * * \remark IRQ nesting is managed */ void BoardEnableIrq( void ); /*! * \brief Initializes the target board peripherals. */ void BoardInit( void ); /*! * \brief Measure the Battery level * * \retval value battery level ( 0: very low, 254: fully charged ) */ uint8_t BoardGetBatteryLevel( void ); #endif // __BOARD_H__