for India band 30dBm LoRa Module, DSPLoRa based on code from Semtech and as modified by Sachin Pukale/ TCL/
Dependencies: mbed Chainable_RGB_LED DigitDisplay LoRaWAN-lib SX1276Lib
Fork of DSP_LoRaWAN by
board/board.h@7:5c0e1dfdf0c6, 2017-01-05 (annotated)
- Committer:
- akshaymishra
- Date:
- Thu Jan 05 03:47:15 2017 +0000
- Revision:
- 7:5c0e1dfdf0c6
- Parent:
- 1:c365eaf833bb
Address update
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mluis | 0:cb80564f40e1 | 1 | /* |
mluis | 0:cb80564f40e1 | 2 | / _____) _ | | |
mluis | 0:cb80564f40e1 | 3 | ( (____ _____ ____ _| |_ _____ ____| |__ |
mluis | 0:cb80564f40e1 | 4 | \____ \| ___ | (_ _) ___ |/ ___) _ \ |
mluis | 0:cb80564f40e1 | 5 | _____) ) ____| | | || |_| ____( (___| | | | |
mluis | 0:cb80564f40e1 | 6 | (______/|_____)_|_|_| \__)_____)\____)_| |_| |
mluis | 0:cb80564f40e1 | 7 | (C)2015 Semtech |
mluis | 0:cb80564f40e1 | 8 | |
mluis | 0:cb80564f40e1 | 9 | Description: Target board general functions implementation |
mluis | 0:cb80564f40e1 | 10 | |
mluis | 0:cb80564f40e1 | 11 | License: Revised BSD License, see LICENSE.TXT file include in the project |
mluis | 0:cb80564f40e1 | 12 | |
mluis | 0:cb80564f40e1 | 13 | Maintainer: Miguel Luis and Gregory Cristian |
mluis | 0:cb80564f40e1 | 14 | */ |
mluis | 0:cb80564f40e1 | 15 | #ifndef __BOARD_H__ |
mluis | 0:cb80564f40e1 | 16 | #define __BOARD_H__ |
mluis | 0:cb80564f40e1 | 17 | |
mluis | 0:cb80564f40e1 | 18 | #include "mbed.h" |
mluis | 0:cb80564f40e1 | 19 | #include "system/timer.h" |
mluis | 0:cb80564f40e1 | 20 | #include "debug.h" |
mluis | 0:cb80564f40e1 | 21 | #include "system/utilities.h" |
mluis | 0:cb80564f40e1 | 22 | #include "sx1276-hal.h" |
mluis | 0:cb80564f40e1 | 23 | |
spcores | 1:c365eaf833bb | 24 | #define USE_BAND_865 //USE_BAND_868 |
mluis | 0:cb80564f40e1 | 25 | |
mluis | 0:cb80564f40e1 | 26 | extern SX1276MB1xAS Radio; |
mluis | 0:cb80564f40e1 | 27 | |
mluis | 0:cb80564f40e1 | 28 | /*! |
mluis | 0:cb80564f40e1 | 29 | * \brief Initializes the target board peripherals. |
mluis | 0:cb80564f40e1 | 30 | */ |
mluis | 0:cb80564f40e1 | 31 | void BoardInit( void ); |
mluis | 0:cb80564f40e1 | 32 | |
mluis | 0:cb80564f40e1 | 33 | /*! |
mluis | 0:cb80564f40e1 | 34 | * \brief Measure the Battery level |
mluis | 0:cb80564f40e1 | 35 | * |
mluis | 0:cb80564f40e1 | 36 | * \retval value battery level ( 0: very low, 254: fully charged ) |
mluis | 0:cb80564f40e1 | 37 | */ |
mluis | 0:cb80564f40e1 | 38 | uint8_t BoardGetBatteryLevel( void ); |
mluis | 0:cb80564f40e1 | 39 | |
mluis | 0:cb80564f40e1 | 40 | #endif // __BOARD_H__ |