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 SX1272Lib by
Diff: sx1272/sx1272-hal.cpp
- Revision:
- 4:90bd79f1b458
- Parent:
- 2:cd1093b6676f
- Child:
- 6:69d5976b504d
--- a/sx1272/sx1272-hal.cpp Thu Mar 10 10:20:44 2016 +0000
+++ b/sx1272/sx1272-hal.cpp Fri May 13 14:49:34 2016 +0000
@@ -46,13 +46,13 @@
this->RadioEvents = events;
Reset( );
-
+
IoInit( );
-
+
SetOpMode( RF_OPMODE_SLEEP );
-
+
IoIrqInit( dioIrq );
-
+
RadioRegistersInit( );
SetModem( MODEM_FSK );
@@ -60,7 +60,7 @@
this->settings.State = RF_IDLE ;
}
-SX1272MB2xAS::SX1272MB2xAS( RadioEvents_t *events )
+SX1272MB2xAS::SX1272MB2xAS( RadioEvents_t *events )
#if defined ( TARGET_NUCLEO_L152RE )
: SX1272( events, D11, D12, D13, D10, A0, D2, D3, D4, D5, A3, D9 ), // For NUCLEO L152RE dio4 is on port A3
AntSwitch( A4 ),
@@ -73,7 +73,7 @@
#elif defined ( TARGET_MTS_MDOT_F411RE )
: SX1272( events, LORA_MOSI, LORA_MISO, LORA_SCK, LORA_NSS, LORA_RESET, LORA_DIO0, LORA_DIO1, LORA_DIO2, LORA_DIO3, LORA_DIO4, LORA_DIO5 ),
TxCtl( LORA_TXCTL ),
- RxCtl( LORA_RXCTL )
+ RxCtl( LORA_RXCTL )
#else
: SX1272( events, D11, D12, D13, D10, A0, D2, D3, D4, D5, D8, D9 ),
AntSwitch( A4 ),
@@ -83,16 +83,16 @@
this->RadioEvents = events;
Reset( );
-
+
boardConnected = UNKNOWN;
-
+
DetectBoardType( );
-
+
IoInit( );
-
+
SetOpMode( RF_OPMODE_SLEEP );
IoIrqInit( dioIrq );
-
+
RadioRegistersInit( );
SetModem( MODEM_FSK );
@@ -268,12 +268,6 @@
break;
}
#elif defined ( TARGET_MTS_MDOT_F411RE )
- if( this->rxTx == rxTx )
- {
- //no need to go further
- return;
- }
-
/* SKY13350 */
this->rxTx = rxTx;
@@ -289,12 +283,6 @@
this->RxCtl = 1;
}
#else
- if( this->rxTx == rxTx )
- {
- //no need to go further
- return;
- }
-
this->rxTx = rxTx;
// 1: Tx, 0: Rx
