Skip to content

Commit

Permalink
merging the icd and non lcd case
Browse files Browse the repository at this point in the history
  • Loading branch information
chirag-silabs committed Jul 10, 2024
1 parent 620e323 commit 5045700
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions third_party/silabs/SiWx917_sdk.gni
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,6 @@ template("siwx917_sdk") {
"SYSCALLS_WRITE",
"SPI_MULTI_SLAVE",
"SL_ULP_TIMER",
"SL_SLEEP_TIMER=1",
"SI91X_SYSRTC_COUNT=1",
]
}

Expand All @@ -312,6 +310,12 @@ template("siwx917_sdk") {
]
}

if (chip_enable_icd_server || !disable_lcd) {
defines += [
"SL_SLEEP_TIMER=1",
"SI91X_SYSRTC_COUNT=1",
]
}
if (chip_enable_icd_server) {
defines += [
"SL_ICD_ENABLED=1",
Expand All @@ -322,8 +326,6 @@ template("siwx917_sdk") {
"SL_SI91X_NPSS_GPIO_BTN_HANDLER=1",
"SL_SI91X_POWER_MANAGER_UC_AVAILABLE=1",
"SL_SI91X_TICKLESS_MODE=1",
"SL_SLEEP_TIMER=1",
"SI91X_SYSRTC_COUNT=1",
]

if (si91x_alarm_based_periodic_wakeup) {
Expand Down Expand Up @@ -771,13 +773,10 @@ template("siwx917_sdk") {
"${efr32_sdk_root}/platform/middleware/glib/glib/glib_polygon.c",
"${efr32_sdk_root}/platform/middleware/glib/glib/glib_rectangle.c",
"${efr32_sdk_root}/platform/middleware/glib/glib/glib_string.c",
"${efr32_sdk_root}/platform/service/sleeptimer/src/sl_sleeptimer.c",
"${wifi_sdk_root}/components/device/silabs/si91x/mcu/drivers/cmsis_driver/SPI.c",
"${wifi_sdk_root}/components/device/silabs/si91x/mcu/drivers/hardware_drivers/memlcd/src/memlcd_917/sl_memlcd_spi.c",
"${wifi_sdk_root}/components/device/silabs/si91x/mcu/drivers/hardware_drivers/memlcd/src/sl_memlcd.c",
"${wifi_sdk_root}/components/device/silabs/si91x/mcu/drivers/hardware_drivers/memlcd/src/sl_memlcd_display.c",
"${wifi_sdk_root}/components/device/silabs/si91x/mcu/drivers/peripheral_drivers/src/rsi_sysrtc.c",
"${wifi_sdk_root}/components/device/silabs/si91x/mcu/drivers/service/sleeptimer/src/sl_sleeptimer_hal_si91x_sysrtc.c",
"${wifi_sdk_root}/components/device/silabs/si91x/mcu/drivers/unified_api/src/sl_si91x_ulp_timer.c",
]
}
Expand All @@ -792,6 +791,11 @@ template("siwx917_sdk") {
"${wifi_sdk_root}/components/device/silabs/si91x/mcu/drivers/service/power_manager/src/sli_si91x_power_manager_wakeup_init.c",
"${wifi_sdk_root}/components/device/silabs/si91x/mcu/drivers/systemlevel/src/rsi_time_period.c",
"${wifi_sdk_root}/third_party/silicon_labs/freertos/src/sl_si91x_low_power_tickless_mode.c",
]
}

if (chip_enable_icd_server || !disable_lcd) {
sources += [
"${efr32_sdk_root}/platform/service/sleeptimer/src/sl_sleeptimer.c",
"${wifi_sdk_root}/components/device/silabs/si91x/mcu/drivers/service/sleeptimer/src/sl_sleeptimer_hal_si91x_sysrtc.c",
"${wifi_sdk_root}/components/device/silabs/si91x/mcu/drivers/peripheral_drivers/src/rsi_sysrtc.c",
Expand Down

0 comments on commit 5045700

Please sign in to comment.