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

<hr>

<p>In <a href="https://github.com/RIOT-OS/RIOT/pull/16489#discussion_r697244054">sys/fido2/ctap/ctap_mem.c</a>:</p>
<pre style='color:#555'>> +        }
+    }
+    else {
+        ret = mtd_write_page_raw(&_mtd_dev, buf, page, offset, len);
+
+        if (ret < 0) {
+            return CTAP1_ERR_OTHER;
+        }
+    }
+
+    return CTAP2_OK;
+}
+
+static bool _flash_is_erased(int page, int offset, size_t len)
+{
+    uint8_t *addr = ((uint8_t *)flashpage_addr(page) + offset);
</pre>
<p>I am kind of confused about the <code>mtd_dev</code>.<br>
I am now using the <code>MTD_FLASHPAGE_INIT_VAL</code> to initialize a <code>mtd_dev_t</code> to use. This uses the flashpage memory driver implemented in <code>mtd_flashpage.c</code>. Today I noticed that <code>boards/nrf52840dk</code> exports a <code>mtd_dev</code> (MTD_0).</p>
<p>To my understanding the MTD_0 driver enables access to external flash memory, whereas the flashpage driver enables access to internal flash.</p>
<p>Now I am wondering if I should use both ?</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/16489#discussion_r697244054">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYEWK4G3FTV2TDCHYQLT65CMJANCNFSM45IUCTGA">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/ABE7WYDR6JIOLIGHTMGWU4LT65CMJA5CNFSM45IUCTGKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOFQPW6WI.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/16489#discussion_r697244054",
"url": "https://github.com/RIOT-OS/RIOT/pull/16489#discussion_r697244054",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>