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

Juergen Fitschen notifications at github.com
Tue May 5 17:12:08 CEST 2020


@jue89 commented on this pull request.



> +#endif
+
+/**
+ * @brief   The frequency of ZTIMER_USEC_BASE (base ztimer for ZTIMER_USEC)
+ */
+#ifndef CONFIG_ZTIMER_USEC_BASE_FREQ
+#define CONFIG_ZTIMER_USEC_BASE_FREQ    (1000000LU)
+#endif
+
+/**
+ * @brief   The frequency of ZTIMER_MSEC_BASE (base ztimer for ZTIMER_MSEC)
+ */
+#ifdef MODULE_ZTIMER_PERIPH_RTT
+#  define CONFIG_ZTIMER_MSEC_BASE_FREQ   (RTT_FREQUENCY)
+# else
+#  define CONFIG_ZTIMER_MSEC_BASE_FREQ   (ZTIMER_USEC_BASE_FREQ)

I did some compile testing.

`ZTIMER_USEC_BASE_FREQ` should be `CONFIG_ZTIMER_USEC_BASE_FREQ`.

-- 
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-405886602
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200505/a94dbd9e/attachment.htm>


More information about the notifications mailing list