Skip to content

Commit

Permalink
Cherry-pick changes required to build for custom boards (#37702)
Browse files Browse the repository at this point in the history
  • Loading branch information
arun-silabs authored Feb 21, 2025
1 parent e42f992 commit 1e91c2a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/platform/silabs/uart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions src/platform/silabs/platformAbstraction/WiseMcuSpam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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();
}

Expand Down

0 comments on commit 1e91c2a

Please sign in to comment.