[riot-notifications] [RIOT-OS/RIOT] stm32f{2, 4, 7}: Initial flashpage support (#15420)

Koen Zandberg notifications at github.com
Tue Jan 26 10:41:01 CET 2021


@bergzand commented on this pull request.



> +    unsigned page = (((intptr_t)addr - CPU_FLASH_BASE) / (16 * 1024));
+
+    if (page > 7) {
+        page = (page / 8) + 4;
+    }
+    else if (page > 3) {
+        page = 4;
+    }

Heavily commented the function, let me know if it is more clear now

-- 
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/15420#discussion_r564373552
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210126/15584c53/attachment.htm>


More information about the notifications mailing list