[riot-notifications] [RIOT-OS/RIOT] ztimer: pull in xtimer_on_ztimer only if ztimer_periph_timer is used (#14036)

Kaspar Schleiser notifications at github.com
Tue May 19 12:12:35 CEST 2020


@kaspar030 commented on this pull request.



> @@ -23,11 +23,11 @@ ifneq (,$(filter ztimer,$(USEMODULE)))
   endif
 endif
 
-# unless ztimer_xtimer_compat is used, make xtimer use ztimer as backend.
-ifneq (,$(filter ztimer,$(USEMODULE)))
+# unless ztimer_xtimer_compat is used, make xtimer use ztimer_usec as backend.
+ifneq (,$(filter ztimer_periph_timer,$(USEMODULE)))

I think this is alright. I intentionally tried to minimize xtimer code (drop xtimers extension code) when ztimer is used, but that behavior can still be had by also using ztimer_msec.

-- 
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/14036#discussion_r427187904
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200519/98597951/attachment.htm>


More information about the notifications mailing list