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

Koen Zandberg notifications at github.com
Fri Sep 6 11:32:49 CEST 2019

bergzand 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

Probably also valid for the other functions: This probably doesn't sleep exactly the number of ticks (or seconds) on every platform. Does this sleep at least `ticks` or at most `ticks`. Furthermore, is there a way to get the other behaviour, for example, sleep at least $duration to allow for a peripheral to initialize or sleep at most $duration to not miss a deadline.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190906/d3929f28/attachment.htm>

More information about the notifications mailing list