[riot-notifications] [RIOT-OS/RIOT] sys/ztimer: initial import (#11874)

Marian Buschsieweke notifications at github.com
Tue Sep 10 09:51:45 CEST 2019


maribu commented on this pull request.



> + *
+ * @c last_wakeup should be set to ztimer_now(@p ztimer) before first call of the
+ * function.
+ *
+ * If the time (@p last_wakeup + @p period) has already passed, the function
+ * sets @p last_wakeup to @p last_wakeup + @p period and returns immediately.
+ *
+ * @param[in]   ztimer          ztimer clock to operate on
+ * @param[in]   last_wakeup     base time stamp for the wakeup
+ * @param[in]   period          time in ticks that will be added to @p last_wakeup
+ */
+void ztimer_periodic_wakeup(ztimer_dev_t *ztimer, uint32_t *last_wakeup,
+                            uint32_t period);
+
+/**
+ * @brief   Put the calling thread to sleep for the specified number of ticks

I bet that this is impossible, as e.g. a thread with higher priority might get the CPU at the very moment the caller wants to wake up. As far as I know, RIOT never had the goal to provide **hard** real time features, but **soft** real time features instead.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11874#discussion_r322598356
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190910/eca63cb2/attachment.htm>


More information about the notifications mailing list