<p><em>Originally posted by <a class="user-mention" data-hovercard-type="user" data-hovercard-url="/hovercards?user_id=7765855" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/PeterKietzmann">@PeterKietzmann</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="485248998" data-permission-text="Issue title is private" data-url="https://github.com/RIOT-OS/RIOT/issues/12083" data-hovercard-type="pull_request" data-hovercard-url="/RIOT-OS/RIOT/pull/12083/hovercard" href="https://github.com/RIOT-OS/RIOT/pull/12083">#12083</a></em></p>
<blockquote>
<p><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/hovercards?user_id=33233285" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Ilmu011">@Ilmu011</a> for the TMR3 vs TMR4 discussion, please keep that one separate in an own issue or even better in a fixing PR :-)</p>
</blockquote>
<p>This driver currently uses TMR4 to detect ACK timeouts in TR operations. There is a dedicated timer for detecting timeouts in RX-operations and that is TMR3. I am working on <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="379669865" data-permission-text="Issue title is private" data-url="https://github.com/RIOT-OS/RIOT/issues/10364" data-hovercard-type="issue" data-hovercard-url="/RIOT-OS/RIOT/issues/10364/hovercard" href="https://github.com/RIOT-OS/RIOT/issues/10364">#10364</a> right now and the kw41z driver uses TMR3 for this purpose, which seems to make more sense.</p>
<p>See <a href="https://www.nxp.com/docs/en/reference-manual/MKW2xDxxxRM.pdf#page=171" rel="nofollow">section 7.6.2</a> of the Reference Manual "Using T3CMP to Abort an RX operation"</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/12287'>https://github.com/RIOT-OS/RIOT/pull/12287</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>drivers/kw2xrf: use TMR3 instead TMR4 to detect ACK timeout</li>
  <li>drivers/kw2xrf: Fixed IRQ handling order</li>
  <li>drivers/kw2xrf: Reset interrupt bit for timer 3</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/12287/files#diff-0">drivers/kw2xrf/kw2xrf_netdev.c</a>
    (41)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/RIOT-OS/RIOT/pull/12287.patch'>https://github.com/RIOT-OS/RIOT/pull/12287.patch</a></li>
  <li><a href='https://github.com/RIOT-OS/RIOT/pull/12287.diff'>https://github.com/RIOT-OS/RIOT/pull/12287.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/12287?email_source=notifications&email_token=ABE7WYHC2F5MOPXNEJYX4GTQLBXU7A5CNFSM4IZHNIL2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HM6W7CQ">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYDV4WBGZUHOUBIITJTQLBXU7ANCNFSM4IZHNILQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABE7WYGWQOGZMUQVNWBWUYTQLBXU7A5CNFSM4IZHNIL2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HM6W7CQ.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/12287?email_source=notifications\u0026email_token=ABE7WYHC2F5MOPXNEJYX4GTQLBXU7A5CNFSM4IZHNIL2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HM6W7CQ",
"url": "https://github.com/RIOT-OS/RIOT/pull/12287?email_source=notifications\u0026email_token=ABE7WYHC2F5MOPXNEJYX4GTQLBXU7A5CNFSM4IZHNIL2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HM6W7CQ",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>