<p></p>
<p><b>@kaspar030</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/RIOT-OS/RIOT/pull/13990#discussion_r419959677">sys/include/ztimer.h</a>:</p>
<pre style='color:#555'>>  /**
  * @brief   Default ztimer microsecond clock
  */
 extern ztimer_clock_t *const ZTIMER_USEC;
 
+/**
+ * @def     ZTIMER_USEC_BASE_FREQ
+ *
+ * @brief   The frequency of the base ztimer for ZTIMER_USEC
+ */
+#ifdef XTIMER_HZ
</pre>
<p>I see an issue here. I tried to keep all of the ztimer configuration in auto_init.c.<br>
That means that the actual ztimer code compiles from the same headers. Including ztimer.h leads to the same on every platform.<br>
Pulling the configuration here messes with that principle.</p>
<p>A solution would be to change the frequency defines to extern uint32 declarations, and define them in auto_init.c.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/13990#pullrequestreview-405604828">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYDV5LSAIPPGXV2IV4TRP7IFLANCNFSM4MVVYDQA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABE7WYHIM4LEHPE62MDGF3TRP7IFLA5CNFSM4MVVYDQKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGODAWQTXA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/13990#pullrequestreview-405604828",
"url": "https://github.com/RIOT-OS/RIOT/pull/13990#pullrequestreview-405604828",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>