[riot-notifications] [RIOT-OS/RIOT] sys/ztimer: expose ZTIMER_MSEC/USEC_BASE (#13990)

Juergen Fitschen notifications at github.com
Mon May 4 16:17:25 CEST 2020


@jue89 commented on this pull request.



> +#define ZTIMER_USEC_BASE_FREQ   (XTIMER_HZ)
+#else
+#define ZTIMER_USEC_BASE_FREQ   (1000000LU)
+#endif /* XTIMER_HZ */
+
+/**
+ * @brief   Base ztimer for the millisecond clock
+ */
+extern ztimer_clock_t *const ZTIMER_MSEC_BASE;
+
+/**
+ * @def     ZTIMER_MSEC_BASE_FREQ
+ *
+ * @brief   The frequency of the base ztimer for ZTIMER_MSEC
+ */
+#ifdef MODULE_PERIPH_RTT

This should also be `#ifdef MODULE_ZTIMER_PERIPH_RTT` to be congruent with the change in `ztimer/auto_init.c` line 108.

-- 
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/13990#pullrequestreview-405029836
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200504/11ebd44c/attachment-0001.htm>


More information about the notifications mailing list