fix some calloc bug

1. some calloc fix
2. fix some document error
3. refactor kv API, to be compatible with ota API
This commit is contained in:
daishengdong
2020-04-24 11:58:42 +08:00
parent f6527d2d9a
commit 2e8c8c19e6
19 changed files with 77 additions and 93 deletions

View File

@@ -142,6 +142,9 @@ __KNL__ void tickless_proc(void)
lpwr_mode = pm_cpu_lpwr_mode_get();
time_sleep = tickless_cpu_sleep_time_get(lpwr_mode); /* in millisecond */
if (unlikely(time_sleep == (k_time_t)0)) {
return;
}
tickless_enter();
tickless_wkup_alarm_setup(lpwr_mode, time_sleep);