summaryrefslogtreecommitdiff
path: root/nuttx/sched/clock_uptime.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-04-16 13:00:57 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-04-16 13:00:57 +0000
commitcbb245c0b6816c10be52a03a3ea8c66db8e0a7ae (patch)
tree15b55003014272570f06703cf7e612d9321a87e6 /nuttx/sched/clock_uptime.c
parent6a969146eb87c8b6bb06a64b37f7afecaa8144e6 (diff)
downloadpx4-nuttx-cbb245c0b6816c10be52a03a3ea8c66db8e0a7ae.tar.gz
px4-nuttx-cbb245c0b6816c10be52a03a3ea8c66db8e0a7ae.tar.bz2
px4-nuttx-cbb245c0b6816c10be52a03a3ea8c66db8e0a7ae.zip
More changes from Uros
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3513 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/clock_uptime.c')
-rw-r--r--nuttx/sched/clock_uptime.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nuttx/sched/clock_uptime.c b/nuttx/sched/clock_uptime.c
index cea3262c8..203d056fd 100644
--- a/nuttx/sched/clock_uptime.c
+++ b/nuttx/sched/clock_uptime.c
@@ -42,6 +42,7 @@
#include <stdint.h>
#include <nuttx/clock.h>
#include <nuttx/time.h>
+#include <nuttx/rtc.h>
#if !defined(CONFIG_DISABLE_CLOCK) && defined(CONFIG_UPTIME) && !defined(clock_uptime)
@@ -76,7 +77,7 @@
time_t clock_uptime(void)
{
-#ifdef CONFIG_PTIMER
+#ifdef CONFIG_RTC
if (g_rtc_enabled)
{
return up_rtc_gettime();