diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-10-01 22:09:00 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-10-01 22:09:00 +0000 |
commit | 078ff53de7f505ba714be768a94c1e52e7261b3e (patch) | |
tree | 9bf8b7599be1785b828c91655da7510937c92303 /nuttx/configs/vsn/src | |
parent | a65f3d1d8c639d5f3c88cee9c41f95a812abfe13 (diff) | |
download | px4-nuttx-078ff53de7f505ba714be768a94c1e52e7261b3e.tar.gz px4-nuttx-078ff53de7f505ba714be768a94c1e52e7261b3e.tar.bz2 px4-nuttx-078ff53de7f505ba714be768a94c1e52e7261b3e.zip |
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
Diffstat (limited to 'nuttx/configs/vsn/src')
-rw-r--r-- | nuttx/configs/vsn/src/sif.c | 5 |
1 files changed, 2 insertions, 3 deletions
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; } |