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

<hr>

<p>In <a href="https://github.com/RIOT-OS/RIOT/pull/14057#discussion_r423618989">cpu/nrf52/periph/spi.c</a>:</p>
<pre style='color:#555'>> +    if (_len == 1) {
+        _enable_workaround(bus);
+    }
+#endif
+
+    /* Enable IRQ */
+    dev(bus)->INTENSET = SPIM_INTENSET_END_Msk;
+
+    do {
+        size_t transfer_len = len > UINT8_MAX ? UINT8_MAX : len;
+        _transfer(bus, out_buf, in_buf, transfer_len);
+        /* Block until the irq releases the mutex, then lock it again for the
+         * next transfer */
+        mutex_lock(&busy[bus]);
+        out_buf += out_buf ? transfer_len : 0;
+        in_buf += in_buf? transfer_len : 0;
</pre>
<p>And done</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/14057#discussion_r423618989">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYFZBIS6QZDPCF5YEWTRREOARANCNFSM4M6F3MWA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABE7WYHAJDMXUU5Q5C2UO7LRREOARA5CNFSM4M6F3MWKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGODBXH6QI.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/14057#discussion_r423618989",
"url": "https://github.com/RIOT-OS/RIOT/pull/14057#discussion_r423618989",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>