You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "michallenc (via GitHub)" <gi...@apache.org> on 2023/04/25 15:07:47 UTC

[GitHub] [nuttx] michallenc commented on a diff in pull request #9084: sched: add adjtime() interface

michallenc commented on code in PR #9084:
URL: https://github.com/apache/nuttx/pull/9084#discussion_r1176663365


##########
sched/clock/clock_settime.c:
##########
@@ -111,6 +111,11 @@ int clock_settime(clockid_t clock_id, FAR const struct timespec *tp)
         }
 #endif
 
+#ifdef CONFIG_CLOCK_ADJTIME
+      clk_adj_count = 0;

Review Comment:
   Done



##########
include/nuttx/arch.h:
##########
@@ -1457,6 +1457,36 @@ void up_secure_irq_all(bool secure);
 
 #endif
 
+/****************************************************************************
+ * Function:  adj_timer_period
+ *
+ * Description:
+ *   Adjusts timer period. This call is used when adjusting timer period as
+ *   defined in adjtime() function.
+ *
+ * Input Parameters:
+ *   period_inc_usec  - period adjustment in usec (reset to default value
+ *                      if 0)
+ *
+ ****************************************************************************/
+
+#ifdef CONFIG_CLOCK_ADJTIME
+void adj_timer_period(long long period_inc_usec);
+
+/****************************************************************************
+ * Function:  get_timer_period
+ *
+ * Description:
+ *   This function returns the timer period in usec.
+ *
+ * Input Parameters:
+ *   period_usec  - returned timer period in usec
+ *
+ ****************************************************************************/
+
+void get_timer_period(long long *period_usec);

Review Comment:
   Done



-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

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