Add support of Nucleo-F446RE
Dependents: Aloha LoRaBaseStation
Fork of SX1276Lib by
Revision 26:8eef98087d91, committed 2016-05-31
- Comitter:
- rba90
- Date:
- Tue May 31 09:51:27 2016 +0000
- Parent:
- 25:3778e6204cc1
- Commit message:
- Add support of Nucleo-F446RE
Changed in this revision
sx1276/sx1276-hal.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 3778e6204cc1 -r 8eef98087d91 sx1276/sx1276-hal.cpp --- a/sx1276/sx1276-hal.cpp Fri May 13 15:09:10 2016 +0000 +++ b/sx1276/sx1276-hal.cpp Tue May 31 09:51:27 2016 +0000 @@ -128,7 +128,7 @@ nss = 1; spi.format( 8,0 ); uint32_t frequencyToSet = 8000000; - #if( defined ( TARGET_NUCLEO_L152RE ) || defined ( TARGET_LPC11U6X ) ) + #if( defined ( TARGET_NUCLEO_L152RE ) || defined ( TARGET_LPC11U6X ) || defined ( TARGET_NUCLEO_F446RE ) ) spi.frequency( frequencyToSet ); #elif( defined ( TARGET_KL25Z ) ) //busclock frequency is halved -> double the spi frequency to compensate spi.frequency( frequencyToSet * 2 ); @@ -140,7 +140,7 @@ void SX1276MB1xAS::IoIrqInit( DioIrqHandler *irqHandlers ) { -#if( defined ( TARGET_NUCLEO_L152RE ) || defined ( TARGET_LPC11U6X ) ) +#if( defined ( TARGET_NUCLEO_L152RE ) || defined ( TARGET_NUCLEO_F446RE) || defined ( TARGET_LPC11U6X ) ) dio0.mode( PullDown ); dio1.mode( PullDown ); dio2.mode( PullDown );