pin pong

Dependents:   SX1272PingPong

Fork of SX1276Lib by Semtech

Files at this revision

API Documentation at this revision

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

sx1272/sx1272-hal.cpp Show annotated file Show diff for this revision Revisions of this file
sx1272/sx1272-hal.h Show annotated file Show diff for this revision Revisions of this file
sx1272/sx1272.h Show annotated file Show diff for this revision Revisions of this file
diff -r 273a2f93ae99 -r 9100348e6c28 sx1272/sx1272-hal.cpp
--- 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
diff -r 273a2f93ae99 -r 9100348e6c28 sx1272/sx1272-hal.h
--- 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 ); 
     
diff -r 273a2f93ae99 -r 9100348e6c28 sx1272/sx1272.h
--- 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( );