[riot-notifications] [RIOT-OS/RIOT] sys/ztimer: add modules to Kconfig (#15716)

Marian Buschsieweke notifications at github.com
Fri Jan 8 09:29:11 CET 2021


@maribu commented on this pull request.



> +config HAVE_ZTIMER_BACKEND
+    bool
+    help
+        Indicates that a ztimer backend is provided.
+
+endmenu # Backends
+
+menu "Clocks"
+
+config MODULE_ZTIMER_USEC
+    bool "Microseconds"
+    depends on MODULE_ZTIMER_PERIPH_TIMER
+
+config MODULE_ZTIMER_MSEC
+    bool "Milliseconds"
+    depends on HAVE_ZTIMER_BACKEND

I think none. The `ZTIMER_USEC`, `ZTIMER_MSEC` and `ZTIMER_SEC` clocks are initialized in `ztimer_init()` in `sys/ztimer/auto_init.c` - but there the mock backend is not used.

The mock backed will only be used in tests for `ztimer`, where ztimer can be manually initialized by the test application. So the mock clock should IMO be hidden in `make menuconfig`.

-- 
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/15716#discussion_r553805033
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210108/584c6376/attachment.htm>


More information about the notifications mailing list