I made a fork of a generic library that was developed with support for RFM95 LoRa module that I found online. I Made a few changes and made it compatible with hardware limitations of the MAX32620FTHR and MAX32630FTHR module.
Dependents: MAX326xxFTHR_LoRa_RFM95 MAX326xxFTHR_LoRa_PingPong MAX326xxFTHR_RFM95_LoRa_PingPong MAX326xxFTHR_LoRa_RFM95_PingPong_Example ... more
Fork of SX1276GenericLib by
Diff: sx1276/sx1276.cpp
- Revision:
- 64:b721e6ab656a
- Parent:
- 63:5b9d391244dc
- Child:
- 81:d288917af0ce
--- a/sx1276/sx1276.cpp Thu Jun 29 19:30:24 2017 +0200 +++ b/sx1276/sx1276.cpp Fri Jun 30 16:08:05 2017 +0200 @@ -95,7 +95,6 @@ SX1276::SX1276( RadioEvents_t *events) : Radio( events ), isRadioActive( false ) { - wait_ms( 10 ); this->rxtxBuffer = new uint8_t[RX_BUFFER_SIZE]; this->RadioEvents = events; @@ -163,7 +162,7 @@ SetOpMode( RF_OPMODE_RECEIVER ); - wait_ms( 1 ); + Sleep_ms( 1 ); rssi = GetRssi( modem ); @@ -202,7 +201,7 @@ for( i = 0; i < 32; i++ ) { - wait_ms( 1 ); + Sleep_ms( 1 ); // Unfiltered RSSI value reading. Only takes the LSB value rnd |= ( ( uint32_t )Read( REG_LR_RSSIWIDEBAND ) & 0x01 ) << i; } @@ -746,7 +745,7 @@ if( ( Read( REG_OPMODE ) & ~RF_OPMODE_MASK ) == RF_OPMODE_SLEEP ) { Standby( ); - wait_ms( 1 ); + Sleep_ms( 1 ); } // Write payload buffer if (header)