lock_int_save = LOS_IntLock();
#ifdef SUPPORT_RC_CALIBRATION
- if (g_pre_count == 0) {
- tick_count = (uapi_systick_get_count() * OS_SYS_MS_PER_SECOND) / CLOCK_32K_CALI_FREQ;
- g_pre_count = uapi_systick_get_count();
- g_pre_msec = tick_count;
- } else {
- now_count = uapi_systick_get_count();
- msec = (double)((now_count - g_pre_count) * OS_SYS_MS_PER_SECOND) / CLOCK_32K_CALI_FREQ;
- tick_count = g_pre_msec + msec;
-
- g_pre_count = now_count;
- g_pre_msec = tick_count;
- }
+ // if (g_pre_count == 0) {
+ // tick_count = (uapi_systick_get_count() * OS_SYS_MS_PER_SECOND) / CLOCK_32K_CALI_FREQ;
+ // g_pre_count = uapi_systick_get_count();
+ // g_pre_msec = tick_count;
+ // } else {
+ // now_count = uapi_systick_get_count();
+ // msec = (double)((now_count - g_pre_count) * OS_SYS_MS_PER_SECOND) / CLOCK_32K_CALI_FREQ;
+ // tick_count = g_pre_msec + msec;
+
+ // g_pre_count = now_count;
+ // g_pre_msec = tick_count;
+ // }
+ tick_count = uapi_systick_get_ms();
#else
tick_count = uapi_systick_get_ms();
#endif