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

benpicco notifications at github.com
Fri Nov 27 13:12:57 CET 2020


@benpicco 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;
+    }

it's not obvious to me how that works

-- 
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#pullrequestreview-539934552
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201127/27d93373/attachment.htm>


More information about the notifications mailing list