Sending IKS01A1 temperature sensor to LoRaWAN port-5 uplink
Dependencies: X_NUCLEO_IKS01A1 mbed LoRaWAN-lib SX1276Lib
Fork of LoRaWAN-demo-76 by
Use IKS01A1 sensor shield with SX1272 shield or SX1276 shield.
Sends temperature sensor to LoRaWAN uplink port 5.
Remove SB22 and SB23 from IKS01A1 before using
SB28 conflicts with DIO0 on radio. (TxDone RxDone)
SB22 conflicts with RxTx on radio. (antenna switch)
board/board.h@1:352f608c3337, 2015-11-26 (annotated)
- Committer:
- mluis
- Date:
- Thu Nov 26 12:59:52 2015 +0000
- Revision:
- 1:352f608c3337
- Parent:
- 0:92bca02df485
- Child:
- 3:9c6f7f082151
Changed application architecture to mimic GitHub LoRaMac-node repository.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mluis | 0:92bca02df485 | 1 | /* |
mluis | 0:92bca02df485 | 2 | / _____) _ | | |
mluis | 0:92bca02df485 | 3 | ( (____ _____ ____ _| |_ _____ ____| |__ |
mluis | 0:92bca02df485 | 4 | \____ \| ___ | (_ _) ___ |/ ___) _ \ |
mluis | 0:92bca02df485 | 5 | _____) ) ____| | | || |_| ____( (___| | | | |
mluis | 0:92bca02df485 | 6 | (______/|_____)_|_|_| \__)_____)\____)_| |_| |
mluis | 0:92bca02df485 | 7 | (C)2015 Semtech |
mluis | 0:92bca02df485 | 8 | |
mluis | 0:92bca02df485 | 9 | Description: Target board general functions implementation |
mluis | 0:92bca02df485 | 10 | |
mluis | 0:92bca02df485 | 11 | License: Revised BSD License, see LICENSE.TXT file include in the project |
mluis | 0:92bca02df485 | 12 | |
mluis | 0:92bca02df485 | 13 | Maintainer: Miguel Luis and Gregory Cristian |
mluis | 0:92bca02df485 | 14 | */ |
mluis | 0:92bca02df485 | 15 | #ifndef __BOARD_H__ |
mluis | 0:92bca02df485 | 16 | #define __BOARD_H__ |
mluis | 0:92bca02df485 | 17 | |
mluis | 0:92bca02df485 | 18 | #include "mbed.h" |
mluis | 1:352f608c3337 | 19 | #include "system/timer.h" |
mluis | 0:92bca02df485 | 20 | #include "debug.h" |
mluis | 1:352f608c3337 | 21 | #include "system/utilities.h" |
mluis | 1:352f608c3337 | 22 | #include "sx1276-hal.h" |
mluis | 1:352f608c3337 | 23 | |
mluis | 1:352f608c3337 | 24 | #define USE_BAND_915_HYBRID |
mluis | 1:352f608c3337 | 25 | |
mluis | 1:352f608c3337 | 26 | extern SX1276MB1xAS Radio; |
mluis | 0:92bca02df485 | 27 | |
mluis | 0:92bca02df485 | 28 | /*! |
mluis | 0:92bca02df485 | 29 | * \brief Initializes the target board peripherals. |
mluis | 0:92bca02df485 | 30 | */ |
mluis | 0:92bca02df485 | 31 | void BoardInit( void ); |
mluis | 0:92bca02df485 | 32 | |
mluis | 0:92bca02df485 | 33 | /*! |
mluis | 0:92bca02df485 | 34 | * \brief Measure the Battery level |
mluis | 0:92bca02df485 | 35 | * |
mluis | 0:92bca02df485 | 36 | * \retval value battery level ( 0: very low, 254: fully charged ) |
mluis | 0:92bca02df485 | 37 | */ |
mluis | 1:352f608c3337 | 38 | uint8_t BoardGetBatteryLevel( void ); |
mluis | 0:92bca02df485 | 39 | |
mluis | 0:92bca02df485 | 40 | |
mluis | 0:92bca02df485 | 41 | #endif // __BOARD_H__ |