diff --git a/configs/vsn/nsh/defconfig b/configs/vsn/nsh/defconfig index ca053ec35f3..ddb8114ecd3 100755 --- a/configs/vsn/nsh/defconfig +++ b/configs/vsn/nsh/defconfig @@ -268,6 +268,7 @@ CONFIG_WIRELESS=y # CONFIG_RTC=y CONFIG_RTC_HIRES=y +CONFIG_RTC_FREQUENCY=16384 CONFIG_SYSTEM_UTC=y # diff --git a/configs/vsn/src/sif.c b/configs/vsn/src/sif.c index 535a09829a8..e185d8d0df0 100644 --- a/configs/vsn/src/sif.c +++ b/configs/vsn/src/sif.c @@ -714,9 +714,8 @@ int sif_main(int argc, char *argv[]) struct timespec t_active; clock_gettime(CLOCK_ACTIVETIME, &t_active); - fprintf(stderr, "rtc time = %u / %u, active = %u / %u, time / systick = %u / %u\n", - up_rtc_gettime(), up_rtc_getclock(), - t_active.tv_sec, t_active.tv_nsec, + fprintf(stderr, "rtc time = %u, active = %u / %u, time / systick = %u / %u\n", + up_rtc_time(), t_active.tv_sec, t_active.tv_nsec, time(NULL), clock_systimer() ); return -1; }