You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2021/01/11 02:05:41 UTC

[GitHub] [incubator-nuttx] cwespressif commented on a change in pull request #2625: Add time ticket related APIs to support hot sleep function

cwespressif commented on a change in pull request #2625:
URL: https://github.com/apache/incubator-nuttx/pull/2625#discussion_r554659725



##########
File path: sched/clock/clock_systime_ticks.c
##########
@@ -154,3 +154,25 @@ clock_t clock_systime_ticks(void)
 # endif /* CONFIG_SYSTEM_TIME64 */
 #endif /* CONFIG_SCHED_TICKLESS */
 }
+
+/****************************************************************************
+ * Name:  clock_systime_steps
+ *
+ * Description:
+ *   Add system time by idle ticks.
+ *
+ * Input Parameters:
+ *   ticks - Idle ticks
+ *
+ * Returned Value:
+ *   None
+ *
+ ****************************************************************************/
+
+void clock_systime_steps(sclock_t ticks)
+{
+  irqstate_t flags;
+  flags = enter_critical_section();
+  g_system_timer += ticks;

Review comment:
       I see this PR is still in draft status, could you change it so that it can be merged into the NuttX mainline, thank you.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org