Skip to content

Commit 620e323

Browse files
committed
fixing sleepy and non lcd build fix
1 parent 8ebe19d commit 620e323

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

src/platform/silabs/KeyValueStoreManagerImpl.cpp

-6
Original file line numberDiff line numberDiff line change
@@ -164,15 +164,9 @@ void KeyValueStoreManagerImpl::ScheduleKeyMapSave(void)
164164
During commissioning, the key map will be modified multiples times subsequently.
165165
Commit the key map in nvm once it as stabilized.
166166
*/
167-
#if SLI_SI91X_MCU_INTERFACE && CHIP_CONFIG_ENABLE_ICD_SERVER
168-
// TODO: Remove this when RTC timer is added MATTER-2705
169-
SilabsConfig::WriteConfigValueBin(SilabsConfig::kConfigKey_KvsStringKeyMap, reinterpret_cast<const uint8_t *>(mKvsKeyMap),
170-
sizeof(mKvsKeyMap));
171-
#else
172167
SystemLayer().StartTimer(
173168
std::chrono::duration_cast<System::Clock::Timeout>(System::Clock::Seconds32(SILABS_KVS_SAVE_DELAY_SECONDS)),
174169
KeyValueStoreManagerImpl::OnScheduledKeyMapSave, NULL);
175-
#endif // defined(SLI_SI91X_MCU_INTERFACE) && CHIP_CONFIG_ENABLE_ICD_SERVER
176170
}
177171

178172
CHIP_ERROR KeyValueStoreManagerImpl::_Get(const char * key, void * value, size_t value_size, size_t * read_bytes_size,

third_party/silabs/SiWx917_sdk.gni

+7-2
Original file line numberDiff line numberDiff line change
@@ -294,11 +294,11 @@ template("siwx917_sdk") {
294294
if (!disable_lcd) {
295295
defines += [
296296
"CONFIG_ENABLE_UART",
297-
"SI91X_SYSRTC_COUNT=1",
298297
"SYSCALLS_WRITE",
299298
"SPI_MULTI_SLAVE",
300299
"SL_ULP_TIMER",
301-
"SL_SLEEP_TIMER",
300+
"SL_SLEEP_TIMER=1",
301+
"SI91X_SYSRTC_COUNT=1",
302302
]
303303
}
304304

@@ -322,6 +322,8 @@ template("siwx917_sdk") {
322322
"SL_SI91X_NPSS_GPIO_BTN_HANDLER=1",
323323
"SL_SI91X_POWER_MANAGER_UC_AVAILABLE=1",
324324
"SL_SI91X_TICKLESS_MODE=1",
325+
"SL_SLEEP_TIMER=1",
326+
"SI91X_SYSRTC_COUNT=1",
325327
]
326328

327329
if (si91x_alarm_based_periodic_wakeup) {
@@ -790,6 +792,9 @@ template("siwx917_sdk") {
790792
"${wifi_sdk_root}/components/device/silabs/si91x/mcu/drivers/service/power_manager/src/sli_si91x_power_manager_wakeup_init.c",
791793
"${wifi_sdk_root}/components/device/silabs/si91x/mcu/drivers/systemlevel/src/rsi_time_period.c",
792794
"${wifi_sdk_root}/third_party/silicon_labs/freertos/src/sl_si91x_low_power_tickless_mode.c",
795+
"${efr32_sdk_root}/platform/service/sleeptimer/src/sl_sleeptimer.c",
796+
"${wifi_sdk_root}/components/device/silabs/si91x/mcu/drivers/service/sleeptimer/src/sl_sleeptimer_hal_si91x_sysrtc.c",
797+
"${wifi_sdk_root}/components/device/silabs/si91x/mcu/drivers/peripheral_drivers/src/rsi_sysrtc.c",
793798
]
794799
}
795800

0 commit comments

Comments
 (0)