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

Koen Zandberg notifications at github.com
Thu Jan 28 16:27:03 CET 2021


@bergzand commented on this pull request.



> +size_t flashpage_size(unsigned page)
+{
+    if (page < 4) {
+        return FLASHPAGE_MIN_SECTOR_SIZE;
+    }
+    else if (page == 4) {
+        return 4 * FLASHPAGE_MIN_SECTOR_SIZE;
+    }
+    else {
+        return 8 * FLASHPAGE_MIN_SECTOR_SIZE;
+    }
+}
+
+void *flashpage_addr(unsigned page)
+{
+    uintptr_t addr = 0;

```suggestion
    uintptr_t addr = CPU_FLASH_BASE;
```

-- 
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-578448846
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210128/9cc19a40/attachment.htm>


More information about the notifications mailing list