From 67e5c6ee7be886842b24bb60f23ffcdf32707a33 Mon Sep 17 00:00:00 2001 From: Linar Yusupov Date: Wed, 11 Dec 2024 13:57:59 +0300 Subject: [PATCH] fix build with Arduino Core for Silicon Labs EFR32 Series 2 --- src/BuildOpt.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/BuildOpt.h b/src/BuildOpt.h index 1464ad44..faae44da 100644 --- a/src/BuildOpt.h +++ b/src/BuildOpt.h @@ -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"