Driver for the SX1272 RF Transceiver
Dependents: LoRaWAN_mbed_lmic_agriculture_app
Fork of SX1272Lib by
Diff: sx1272/sx1272-hal.cpp
- Revision:
- 8:60c42278731e
- Parent:
- 7:b988b60083a1
--- a/sx1272/sx1272-hal.cpp Mon Apr 24 09:26:08 2017 +0000 +++ b/sx1272/sx1272-hal.cpp Mon Apr 02 12:06:02 2018 +0000 @@ -11,6 +11,29 @@ License: Revised BSD License, see LICENSE.TXT file include in the project Maintainers: Miguel Luis, Gregory Cristian and Nicolas Huguenin +///////////////////////////////////////////////////////////////////////////// + + Used by Giorgos Tsapparellas for Internet of Things (IoT) smart monitoring + device for agriculture using LoRaWAN technology. + + Date of issued copy: 20 January 2018 + + Modifications: + - No external modifications of the existing "AS IT IS" software. + + Notice that, connectivity for SX1272MB2xAS LoRa shield is allocated as: + SX1272MB2xAS MBED Pin + SCK D13 + MOSI D11 + MISO D12 + NSS D10 + DIO0 D2 + DIO1 D3 + DIO2 D4 + DIO3 D5 + DIO4 D8 + DIO5 D9 + NRESET A0 */ #include "sx1272-hal.h" @@ -198,11 +221,11 @@ dio3.mode( PullDown ); dio4.mode( PullDown ); #endif - dio0.rise( mbed::callback( this, static_cast< TriggerMB2xAS > ( irqHandlers[0] ) ) ); - dio1.rise( mbed::callback( this, static_cast< TriggerMB2xAS > ( irqHandlers[1] ) ) ); - dio2.rise( mbed::callback( this, static_cast< TriggerMB2xAS > ( irqHandlers[2] ) ) ); - dio3.rise( mbed::callback( this, static_cast< TriggerMB2xAS > ( irqHandlers[3] ) ) ); - dio4.rise( mbed::callback( this, static_cast< TriggerMB2xAS > ( irqHandlers[4] ) ) ); + dio0.rise( this, static_cast< TriggerMB2xAS > ( irqHandlers[0] ) ); + dio1.rise( this, static_cast< TriggerMB2xAS > ( irqHandlers[1] ) ); + dio2.rise( this, static_cast< TriggerMB2xAS > ( irqHandlers[2] ) ); + dio3.rise( this, static_cast< TriggerMB2xAS > ( irqHandlers[3] ) ); + dio4.rise( this, static_cast< TriggerMB2xAS > ( irqHandlers[4] ) ); } void SX1272MB2xAS::IoDeInit( void )