diff options
Diffstat (limited to 'nuttx/sched/clock_uptime.c')
-rw-r--r-- | nuttx/sched/clock_uptime.c | 3 |
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(); |