Added support to TARGET_NUCLEO_L073RZ
Fork of SX1272Lib by
Revision 8:b733e5329765, committed 2017-09-26
- Comitter:
- c_Ake
- Date:
- Tue Sep 26 05:19:45 2017 +0000
- Parent:
- 7:b988b60083a1
- Commit message:
- Added support for TARGET_NUCLEO_L073RZ
Changed in this revision
sx1272/sx1272-hal.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/sx1272/sx1272-hal.cpp Mon Apr 24 09:26:08 2017 +0000 +++ b/sx1272/sx1272-hal.cpp Tue Sep 26 05:19:45 2017 +0000 @@ -65,7 +65,7 @@ RxCtl ( rxctl ) #else AntSwitch( antSwitch ), - #if( defined ( TARGET_NUCLEO_L152RE ) ) || defined ( TARGET_NUCLEO_L476RG ) + #if( defined ( TARGET_NUCLEO_L152RE ) ) || defined ( TARGET_NUCLEO_L476RG ) || defined (TARGET_NUCLEO_L073RZ) Fake( D8 ) #else Fake( A3 ) @@ -90,7 +90,7 @@ } SX1272MB2xAS::SX1272MB2xAS( RadioEvents_t *events ) - #if defined ( TARGET_NUCLEO_L152RE ) || defined ( TARGET_NUCLEO_L476RG ) + #if defined ( TARGET_NUCLEO_L152RE ) || defined ( TARGET_NUCLEO_L476RG ) || defined (TARGET_NUCLEO_L073RZ) : SX1272( events, D11, D12, D13, D10, A0, D2, D3, D4, D5, A3, D9 ), // For NUCLEO L152RE dio4 is on port A3 AntSwitch( A4 ), Fake( D8 ) @@ -179,7 +179,7 @@ nss = 1; spi.format( 8,0 ); uint32_t frequencyToSet = 8000000; - #if( defined ( TARGET_NUCLEO_L152RE ) || defined ( TARGET_MOTE_L152RC ) || defined ( TARGET_NUCLEO_L476RG ) || defined ( TARGET_LPC11U6X ) || defined ( TARGET_MTS_MDOT_F411RE ) ) + #if( defined ( TARGET_NUCLEO_L152RE ) || defined ( TARGET_MOTE_L152RC ) || defined ( TARGET_NUCLEO_L476RG ) || defined ( TARGET_LPC11U6X ) || defined ( TARGET_MTS_MDOT_F411RE ) || defined (TARGET_NUCLEO_L073RZ)) spi.frequency( frequencyToSet ); #elif( defined ( TARGET_KL25Z ) ) //busclock frequency is halved -> double the spi frequency to compensate spi.frequency( frequencyToSet * 2 ); @@ -191,7 +191,7 @@ void SX1272MB2xAS::IoIrqInit( DioIrqHandler *irqHandlers ) { -#if( defined ( TARGET_NUCLEO_L152RE ) || defined ( TARGET_MOTE_L152RC ) || defined ( TARGET_NUCLEO_L476RG ) || defined ( TARGET_NUCLEO_L476RG ) || defined ( TARGET_LPC11U6X ) ) +#if( defined ( TARGET_NUCLEO_L152RE ) || defined ( TARGET_MOTE_L152RC ) || defined ( TARGET_NUCLEO_L476RG ) || defined ( TARGET_NUCLEO_L476RG ) || defined ( TARGET_LPC11U6X ) || defined (TARGET_NUCLEO_L073RZ)) dio0.mode( PullDown ); dio1.mode( PullDown ); dio2.mode( PullDown );