[riot-notifications] [RIOT-OS/RIOT] FIDO2 support in RIOT (#16489)

Nils Ollrogge notifications at github.com
Fri Aug 27 10:13:56 CEST 2021

@Ollrogge commented on this pull request.

> +        }
+    }
+    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);

I am kind of confused about the `mtd_dev`. 
I am now using the `MTD_FLASHPAGE_INIT_VAL` to initialize a `mtd_dev_t` to use. This uses the flashpage memory driver implemented in `mtd_flashpage.c`. Today I noticed that `boards/nrf52840dk` exports a `mtd_dev` (MTD_0).

To my understanding the MTD_0 driver enables access to external flash memory, whereas the flashpage driver enables access to internal flash.

Now I am wondering if I should use both ?

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210827/897221ce/attachment.htm>

More information about the notifications mailing list