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

Francisco notifications at github.com
Tue May 5 11:20:59 CEST 2020


@fjmolinas commented on this pull request.



>  /**
  * @brief   Default ztimer microsecond clock
  */
 extern ztimer_clock_t *const ZTIMER_USEC;
 
+/**
+ * @def     ZTIMER_USEC_BASE_FREQ
+ *
+ * @brief   The frequency of the base ztimer for ZTIMER_USEC
+ */
+#ifdef XTIMER_HZ

> I see an issue here. I tried to keep all of the ztimer configuration in auto_init.c.
> That means that the actual ztimer code compiles from the same headers. Including ztimer.h leads to the same on every platform.

Maybe we can have a configuration header? Similar to what we do for drivers with `driveXXX_params.h`?


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


More information about the notifications mailing list