summaryrefslogtreecommitdiffstats
path: root/nuttx/sched/clock_systimer.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/sched/clock_systimer.c')
-rw-r--r--nuttx/sched/clock_systimer.c8
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