lora experiments

Dependencies:   BLE_API LoRaWAN-lib SX1276Lib mbed nRF51822 HCSR04Lib

Fork of LoRa by Olav Nymoen

Committer:
haaspors
Date:
Thu Jun 09 14:42:23 2016 +0000
Revision:
4:63d6744a61b6
Parent:
0:4c1fcbfcc7bf
Add 'device joined lora network' gatt char.

Who changed what in which revision?

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