Skip to content

Commit ab8b691

Browse files
Kimmo Vaisanenkivaisan
authored andcommitted
Remove usage of DEVICE_SPI flag
DEVICE_SPI flag is no longer needed as our CI only builds mbed-os-example-lorawan to targets which really have lora hw.
1 parent 4691c37 commit ab8b691

File tree

4 files changed

+0
-18
lines changed

4 files changed

+0
-18
lines changed

SX1272/SX1272_LoRaRadio.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ SPDX-License-Identifier: BSD-3-Clause
3232
#include "sx1272Regs-Fsk.h"
3333
#include "sx1272Regs-LoRa.h"
3434

35-
#ifdef DEVICE_SPI
36-
3735
#if defined(FEATURE_COMMON_PAL)
3836
#include "mbed_trace.h"
3937
#define TRACE_GROUP "LRAD"
@@ -2169,6 +2167,3 @@ void SX1272_LoRaRadio::handle_timeout_irq()
21692167
break;
21702168
}
21712169
}
2172-
2173-
#endif //DEVICE_SPI
2174-

SX1272/SX1272_LoRaRadio.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ SPDX-License-Identifier: BSD-3-Clause
3939

4040
#include "lorawan/LoRaRadio.h"
4141

42-
#ifdef DEVICE_SPI
43-
4442
#ifdef MBED_CONF_SX1272_LORA_DRIVER_BUFFER_SIZE
4543
#define MAX_DATA_BUFFER_SIZE_SX172 MBED_CONF_SX1272_LORA_DRIVER_BUFFER_SIZE
4644
#else
@@ -426,6 +424,4 @@ class SX1272_LoRaRadio: public LoRaRadio {
426424
void handle_timeout_irq();
427425
};
428426

429-
#endif //DEVICE_SPI
430-
431427
#endif /* SX1272_LORARADIO_H_ */

SX1276/SX1276_LoRaRadio.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ SPDX-License-Identifier: BSD-3-Clause
3030
#include "sx1276Regs-Fsk.h"
3131
#include "sx1276Regs-LoRa.h"
3232

33-
#ifdef DEVICE_SPI
34-
3533
/*!
3634
* Sync word for Private LoRa networks
3735
*/
@@ -2321,6 +2319,3 @@ void SX1276_LoRaRadio::handle_timeout_irq()
23212319
}
23222320
}
23232321
// EOF
2324-
2325-
#endif //DEVICE_SPI
2326-

SX1276/SX1276_LoRaRadio.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ SPDX-License-Identifier: BSD-3-Clause
4545
#define MAX_DATA_BUFFER_SIZE_SX1276 256
4646
#endif
4747

48-
#ifdef DEVICE_SPI
49-
5048
/**
5149
* Radio driver implementation for Semtech SX1272 plus variants.
5250
* Supports only SPI at the moment. Implements pure virtual LoRaRadio class.
@@ -437,6 +435,4 @@ class SX1276_LoRaRadio: public LoRaRadio {
437435
void handle_timeout_irq();
438436
};
439437

440-
#endif //DEVICE_SPI
441-
442438
#endif // SX1276_LORARADIO_H_

0 commit comments

Comments
 (0)