diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2011-04-16 13:00:57 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2011-04-16 13:00:57 +0000 |
commit | cf98affaae10f065b6a7ff3558e5ce7e91bea645 (patch) | |
tree | 15b55003014272570f06703cf7e612d9321a87e6 /nuttx/sched/clock_systimer.c | |
parent | 136df171f461d857eeda764b0f5d587a1c2ffb9f (diff) |
More changes from Uros
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@3513 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/sched/clock_systimer.c')
-rw-r--r-- | nuttx/sched/clock_systimer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/sched/clock_systimer.c b/nuttx/sched/clock_systimer.c index fde303be63..c4560a8a18 100644 --- a/nuttx/sched/clock_systimer.c +++ b/nuttx/sched/clock_systimer.c @@ -42,7 +42,7 @@ #include <stdint.h> #include <nuttx/clock.h> -#include <nuttx/ptimer.h> +#include <nuttx/rtc.h> #include <nuttx/time.h> #if !defined(clock_systimer) /* See nuttx/clock.h */ @@ -79,17 +79,17 @@ uint32_t clock_systimer(void) { /* Fetch the g_system_timer value from timer hardware, if available */ -#ifdef CONFIG_PTIMER +#ifdef CONFIG_RTC /* Check if the periodic timer is initialized * * Note that the unit of the g_system_timer and and up_rtc_getclock() must - * be the same in order. + * be the same in order (must have same [unit]) to allow smooth transitions. */ if (g_rtc_enabled) { - up_rtc_getclock(); +// return up_rtc_getclock(); } #endif |