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

Kaspar Schleiser notifications at github.com
Tue May 5 12:25:42 CEST 2020


@kaspar030 commented on this pull request.



> + *
+ * When scheduling an ISR every timer will be set to max("min", value).
+ *
+ * This is supposed to be defined per-device in e.g., board.h.
+ */
+#ifndef CONFIG_ZTIMER_USEC_MIN
+#define CONFIG_ZTIMER_USEC_MIN          (10)
+#endif
+
+/**
+ * @brief   ZTIMER_USEC base timer width
+ */
+#ifndef CONFIG_ZTIMER_USEC_WIDTH
+#  if (TIMER_0_MAX_VALUE) == 0xFFFF
+#    define CONFIG_ZTIMER_USEC_WIDTH        (16)
+#    define XTIMER_WIDTH (24)

why is this 24? isn't xtimer_width always 32 when ztimer is used?

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


More information about the notifications mailing list