This code uses Semtech's open source LoRaWAN stack ported to mbed environment.

Dependencies:   mbed LoRaWAN-lib SX1272Lib

Committer:
Mehrad
Date:
Thu Jun 09 23:58:16 2016 +0000
Revision:
0:6155544d38b1
The initial commit.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Mehrad 0:6155544d38b1 1 /*
Mehrad 0:6155544d38b1 2 / _____) _ | |
Mehrad 0:6155544d38b1 3 ( (____ _____ ____ _| |_ _____ ____| |__
Mehrad 0:6155544d38b1 4 \____ \| ___ | (_ _) ___ |/ ___) _ \
Mehrad 0:6155544d38b1 5 _____) ) ____| | | || |_| ____( (___| | | |
Mehrad 0:6155544d38b1 6 (______/|_____)_|_|_| \__)_____)\____)_| |_|
Mehrad 0:6155544d38b1 7 (C)2015 Semtech
Mehrad 0:6155544d38b1 8
Mehrad 0:6155544d38b1 9 Description: Target board general functions implementation
Mehrad 0:6155544d38b1 10
Mehrad 0:6155544d38b1 11 License: Revised BSD License, see LICENSE.TXT file include in the project
Mehrad 0:6155544d38b1 12
Mehrad 0:6155544d38b1 13 Maintainer: Miguel Luis and Gregory Cristian
Mehrad 0:6155544d38b1 14 */
Mehrad 0:6155544d38b1 15 #ifndef __BOARD_H__
Mehrad 0:6155544d38b1 16 #define __BOARD_H__
Mehrad 0:6155544d38b1 17
Mehrad 0:6155544d38b1 18 #include "mbed.h"
Mehrad 0:6155544d38b1 19 #include "system/timer.h"
Mehrad 0:6155544d38b1 20 #include "debug.h"
Mehrad 0:6155544d38b1 21 #include "system/utilities.h"
Mehrad 0:6155544d38b1 22 #include "sx1272-hal.h"
Mehrad 0:6155544d38b1 23
Mehrad 0:6155544d38b1 24 //#define USE_BAND_868
Mehrad 0:6155544d38b1 25 // Mehrad: Changed to Austrlian 915
Mehrad 0:6155544d38b1 26 #define USE_BAND_915_HYBRID
Mehrad 0:6155544d38b1 27
Mehrad 0:6155544d38b1 28 extern SX1272MB2xAS Radio;
Mehrad 0:6155544d38b1 29
Mehrad 0:6155544d38b1 30 /*!
Mehrad 0:6155544d38b1 31 * \brief Initializes the target board peripherals.
Mehrad 0:6155544d38b1 32 */
Mehrad 0:6155544d38b1 33 void BoardInit( void );
Mehrad 0:6155544d38b1 34
Mehrad 0:6155544d38b1 35 /*!
Mehrad 0:6155544d38b1 36 * \brief Measure the Battery level
Mehrad 0:6155544d38b1 37 *
Mehrad 0:6155544d38b1 38 * \retval value battery level ( 0: very low, 254: fully charged )
Mehrad 0:6155544d38b1 39 */
Mehrad 0:6155544d38b1 40 uint8_t BoardGetBatteryLevel( void );
Mehrad 0:6155544d38b1 41
Mehrad 0:6155544d38b1 42 #endif // __BOARD_H__