Skip to content

Commit

Permalink
[EFR32] build with LR11XX driver
Browse files Browse the repository at this point in the history
  • Loading branch information
lyusupov committed Dec 11, 2024
1 parent 78f7224 commit dab68bf
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions software/firmware/source/SoftRF/src/platform/EFR32.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,9 @@ struct rst_info {
#define EXCLUDE_OLED_049
//#define EXCLUDE_OLED_BARO_PAGE

//#define USE_BASICMAC
#define USE_BASICMAC
//#define EXCLUDE_SX1276 // - 3 kb
//#define USE_RADIOLIB
#define USE_RADIOLIB

#define USE_TIME_SLOTS
#define USE_OGN_ENCRYPTION
Expand Down
7 changes: 7 additions & 0 deletions software/firmware/source/libraries/RadioLib/src/BuildOpt.h
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,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
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,8 @@ u1_t hal_checkTimer (u4_t time) {
defined(RASPBERRY_PI) || defined(ARDUINO_ARCH_SAMD) || \
defined(ARDUINO_AVR_MEGA2560) || defined(ARDUINO_ARCH_ASR6601) || \
defined(ARDUINO_ARCH_RP2040) || defined(ARDUINO_ARCH_RP2350) || \
defined(ARDUINO_ARCH_RENESAS) || defined(ARDUINO_ARCH_CH32)
defined(ARDUINO_ARCH_RENESAS) || defined(ARDUINO_ARCH_SILABS) || \
defined(ARDUINO_ARCH_CH32)

// Fix for STM32 HAL based cores.

Expand Down

0 comments on commit dab68bf

Please sign in to comment.