Skip to content

Commit

Permalink
fix build with Arduino Core for Silicon Labs EFR32 Series 2
Browse files Browse the repository at this point in the history
  • Loading branch information
lyusupov authored Dec 11, 2024
1 parent 577a076 commit 67e5c6e
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 67e5c6e

Please sign in to comment.