<h3>Contribution description</h3>
<p>This PR adds an option to use ztimer as the backend for an <code>event/timeout</code>. To keep the API compatible I added a <code>ztimer_clock_t</code> field to the <code>event_timeout_t</code> type. But this could also be passed in the function signature and maybe have static inlines to implement the current API.</p>
<h3>Testing procedure</h3>
<ul>
<li><code>USEMODULE+=event_timeout_ztimer make -C flash teset</code></li>
</ul>
<h3>Issues/PRs references</h3>


<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/RIOT-OS/RIOT/pull/16505'>https://github.com/RIOT-OS/RIOT/pull/16505</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>sys/event/timeout: add option to use ztimer as backend</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/16505/files#diff-d2e4f5b2cddc5eddb20e42bf88b7b16085ba4599fab8081e6f6168f60e12fedb">makefiles/pseudomodules.inc.mk</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/16505/files#diff-df69fd2c7840fcaca7dae211c7df24745d202e8482f8d5f0957cc15ef90b948f">sys/Makefile.dep</a>
    (10)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/16505/files#diff-22ea1b4a5faa4ce861eeac3247967b73a4adb2343211ffad6b4d08e02b0e0ee9">sys/event/timeout.c</a>
    (34)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/16505/files#diff-4a98be525901fa74b3c142562d748adc0f430076c1786da2a5619a8bb9466b59">sys/include/event/timeout.h</a>
    (32)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/16505/files#diff-0d31392aa7a60a62bb1df85eab8ce36f021210d02f7c29d41498b161a02a5b5a">tests/events/main.c</a>
    (13)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/RIOT-OS/RIOT/pull/16505.patch'>https://github.com/RIOT-OS/RIOT/pull/16505.patch</a></li>
  <li><a href='https://github.com/RIOT-OS/RIOT/pull/16505.diff'>https://github.com/RIOT-OS/RIOT/pull/16505.diff</a></li>
</ul>

<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/16505">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYBMERSAL6NLHLR7TATTP2UMTANCNFSM45VBPLFA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABE7WYE3MKEVGDFQJL2DFYLTP2UMTA5CNFSM45VBPLFKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4NPEPBAQ.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/16505",
"url": "https://github.com/RIOT-OS/RIOT/pull/16505",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>