upg_reboot();
}
#endif
-
+void uapi_32k_systick_measurements(void)
+{
+ uint64_t cali_ms = 1000; //单次测量时长(ms)
+ uint64_t start_count = 0;
+ uint64_t total_count = 0;
+ uint64_t g_clock_xo32 = 0;
+ uint32_t irq = osal_irq_lock();
+ start_count = uapi_tcxo_get_count();
+ uapi_systick_delay_ms(cali_ms);
+ total_count = uapi_tcxo_get_count() - start_count;
+ osal_irq_restore(irq);
+ g_clock_xo32 = (32768 * cali_ms * 32000) / (total_count);
+ PRINT("********** total_count = %llu, g_clock_xo32 = %llu **********"NEWLINE, total_count, g_clock_xo32);
+ return;
+}
static void app_main(const void *unused)
{
unused(unused);
uapi_watchdog_kick();
#ifndef XTS_SUPPORT
PRINT("app_main run start."NEWLINE);
+ // uapi_32k_systick_measurements();
print_system_sleep_info();
oml_pf_log_print0(LOG_BCORE_PLT_DRIVER_REBOOT, LOG_NUM_DRIVER_LPC, LOG_LEVEL_INFO, "App run ok.");
#endif