Skip to content

Commit 1e91c2a

Browse files
authored
Cherry-pick changes required to build for custom boards (#37702)
1 parent e42f992 commit 1e91c2a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

examples/platform/silabs/uart.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ extern "C" {
4141

4242
#if SLI_SI91X_MCU_INTERFACE
4343
#include "USART.h"
44+
#if defined(SL_SI91X_BOARD_INIT)
4445
#include "rsi_board.h"
46+
#endif // SL_SI91X_BOARD_INIT
4547
#include "rsi_debug.h"
4648
#include "rsi_rom_egpio.h"
4749
#else // For EFR32

src/platform/silabs/platformAbstraction/WiseMcuSpam.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@
3333
// TODO add includes ?
3434
extern "C" {
3535
#include "em_core.h"
36+
#if defined(SL_SI91X_BOARD_INIT)
3637
#include "rsi_board.h"
38+
#endif // SL_SI91X_BOARD_INIT
3739
#include "sl_event_handler.h"
3840

3941
#ifdef SL_CATALOG_SIMPLE_BUTTON_PRESENT
@@ -119,7 +121,9 @@ CHIP_ERROR SilabsPlatform::Init(void)
119121
void SilabsPlatform::InitLed(void)
120122
{
121123
// TODO
124+
#if defined(SL_SI91X_BOARD_INIT)
122125
RSI_Board_Init();
126+
#endif // SL_SI91X_BOARD_INIT
123127
SilabsPlatformAbstractionBase::InitLed();
124128
}
125129

0 commit comments

Comments
 (0)