Espotel
/
LoRaWAN_ELMO_TxRx_Template
Example Tx Rx LoRa code for Multitech Conduit. Based on Semtech stack for ELMO - ver. 4.1.0.
Diff: utils/utilities.cpp
- Revision:
- 1:2be292bd43f9
- Parent:
- 0:c58229885f95
--- a/utils/utilities.cpp Wed Dec 16 14:25:16 2015 +0000 +++ b/utils/utilities.cpp Tue Mar 15 23:27:24 2016 +0000 @@ -11,8 +11,6 @@ */ #include <stdlib.h> #include <stdio.h> -//#include "board.h" -#include "mbed.h" #include "utilities.h" /*! @@ -49,6 +47,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-- )