Skip to content

Commit 5045700

Browse files
committed
merging the icd and non lcd case
1 parent 620e323 commit 5045700

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

third_party/silabs/SiWx917_sdk.gni

+11-7
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,6 @@ template("siwx917_sdk") {
297297
"SYSCALLS_WRITE",
298298
"SPI_MULTI_SLAVE",
299299
"SL_ULP_TIMER",
300-
"SL_SLEEP_TIMER=1",
301-
"SI91X_SYSRTC_COUNT=1",
302300
]
303301
}
304302

@@ -312,6 +310,12 @@ template("siwx917_sdk") {
312310
]
313311
}
314312

313+
if (chip_enable_icd_server || !disable_lcd) {
314+
defines += [
315+
"SL_SLEEP_TIMER=1",
316+
"SI91X_SYSRTC_COUNT=1",
317+
]
318+
}
315319
if (chip_enable_icd_server) {
316320
defines += [
317321
"SL_ICD_ENABLED=1",
@@ -322,8 +326,6 @@ template("siwx917_sdk") {
322326
"SL_SI91X_NPSS_GPIO_BTN_HANDLER=1",
323327
"SL_SI91X_POWER_MANAGER_UC_AVAILABLE=1",
324328
"SL_SI91X_TICKLESS_MODE=1",
325-
"SL_SLEEP_TIMER=1",
326-
"SI91X_SYSRTC_COUNT=1",
327329
]
328330

329331
if (si91x_alarm_based_periodic_wakeup) {
@@ -771,13 +773,10 @@ template("siwx917_sdk") {
771773
"${efr32_sdk_root}/platform/middleware/glib/glib/glib_polygon.c",
772774
"${efr32_sdk_root}/platform/middleware/glib/glib/glib_rectangle.c",
773775
"${efr32_sdk_root}/platform/middleware/glib/glib/glib_string.c",
774-
"${efr32_sdk_root}/platform/service/sleeptimer/src/sl_sleeptimer.c",
775776
"${wifi_sdk_root}/components/device/silabs/si91x/mcu/drivers/cmsis_driver/SPI.c",
776777
"${wifi_sdk_root}/components/device/silabs/si91x/mcu/drivers/hardware_drivers/memlcd/src/memlcd_917/sl_memlcd_spi.c",
777778
"${wifi_sdk_root}/components/device/silabs/si91x/mcu/drivers/hardware_drivers/memlcd/src/sl_memlcd.c",
778779
"${wifi_sdk_root}/components/device/silabs/si91x/mcu/drivers/hardware_drivers/memlcd/src/sl_memlcd_display.c",
779-
"${wifi_sdk_root}/components/device/silabs/si91x/mcu/drivers/peripheral_drivers/src/rsi_sysrtc.c",
780-
"${wifi_sdk_root}/components/device/silabs/si91x/mcu/drivers/service/sleeptimer/src/sl_sleeptimer_hal_si91x_sysrtc.c",
781780
"${wifi_sdk_root}/components/device/silabs/si91x/mcu/drivers/unified_api/src/sl_si91x_ulp_timer.c",
782781
]
783782
}
@@ -792,6 +791,11 @@ template("siwx917_sdk") {
792791
"${wifi_sdk_root}/components/device/silabs/si91x/mcu/drivers/service/power_manager/src/sli_si91x_power_manager_wakeup_init.c",
793792
"${wifi_sdk_root}/components/device/silabs/si91x/mcu/drivers/systemlevel/src/rsi_time_period.c",
794793
"${wifi_sdk_root}/third_party/silicon_labs/freertos/src/sl_si91x_low_power_tickless_mode.c",
794+
]
795+
}
796+
797+
if (chip_enable_icd_server || !disable_lcd) {
798+
sources += [
795799
"${efr32_sdk_root}/platform/service/sleeptimer/src/sl_sleeptimer.c",
796800
"${wifi_sdk_root}/components/device/silabs/si91x/mcu/drivers/service/sleeptimer/src/sl_sleeptimer_hal_si91x_sysrtc.c",
797801
"${wifi_sdk_root}/components/device/silabs/si91x/mcu/drivers/peripheral_drivers/src/rsi_sysrtc.c",

0 commit comments

Comments
 (0)