<h3>Contribution description</h3>
<p>Wired up <code>ZTIMER_SEC</code> to the existing RTC backend, or RTT backend, or <code>periph_timer</code> backend (in this order of preference).</p>
<h3>Testing procedure</h3>
<ul>
<li><code>tests/ztimer_msg</code> has been updated to allow testing <code>ZTIMER_SEC</code>. Note: Uncomment a line in the Makefile as documented there</li>
<li><code>tests/ztimer_underflow</code> has been updated to allow testing <code>ZTIMER_SEC</code>
<ul>
<li>Run <code>make TEST_ZTIMER_CLOCK=ZTIMER_SEC -C tests/ztimer_underflow flash test</code></li>
<li>This fails for me, which proves two things: a) wiring up the RTC worked, and b) there is a preexisting bug in <code>master</code> unrelated to the PR that needs fixing.</li>
</ul>
</li>
</ul>
<h3>Issues/PRs references</h3>
<p>None</p>

<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/15715'>https://github.com/RIOT-OS/RIOT/pull/15715</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>sys/ztimer: add ZTIMER_SEC</li>
  <li>tests/ztimer_msg: Allow testing ZTIMER_SEC</li>
  <li>tests/ztimer_underflow: allow testing ZTIMER_SEC</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/15715/files#diff-5b269d0b67e1f02706c23722a463fb74fde20a4fb83cf31800c05018f63491aa">sys/include/ztimer.h</a>
    (5)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/15715/files#diff-f816c5eac96223b793dcfe72ef3990ac5b40ae27d579fdf716c75cdab7dcdad2">sys/ztimer/Makefile.dep</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/15715/files#diff-72bb9b84e1c322e71aca2f18ce815259da30c903b5fbff1a88351a6e62966d43">sys/ztimer/auto_init.c</a>
    (36)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/15715/files#diff-181e0003e3d523e7fab0eb988d1687001d353865c0b9fd27b986f80ca14e5803">tests/ztimer_msg/Makefile</a>
    (3)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/15715/files#diff-8d40a84f142816c2738895130859d4a3766b44c72ac69f2e9787f24e31a3ca7c">tests/ztimer_msg/main.c</a>
    (5)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/15715/files#diff-4d3a4131fb2f01f0ed40389437600baad2c2fa03f4f3268439199fe8696801e8">tests/ztimer_underflow/Makefile</a>
    (4)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/RIOT-OS/RIOT/pull/15715.patch'>https://github.com/RIOT-OS/RIOT/pull/15715.patch</a></li>
  <li><a href='https://github.com/RIOT-OS/RIOT/pull/15715.diff'>https://github.com/RIOT-OS/RIOT/pull/15715.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/15715">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYHRJF3HAW2XSN55SJ3SYV5ZLANCNFSM4VYW6FDQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABE7WYHFL7OP75KZSGSPAC3SYV5ZLA5CNFSM4VYW6FD2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4LUPWSGA.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/15715",
"url": "https://github.com/RIOT-OS/RIOT/pull/15715",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>