[riot-notifications] [RIOT-OS/RIOT] sys/ztimer: initial import (#11874)

Kaspar Schleiser notifications at github.com
Tue Sep 10 10:58:31 CEST 2019


kaspar030 commented on this pull request.



> +       define ZTIMER_USEC_CONVERT_BITS  9
+#    else
+#      error unhandled CONFIG_ZTIMER_USEC_FREQ!
+#    endif
+
+     static ztimer_periph_t _ztimer_usec_periph;
+#    define ZTIMER_USEC_INIT_PERIPH() \
+            ztimer_periph_init(&_ztimer_usec_periph, CONFIG_ZTIMER_USEC_DEV, \
+                             CONFIG_ZTIMER_USEC_FREQ)
+#    define _ZTIMER_USEC_DEV _ztimer_usec_periph
+#  else
+#    error unknown CONFIG_ZTIMER_USEC_TYPE!
+#  endif /* CONFIG_ZTIMER_USEC_TYPE == ZTIMER_TYPE_PERIPH */
+
+# if (CONFIG_ZTIMER_USEC_WIDTH == 32) && (ZTIMER_USEC_CONVERT_BITS == 0)
+    ztimer_dev_t *const ZTIMER_USEC = (ztimer_dev_t *) &_ZTIMER_USEC_DEV;

no, "dev" is ztimer_periph specific.

-- 
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/11874#discussion_r322627115
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190910/27db44fb/attachment-0001.htm>


More information about the notifications mailing list