Skip to content

Commit

Permalink
addressing the review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
chirag-silabs committed Jul 10, 2024
1 parent 8344c5f commit 481eb97
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions third_party/silabs/SiWx917_sdk.gni
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,14 @@ template("siwx917_sdk") {
if (invoker.enable_dic) {
_include_dirs += [ "${chip_root}/third_party/silabs/mqtt/stack" ]
}

if (chip_enable_icd_server || !disable_lcd) {
defines += [
"SL_SLEEP_TIMER=1",
"SI91X_SYSRTC_COUNT=1",
]
}

if (!disable_lcd) {
defines += [
"CONFIG_ENABLE_UART",
Expand All @@ -310,12 +318,6 @@ 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 Down Expand Up @@ -759,6 +761,14 @@ template("siwx917_sdk") {
]
}

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/peripheral_drivers/src/rsi_sysrtc.c",
"${wifi_sdk_root}/components/device/silabs/si91x/mcu/drivers/service/sleeptimer/src/sl_sleeptimer_hal_si91x_sysrtc.c",
]
}

if (!disable_lcd) {
sources += [
"${efr32_sdk_root}/platform/middleware/glib/dmd/display/dmd_memlcd.c",
Expand Down Expand Up @@ -794,14 +804,6 @@ template("siwx917_sdk") {
]
}

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/peripheral_drivers/src/rsi_sysrtc.c",
"${wifi_sdk_root}/components/device/silabs/si91x/mcu/drivers/service/sleeptimer/src/sl_sleeptimer_hal_si91x_sysrtc.c",
]
}

public_deps = [
"${segger_rtt_root}:segger_rtt",
"${segger_rtt_root}:segger_rtt_printf",
Expand Down

0 comments on commit 481eb97

Please sign in to comment.