Skip to content

Commit f8a41c1

Browse files
Remove references to BRD4325A
1 parent 8f9a838 commit f8a41c1

File tree

8 files changed

+11
-23
lines changed

8 files changed

+11
-23
lines changed

examples/platform/silabs/SiWx917/BUILD.gn

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ source_set("siwx917-common") {
210210
]
211211

212212
if (chip_enable_pw_rpc || chip_build_libshell || sl_uart_log_output) {
213-
sources += [ "uart.cpp" ]
213+
sources += [ "${silabs_common_plat_dir}/uart.cpp" ]
214214
}
215215

216216
if (chip_enable_ota_requestor) {

examples/platform/silabs/SoftwareFaultReports.cpp

+7-7
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,18 @@
2626
#include <platform/CHIPDeviceLayer.h>
2727
#include <platform/DiagnosticDataProvider.h>
2828

29-
#ifndef BRD4325A
29+
#if !defined(SLI_SI91X_MCU_INTERFACE) || !defined(SLI_SI91X_ENABLE_BLE)
3030
#include "rail_types.h"
3131

3232
#ifdef RAIL_ASSERT_DEBUG_STRING
3333
#include "rail_assert_error_codes.h"
3434
#endif
35-
#endif // BRD4325A
35+
#endif // !defined(SLI_SI91X_MCU_INTERFACE) || !defined(SLI_SI91X_ENABLE_BLE)
36+
37+
#if defined(SLI_SI91X_MCU_INTERFACE) && SLI_SI91X_MCU_INTERFACE
3638

37-
#ifdef BRD4325A // For SiWx917 Platform only
3839
#include "core_cm4.h"
39-
#endif
40+
#endif // defined(SLI_SI91X_MCU_INTERFACE) && SLI_SI91X_MCU_INTERFACE
4041

4142
// Technically FaultRecording is an octstr up to 1024 bytes.
4243
// We currently only report short strings. 100 char will more than enough for now.
@@ -227,7 +228,7 @@ extern "C" void vApplicationGetTimerTaskMemory(StaticTask_t ** ppxTimerTaskTCBBu
227228
*pulTimerTaskStackSize = configTIMER_TASK_STACK_DEPTH;
228229
}
229230

230-
#ifndef BRD4325A
231+
#if !defined(SLI_SI91X_MCU_INTERFACE) || !defined(SLI_SI91X_ENABLE_BLE)
231232
extern "C" void RAILCb_AssertFailed(RAIL_Handle_t railHandle, uint32_t errorCode)
232233
{
233234
char faultMessage[kMaxFaultStringLen] = { 0 };
@@ -251,6 +252,5 @@ extern "C" void RAILCb_AssertFailed(RAIL_Handle_t railHandle, uint32_t errorCode
251252

252253
chipAbort();
253254
}
254-
#endif // BRD4325A
255-
255+
#endif // !defined(SLI_SI91X_MCU_INTERFACE) || !defined(SLI_SI91X_ENABLE_BLE)
256256
#endif // HARD_FAULT_LOG_ENABLE

examples/platform/silabs/efr32/BUILD.gn

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ source_set("efr32-common") {
248248
]
249249

250250
if (chip_enable_pw_rpc || chip_build_libshell || enable_openthread_cli) {
251-
sources += [ "uart.cpp" ]
251+
sources += [ "${silabs_common_plat_dir}/uart.cpp" ]
252252
}
253253

254254
if (chip_enable_ota_requestor) {

examples/smoke-co-alarm-app/silabs/src/AppTask.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#include <setup_payload/QRCodeSetupPayloadGenerator.h>
3232
#include <setup_payload/SetupPayload.h>
3333

34-
#if (defined(SL_CATALOG_SIMPLE_LED_LED1_PRESENT) || defined(BRD4325B))
34+
#if (defined(SL_CATALOG_SIMPLE_LED_LED1_PRESENT))
3535
#define LIGHT_LED 1
3636
#else
3737
#define LIGHT_LED 0

src/lib/shell/MainLoopSilabs.cpp

-4
Original file line numberDiff line numberDiff line change
@@ -206,10 +206,6 @@ void ProcessShellLine(intptr_t args)
206206
}
207207
}
208208
MemoryFree(line);
209-
#ifdef BRD4325A
210-
// small delay for uart print
211-
vTaskDelay(1);
212-
#endif
213209
streamer_printf(streamer_get(), kShellPrompt);
214210
}
215211

src/platform/silabs/Logging.cpp

-7
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,6 @@
1515
#include <stdio.h>
1616
#include <string.h>
1717

18-
#ifndef BRD4325A
19-
20-
#ifdef RAIL_ASSERT_DEBUG_STRING
21-
#include "rail_assert_error_codes.h"
22-
#endif
23-
#endif // BRD4325A
24-
2518
#ifdef PW_RPC_ENABLED
2619
#include "PigweedLogger.h"
2720
#endif

src/test_driver/efr32/BUILD.gn

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ silabs_executable("efr32_device_tests") {
7373
"${examples_common_plat_dir}/provision/ProvisionStorageCustom.cpp",
7474
"${examples_common_plat_dir}/provision/ProvisionStorageDefault.cpp",
7575
"${examples_common_plat_dir}/syscalls_stubs.cpp",
76-
"${examples_plat_dir}/uart.cpp",
76+
"${examples_common_plat_dir}/uart.cpp",
7777
"src/main.cpp",
7878
]
7979

third_party/silabs/SiWx917_sdk.gni

-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,6 @@ template("siwx917_sdk") {
215215
"ROMDRIVER_PRESENT=1",
216216
"SL_CATALOG_FREERTOS_KERNEL_PRESENT=1",
217217
"SLI_SI91X_MCU_CONFIG_RADIO_BOARD_BASE_VER=1",
218-
"BRD4325A", #TODO: should be removed after SoC macro clean-up
219218
"SLI_SI917B0=1",
220219
"SLI_SI91X_MCU_COMMON_FLASH_MODE=1",
221220
"SLI_SI91X_MCU_CONFIG_RADIO_BOARD_VER2=1",

0 commit comments

Comments
 (0)