LoRA production board
Dependencies: mbed LoRaWAN-lib SX1272Liby
Fork of frdm_LoRa_Connect_Woodstream_Demo_tjm by
board/board.h@10:70cff9a230cb, 2016-08-09 (annotated)
- Committer:
- tmulrooney
- Date:
- Tue Aug 09 18:20:29 2016 +0000
- Revision:
- 10:70cff9a230cb
- Parent:
- 2:a2d476f1066e
fixed antSwitch PTC0
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mluis | 0:45496a70a8a5 | 1 | /* |
mluis | 0:45496a70a8a5 | 2 | / _____) _ | | |
mluis | 0:45496a70a8a5 | 3 | ( (____ _____ ____ _| |_ _____ ____| |__ |
mluis | 0:45496a70a8a5 | 4 | \____ \| ___ | (_ _) ___ |/ ___) _ \ |
mluis | 0:45496a70a8a5 | 5 | _____) ) ____| | | || |_| ____( (___| | | | |
mluis | 0:45496a70a8a5 | 6 | (______/|_____)_|_|_| \__)_____)\____)_| |_| |
mluis | 0:45496a70a8a5 | 7 | (C)2015 Semtech |
mluis | 0:45496a70a8a5 | 8 | |
mluis | 0:45496a70a8a5 | 9 | Description: Target board general functions implementation |
mluis | 0:45496a70a8a5 | 10 | |
mluis | 0:45496a70a8a5 | 11 | License: Revised BSD License, see LICENSE.TXT file include in the project |
mluis | 0:45496a70a8a5 | 12 | |
mluis | 0:45496a70a8a5 | 13 | Maintainer: Miguel Luis and Gregory Cristian |
mluis | 0:45496a70a8a5 | 14 | */ |
mluis | 0:45496a70a8a5 | 15 | #ifndef __BOARD_H__ |
mluis | 0:45496a70a8a5 | 16 | #define __BOARD_H__ |
mluis | 0:45496a70a8a5 | 17 | |
mluis | 0:45496a70a8a5 | 18 | #include "mbed.h" |
mluis | 0:45496a70a8a5 | 19 | #include "system/timer.h" |
mluis | 0:45496a70a8a5 | 20 | #include "debug.h" |
mluis | 0:45496a70a8a5 | 21 | #include "system/utilities.h" |
mluis | 0:45496a70a8a5 | 22 | #include "sx1272-hal.h" |
mluis | 0:45496a70a8a5 | 23 | |
tmulrooney | 2:a2d476f1066e | 24 | //#define USE_BAND_868 |
tmulrooney | 2:a2d476f1066e | 25 | //#define USE_BAND_915 |
tmulrooney | 2:a2d476f1066e | 26 | #define USE_BAND_915_HYBRID 0 |
mluis | 0:45496a70a8a5 | 27 | |
mluis | 1:263aa4ff29cd | 28 | extern SX1272MB2xAS Radio; |
mluis | 0:45496a70a8a5 | 29 | |
mluis | 0:45496a70a8a5 | 30 | /*! |
mluis | 0:45496a70a8a5 | 31 | * \brief Initializes the target board peripherals. |
mluis | 0:45496a70a8a5 | 32 | */ |
mluis | 0:45496a70a8a5 | 33 | void BoardInit( void ); |
mluis | 0:45496a70a8a5 | 34 | |
mluis | 0:45496a70a8a5 | 35 | /*! |
mluis | 0:45496a70a8a5 | 36 | * \brief Measure the Battery level |
mluis | 0:45496a70a8a5 | 37 | * |
mluis | 0:45496a70a8a5 | 38 | * \retval value battery level ( 0: very low, 254: fully charged ) |
mluis | 0:45496a70a8a5 | 39 | */ |
mluis | 0:45496a70a8a5 | 40 | uint8_t BoardGetBatteryLevel( void ); |
mluis | 0:45496a70a8a5 | 41 | |
mluis | 0:45496a70a8a5 | 42 | #endif // __BOARD_H__ |