SX1272 Ping Pong test working with the Freescale K22F microcontroller and the Semtech SX1272 evaluation module.
Fork of SX1272Lib by
Diff: sx1272/sx1272-hal.cpp
- Revision:
- 24:f103f1004961
- Parent:
- 23:273a2f93ae99
diff -r 273a2f93ae99 -r f103f1004961 sx1272/sx1272-hal.cpp --- a/sx1272/sx1272-hal.cpp Tue Feb 09 02:05:06 2016 +0000 +++ b/sx1272/sx1272-hal.cpp Thu Feb 11 14:47:16 2016 +0000 @@ -45,7 +45,7 @@ RadioRegistersInit( ); SetModem( MODEM_FSK ); -// SetModem( MODEM_LORA ); + this->settings.State = RF_IDLE ; } @@ -61,7 +61,7 @@ fake( A3 ) #else : SX1272( events, D11, D12, D13, D10, A0, D2, D3, D4, D5, D8, D9 ), - antSwitch( A4 ), + antSwitch( PTC6 ), //changed from A4 to PTC6 by jlc fake( A3 ) #endif { @@ -83,7 +83,7 @@ RadioRegistersInit( ); - SetModem( MODEM_FSK ); + // SetModem( MODEM_LORA ); this->settings.State = RF_IDLE ; @@ -223,7 +223,7 @@ void SX1272MB1xAS::SetAntSw( uint8_t rxTx ) { - debug("SetAntSw\r\n"); + debug("SetAntSw %d\r\n",rxTx); if( this->rxTx == rxTx ) { //no need to go further