Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of SX1276Lib by
Revision 24:9100348e6c28, committed 2016-02-17
- Comitter:
- tmulrooney
- Date:
- Wed Feb 17 00:47:12 2016 +0000
- Parent:
- 23:273a2f93ae99
- Commit message:
- pin changes for FRDK-K22F
Changed in this revision
--- a/sx1272/sx1272-hal.cpp Tue Feb 09 02:05:06 2016 +0000 +++ b/sx1272/sx1272-hal.cpp Wed Feb 17 00:47:12 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
--- a/sx1272/sx1272-hal.h Tue Feb 09 02:05:06 2016 +0000 +++ b/sx1272/sx1272-hal.h Wed Feb 17 00:47:12 2016 +0000 @@ -58,8 +58,7 @@ public: SX1272MB1xAS( RadioEvents_t *events, -// PinName mosi, PinName miso, PinName sclk, PinName nss, PinName reset, - PinName PTD6, PinName PTD7, PinName PTD5, PinName PTD4, PinName reset, + PinName mosi, PinName miso, PinName sclk, PinName nss, PinName reset, PinName dio0, PinName dio1, PinName dio2, PinName dio3, PinName dio4, PinName dio5, PinName antSwitch );
--- a/sx1272/sx1272.h Tue Feb 09 02:05:06 2016 +0000 +++ b/sx1272/sx1272.h Wed Feb 17 00:47:12 2016 +0000 @@ -110,8 +110,7 @@ public: SX1272( RadioEvents_t *events, -// PinName mosi, PinName miso, PinName sclk, PinName nss, PinName reset, - PinName PTD6, PinName PTD7, PinName PTD5, PinName PTD4, PinName reset, + PinName mosi, PinName miso, PinName sclk, PinName nss, PinName reset, PinName dio0, PinName dio1, PinName dio2, PinName dio3, PinName dio4, PinName dio5 ); SX1272( RadioEvents_t *events ); virtual ~SX1272( );