SX1276 library for modtronix inair9. Edited for use with NRF51DK board.

Dependents:   InAir9_PingPong

Fork of SX1276Lib_modtronix by modtronix H

Revision:
24:1346d1c71c40
Parent:
22:20db480143c9
Child:
25:72381be1b0ce
--- a/sx1276/sx1276-inAir.cpp	Wed May 13 11:38:38 2015 +1000
+++ b/sx1276/sx1276-inAir.cpp	Fri Jul 24 21:35:37 2015 +1000
@@ -71,7 +71,7 @@
                         //For SHD3I with BOARD_INAIR4 in imod3, on FRDM-KL25Z board
                         :   SX1276( txDone, txTimeout, rxDone, rxTimeout, rxError, fhssChangeChannel, cadDone,
                                     D11/*MOSI*/, D12/*MISO*/, D13/*SCLK*/, D7/*CS*/, A5/*RST*/, D2/*DIO0*/, D8, D4, A4, PTD7/*FAKE!!!*/, D3/*DIO5*/ ),
-                        #elif ( defined ( TARGET_NZ32ST1L ) )
+                        #elif ( defined(TARGET_NZ32ST1L) || defined(TARGET_NZ32SC151) )
                         //For NZ32ST1L board with BOARD_INAIR4 in imod2
                         :   SX1276( txDone, txTimeout, rxDone, rxTimeout, rxError, fhssChangeChannel, cadDone,
                                     PB_5/*MOSI*/, PB_4/*MISO*/, PB_3/*SCLK*/, PC_8/*CS*/, PA_9/*RST*/, PB_0/*DIO0*/, PB_1, PC_6, PA_10, PC_3/*FAKE!!!*/, PC_13/*DIO5*/ ),
@@ -133,7 +133,7 @@
     //uint32_t frequencyToSet = 8000000;
     // TEST TEST
     uint32_t frequencyToSet = 1000000;   //DJH - Reduced speed to 1MHz
-    #if( defined ( TARGET_NUCLEO_L152RE ) || defined (TARGET_NUCLEO_F401RE) || defined ( TARGET_LPC11U6X ) || defined (TARGET_K64F) || defined ( TARGET_NZ32ST1L ) )
+    #if( defined ( TARGET_NUCLEO_L152RE ) || defined (TARGET_NUCLEO_F401RE) || defined ( TARGET_LPC11U6X ) || defined (TARGET_K64F) || defined ( TARGET_NZ32ST1L ) || defined(TARGET_NZ32SC151) )
         spi.frequency( frequencyToSet );
     #elif( defined ( TARGET_KL25Z ) ) //busclock frequency is halved -> double the spi frequency to compensate
         spi.frequency( frequencyToSet * 2 );
@@ -146,7 +146,7 @@
 void SX1276inAir::IoIrqInit( DioIrqHandler *irqHandlers )
 {
     //TARGET_KL25Z board does not have pulldown resistors, seems like TARGET_K64F does have them
-    #if( defined ( TARGET_NUCLEO_L152RE )  || defined (TARGET_NUCLEO_F401RE) ||  defined ( TARGET_LPC11U6X ) || defined (TARGET_K64F) || defined ( TARGET_NZ32ST1L ))
+    #if( defined ( TARGET_NUCLEO_L152RE )  || defined (TARGET_NUCLEO_F401RE) ||  defined ( TARGET_LPC11U6X ) || defined (TARGET_K64F) || defined ( TARGET_NZ32ST1L ) || defined(TARGET_NZ32SC151))
         dio0.mode(PullDown);
         dio1.mode(PullDown);   
         dio2.mode(PullDown);