@@ -297,8 +297,6 @@ template("siwx917_sdk") {
297
297
" SYSCALLS_WRITE" ,
298
298
" SPI_MULTI_SLAVE" ,
299
299
" SL_ULP_TIMER" ,
300
- " SL_SLEEP_TIMER=1" ,
301
- " SI91X_SYSRTC_COUNT=1" ,
302
300
]
303
301
}
304
302
@@ -312,6 +310,12 @@ template("siwx917_sdk") {
312
310
]
313
311
}
314
312
313
+ if (chip_enable_icd_server || ! disable_lcd ) {
314
+ defines += [
315
+ " SL_SLEEP_TIMER=1" ,
316
+ " SI91X_SYSRTC_COUNT=1" ,
317
+ ]
318
+ }
315
319
if (chip_enable_icd_server ) {
316
320
defines += [
317
321
" SL_ICD_ENABLED=1" ,
@@ -322,8 +326,6 @@ template("siwx917_sdk") {
322
326
" SL_SI91X_NPSS_GPIO_BTN_HANDLER=1" ,
323
327
" SL_SI91X_POWER_MANAGER_UC_AVAILABLE=1" ,
324
328
" SL_SI91X_TICKLESS_MODE=1" ,
325
- " SL_SLEEP_TIMER=1" ,
326
- " SI91X_SYSRTC_COUNT=1" ,
327
329
]
328
330
329
331
if (si91x_alarm_based_periodic_wakeup ) {
@@ -771,13 +773,10 @@ template("siwx917_sdk") {
771
773
" ${ efr32_sdk_root } /platform/middleware/glib/glib/glib_polygon.c" ,
772
774
" ${ efr32_sdk_root } /platform/middleware/glib/glib/glib_rectangle.c" ,
773
775
" ${ efr32_sdk_root } /platform/middleware/glib/glib/glib_string.c" ,
774
- " ${ efr32_sdk_root } /platform/service/sleeptimer/src/sl_sleeptimer.c" ,
775
776
" ${ wifi_sdk_root } /components/device/silabs/si91x/mcu/drivers/cmsis_driver/SPI.c" ,
776
777
" ${ wifi_sdk_root } /components/device/silabs/si91x/mcu/drivers/hardware_drivers/memlcd/src/memlcd_917/sl_memlcd_spi.c" ,
777
778
" ${ wifi_sdk_root } /components/device/silabs/si91x/mcu/drivers/hardware_drivers/memlcd/src/sl_memlcd.c" ,
778
779
" ${ 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" ,
781
780
" ${ wifi_sdk_root } /components/device/silabs/si91x/mcu/drivers/unified_api/src/sl_si91x_ulp_timer.c" ,
782
781
]
783
782
}
@@ -792,6 +791,11 @@ template("siwx917_sdk") {
792
791
" ${ wifi_sdk_root } /components/device/silabs/si91x/mcu/drivers/service/power_manager/src/sli_si91x_power_manager_wakeup_init.c" ,
793
792
" ${ wifi_sdk_root } /components/device/silabs/si91x/mcu/drivers/systemlevel/src/rsi_time_period.c" ,
794
793
" ${ 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 += [
795
799
" ${ efr32_sdk_root } /platform/service/sleeptimer/src/sl_sleeptimer.c" ,
796
800
" ${ wifi_sdk_root } /components/device/silabs/si91x/mcu/drivers/service/sleeptimer/src/sl_sleeptimer_hal_si91x_sysrtc.c" ,
797
801
" ${ wifi_sdk_root } /components/device/silabs/si91x/mcu/drivers/peripheral_drivers/src/rsi_sysrtc.c" ,
0 commit comments