SX1276 library for modtronix inair9. Edited for use with NRF51DK board.
Fork of SX1276Lib_modtronix by
Diff: sx1276/sx1276-inAir.cpp
- Revision:
- 20:7cf7c08f0088
- Parent:
- 18:cdb08d710838
- Child:
- 21:d3f64a075f0c
diff -r ef26bd64cb67 -r 7cf7c08f0088 sx1276/sx1276-inAir.cpp --- a/sx1276/sx1276-inAir.cpp Wed Mar 04 04:57:57 2015 +0000 +++ b/sx1276/sx1276-inAir.cpp Thu Apr 02 01:02:35 2015 +0000 @@ -146,9 +146,9 @@ nss = 1; spi.format( 8,0 ); //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 ) ) - debug( "SpiInit!\n\r", NULL ); spi.frequency( frequencyToSet ); #elif( defined ( TARGET_KL25Z ) ) //busclock frequency is halved -> double the spi frequency to compensate spi.frequency( frequencyToSet * 2 );