[riot-notifications] [RIOT-OS/RIOT] sys/ztimer: expose ZTIMER_MSEC/USEC_BASE (#13990)
notifications at github.com
Tue May 5 11:20:13 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
I didn't use an `extern uint32_t` because then you can't do compile checks in other places, e.g. I can't know if I need to `shift` or scale down the timer at compile time, I would have to have a `ztimer_convert_shift_t ` and `ztimer_convert_frac_t` and at runtime check the speed to know which one to use.
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...
More information about the notifications