GPS working with LoRa code - can't transmit faster that once every 6 seconds
Dependencies: mbed LoRaWAN-lib_gps_lora SingleFrequencyLora
board/board.h@13:66d854ad31d8, 2017-11-24 (annotated)
- Committer:
- Rishin
- Date:
- Fri Nov 24 15:20:12 2017 +0000
- Revision:
- 13:66d854ad31d8
Valid GPS data sent over LoRa for roughly 7 mins with no crash
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Rishin | 13:66d854ad31d8 | 1 | /* |
Rishin | 13:66d854ad31d8 | 2 | / _____) _ | | |
Rishin | 13:66d854ad31d8 | 3 | ( (____ _____ ____ _| |_ _____ ____| |__ |
Rishin | 13:66d854ad31d8 | 4 | \____ \| ___ | (_ _) ___ |/ ___) _ \ |
Rishin | 13:66d854ad31d8 | 5 | _____) ) ____| | | || |_| ____( (___| | | | |
Rishin | 13:66d854ad31d8 | 6 | (______/|_____)_|_|_| \__)_____)\____)_| |_| |
Rishin | 13:66d854ad31d8 | 7 | (C)2015 Semtech |
Rishin | 13:66d854ad31d8 | 8 | |
Rishin | 13:66d854ad31d8 | 9 | Description: Target board general functions implementation |
Rishin | 13:66d854ad31d8 | 10 | |
Rishin | 13:66d854ad31d8 | 11 | License: Revised BSD License, see LICENSE.TXT file include in the project |
Rishin | 13:66d854ad31d8 | 12 | |
Rishin | 13:66d854ad31d8 | 13 | Maintainer: Miguel Luis and Gregory Cristian |
Rishin | 13:66d854ad31d8 | 14 | */ |
Rishin | 13:66d854ad31d8 | 15 | #ifndef __BOARD_H__ |
Rishin | 13:66d854ad31d8 | 16 | #define __BOARD_H__ |
Rishin | 13:66d854ad31d8 | 17 | |
Rishin | 13:66d854ad31d8 | 18 | #include "mbed.h" |
Rishin | 13:66d854ad31d8 | 19 | #include "system/timer.h" |
Rishin | 13:66d854ad31d8 | 20 | #include "debug.h" |
Rishin | 13:66d854ad31d8 | 21 | #include "system/utilities.h" |
Rishin | 13:66d854ad31d8 | 22 | #include "sx1276-hal.h" |
Rishin | 13:66d854ad31d8 | 23 | |
Rishin | 13:66d854ad31d8 | 24 | #define USE_BAND_868 |
Rishin | 13:66d854ad31d8 | 25 | |
Rishin | 13:66d854ad31d8 | 26 | extern SX1276MB1xAS Radio; |
Rishin | 13:66d854ad31d8 | 27 | |
Rishin | 13:66d854ad31d8 | 28 | /*! |
Rishin | 13:66d854ad31d8 | 29 | * \brief Disable interrupts |
Rishin | 13:66d854ad31d8 | 30 | * |
Rishin | 13:66d854ad31d8 | 31 | * \remark IRQ nesting is managed |
Rishin | 13:66d854ad31d8 | 32 | */ |
Rishin | 13:66d854ad31d8 | 33 | void BoardDisableIrq( void ); |
Rishin | 13:66d854ad31d8 | 34 | |
Rishin | 13:66d854ad31d8 | 35 | /*! |
Rishin | 13:66d854ad31d8 | 36 | * \brief Enable interrupts |
Rishin | 13:66d854ad31d8 | 37 | * |
Rishin | 13:66d854ad31d8 | 38 | * \remark IRQ nesting is managed |
Rishin | 13:66d854ad31d8 | 39 | */ |
Rishin | 13:66d854ad31d8 | 40 | void BoardEnableIrq( void ); |
Rishin | 13:66d854ad31d8 | 41 | |
Rishin | 13:66d854ad31d8 | 42 | /*! |
Rishin | 13:66d854ad31d8 | 43 | * \brief Initializes the target board peripherals. |
Rishin | 13:66d854ad31d8 | 44 | */ |
Rishin | 13:66d854ad31d8 | 45 | void BoardInit( void ); |
Rishin | 13:66d854ad31d8 | 46 | |
Rishin | 13:66d854ad31d8 | 47 | /*! |
Rishin | 13:66d854ad31d8 | 48 | * \brief Measure the Battery level |
Rishin | 13:66d854ad31d8 | 49 | * |
Rishin | 13:66d854ad31d8 | 50 | * \retval value battery level ( 0: very low, 254: fully charged ) |
Rishin | 13:66d854ad31d8 | 51 | */ |
Rishin | 13:66d854ad31d8 | 52 | uint8_t BoardGetBatteryLevel( void ); |
Rishin | 13:66d854ad31d8 | 53 | |
Rishin | 13:66d854ad31d8 | 54 | #endif // __BOARD_H__ |