SX1276Lib

Fork of SX1276Lib by Semtech

Files at this revision

API Documentation at this revision

Comitter:
mistery
Date:
Wed Apr 19 07:57:39 2017 +0000
Parent:
22:7f3aab69cca9
Commit message:
SX

Changed in this revision

sx1276/sx1276-hal.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 7f3aab69cca9 -r 5bdc3d7475c3 sx1276/sx1276-hal.cpp
--- a/sx1276/sx1276-hal.cpp	Thu Nov 26 16:55:15 2015 +0000
+++ b/sx1276/sx1276-hal.cpp	Wed Apr 19 07:57:39 2017 +0000
@@ -57,7 +57,7 @@
                             antSwitch( P0_23 ), 
                             fake( A3 )
                         #else
-                        :   SX1276( events, D11, D12, D13, D10, A0, D2, D3, D4, D5, D8, D9 ),
+                        :   SX1276( events, PA_7, PA_6, PA_5, PA_4, PA_3, PA_0, PA_1, PA_2, D5, D8, D9 ),
                             antSwitch( A4 ), 
                             fake( A3 )
                         #endif
@@ -132,6 +132,8 @@
         spi.frequency( frequencyToSet );
     #elif( defined ( TARGET_KL25Z ) ) //busclock frequency is halved -> double the spi frequency to compensate
         spi.frequency( frequencyToSet * 2 );
+    #elif( defined ( TARGET_NUCLEO_F103RB ) ) //busclock frequency is halved -> double the spi frequency to compensate
+        spi.frequency( frequencyToSet);
     #else
         #warning "Check the board's SPI frequency"
     #endif
@@ -140,7 +142,7 @@
 
 void SX1276MB1xAS::IoIrqInit( DioIrqHandler *irqHandlers )
 {
-#if( defined ( TARGET_NUCLEO_L152RE ) ||  defined ( TARGET_LPC11U6X ) )
+#if( defined ( TARGET_NUCLEO_L152RE ) ||  defined ( TARGET_LPC11U6X ) ||  defined ( TARGET_NUCLEO_F103RB ))
     dio0.mode(PullDown);
     dio1.mode(PullDown);   
     dio2.mode(PullDown);