[riot-notifications] [RIOT-OS/RIOT] periph_flashpage: Make pagewise API optional (#15412)

Koen Zandberg notifications at github.com
Wed Nov 11 10:51:08 CET 2020


@bergzand commented on this pull request.



> @@ -110,6 +119,6 @@ void flashpage_write(int page, const void *data)
 
     /* write page */
     if (data != NULL) {
-        flashpage_write_raw(page_addr, data, FLASHPAGE_SIZE);
+        flashpage_write(page_addr, data, FLASHPAGE_SIZE);
     }
 }

Good idea. I can add this here (or in a follow up) and guard it to only include it when `FLASHPAGE_SIZE` is available (it is not available on the stm32f{2,4,7}) and allow CPU implementations to override it if they have an optimized version available.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/15412#discussion_r521239723
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201111/3d8a3d70/attachment.htm>


More information about the notifications mailing list