[riot-notifications] [RIOT-OS/RIOT] mtd: rename mtd_write_page() -> mtd_write_page_raw(), add high-level mtd_write_page() (#15843)

benpicco notifications at github.com
Thu Jan 28 11:52:25 CET 2021

@benpicco commented on this pull request.

> @@ -122,11 +134,49 @@ int mtd_write(mtd_dev_t *mtd, const void *src, uint32_t addr, uint32_t count)
     const uint32_t page_shift = bitarithm_msb(mtd->page_size);
     const uint32_t page_mask = mtd->page_size - 1;
-    return mtd_write_page(mtd, src, addr >> page_shift, addr & page_mask, count);
+    return mtd_write_page_raw(mtd, src, addr >> page_shift, addr & page_mask, count);

Good idea, changed it.

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/20210128/9265bcb0/attachment.htm>

More information about the notifications mailing list