![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Application example using LoRaWAN-lib MAC layer implementation
Dependencies: mbed LoRaWAN-lib SX1276Lib
Fork of LoRaWAN-demo-76 by
board/board.cpp@8:9d6683e60974, 2016-08-25 (annotated)
- Committer:
- helloqi
- Date:
- Thu Aug 25 13:20:05 2016 +0000
- Revision:
- 8:9d6683e60974
- Parent:
- 1:352f608c3337
LoRaWan demo for sx1276;
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 | #include "mbed.h" |
mluis | 0:92bca02df485 | 16 | #include "board.h" |
mluis | 0:92bca02df485 | 17 | |
mluis | 1:352f608c3337 | 18 | SX1276MB1xAS Radio( NULL ); |
mluis | 1:352f608c3337 | 19 | |
mluis | 0:92bca02df485 | 20 | void BoardInit( void ) |
mluis | 0:92bca02df485 | 21 | { |
mluis | 0:92bca02df485 | 22 | TimerTimeCounterInit( ); |
mluis | 0:92bca02df485 | 23 | } |
mluis | 0:92bca02df485 | 24 | |
mluis | 0:92bca02df485 | 25 | |
mluis | 1:352f608c3337 | 26 | uint8_t BoardGetBatteryLevel( void ) |
mluis | 0:92bca02df485 | 27 | { |
mluis | 0:92bca02df485 | 28 | return 0xFE; |
mluis | 0:92bca02df485 | 29 | } |