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)
Diff: system/utilities.cpp
- Revision:
- 3:9c6f7f082151
- Parent:
- 1:352f608c3337
diff -r 01e3c65c7c3a -r 9c6f7f082151 system/utilities.cpp --- a/system/utilities.cpp Thu Nov 26 17:22:53 2015 +0000 +++ b/system/utilities.cpp Thu Jan 07 15:14:22 2016 +0000 @@ -51,6 +51,15 @@ } } +void memcpyr( uint8_t *dst, const uint8_t *src, uint16_t size ) +{ + dst = dst + ( size - 1 ); + while( size-- ) + { + *dst-- = *src++; + } +} + void memset1( uint8_t *dst, uint8_t value, uint16_t size ) { while( size-- )