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

Koen Zandberg notifications at github.com
Fri Sep 6 11:27:45 CEST 2019

> Converting from a generic to a specific (e.g. `ztimer_dev_t *` to `ztimer_periph_t`) could be moved to a static inline function. That will make refactoring easier, e.g. if the structure layout of `ztimer_periph_t` changed that `ztimer_dev_t` no longer is the first member.

Would the already existing `container_of` macro be the solution here? It keeps working when the structure layout of `ztimer_periph_t` changes.

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...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190906/b288b2b1/attachment.htm>

More information about the notifications mailing list