From 078ff53de7f505ba714be768a94c1e52e7261b3e Mon Sep 17 00:00:00 2001 From: patacongo Date: Sat, 1 Oct 2011 22:09:00 +0000 Subject: Add support for lo- and hi-res RTC hardware git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4005 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/configs/vsn/nsh/defconfig | 1 + nuttx/configs/vsn/src/sif.c | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'nuttx/configs/vsn') diff --git a/nuttx/configs/vsn/nsh/defconfig b/nuttx/configs/vsn/nsh/defconfig index ca053ec35..ddb8114ec 100755 --- a/nuttx/configs/vsn/nsh/defconfig +++ b/nuttx/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/nuttx/configs/vsn/src/sif.c b/nuttx/configs/vsn/src/sif.c index 535a09829..e185d8d0d 100644 --- a/nuttx/configs/vsn/src/sif.c +++ b/nuttx/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; } -- cgit v1.2.3