Skip to content

Commit

Permalink
Merge pull request #1343 from lyusupov/master
Browse files Browse the repository at this point in the history
fix build with Arduino Core for Silicon Labs EFR32 Series 2
  • Loading branch information
jgromes authored Dec 14, 2024
2 parents 957a533 + 67e5c6e commit 933981e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/BuildOpt.h
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,13 @@
#define RADIOLIB_ARDUINOHAL_PIN_STATUS_CAST (PinStatus)
#define RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST (PinStatus)

#elif defined(ARDUINO_ARCH_SILABS)
// Silicon Labs Arduino
#define RADIOLIB_PLATFORM "Arduino Silicon Labs"
#define RADIOLIB_ARDUINOHAL_PIN_MODE_CAST (PinMode)
#define RADIOLIB_ARDUINOHAL_PIN_STATUS_CAST (PinStatus)
#define RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST (PinStatus)

#else
// other Arduino platforms not covered by the above list - this may or may not work
#define RADIOLIB_PLATFORM "Unknown Arduino"
Expand Down

0 comments on commit 933981e

Please sign in to comment.