From d01773508afbb9694b310b497148ba5ba678a71e Mon Sep 17 00:00:00 2001 From: Arun Padakanti Date: Fri, 21 Feb 2025 11:30:02 +0530 Subject: [PATCH] Cherry-pick changes required to build for custom boards --- examples/platform/silabs/uart.cpp | 2 ++ src/platform/silabs/platformAbstraction/WiseMcuSpam.cpp | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/examples/platform/silabs/uart.cpp b/examples/platform/silabs/uart.cpp index 4ef720f6a6336c..a28a5944567b2e 100644 --- a/examples/platform/silabs/uart.cpp +++ b/examples/platform/silabs/uart.cpp @@ -41,7 +41,9 @@ extern "C" { #if SLI_SI91X_MCU_INTERFACE #include "USART.h" +#if defined(SL_SI91X_BOARD_INIT) #include "rsi_board.h" +#endif // SL_SI91X_BOARD_INIT #include "rsi_debug.h" #include "rsi_rom_egpio.h" #else // For EFR32 diff --git a/src/platform/silabs/platformAbstraction/WiseMcuSpam.cpp b/src/platform/silabs/platformAbstraction/WiseMcuSpam.cpp index 77ad1f210c1c28..6843d554493f48 100644 --- a/src/platform/silabs/platformAbstraction/WiseMcuSpam.cpp +++ b/src/platform/silabs/platformAbstraction/WiseMcuSpam.cpp @@ -33,7 +33,9 @@ // TODO add includes ? extern "C" { #include "em_core.h" +#if defined(SL_SI91X_BOARD_INIT) #include "rsi_board.h" +#endif // SL_SI91X_BOARD_INIT #include "sl_event_handler.h" #ifdef SL_CATALOG_SIMPLE_BUTTON_PRESENT @@ -119,7 +121,9 @@ CHIP_ERROR SilabsPlatform::Init(void) void SilabsPlatform::InitLed(void) { // TODO +#if defined(SL_SI91X_BOARD_INIT) RSI_Board_Init(); +#endif // SL_SI91X_BOARD_INIT SilabsPlatformAbstractionBase::InitLed(); }