[riot-notifications] [RIOT-OS/RIOT] cpu/stm32f4/2: add flashpage and flashpage_raw (#11681)

Francisco notifications at github.com
Tue Jun 18 09:08:46 CEST 2019


fjmolinas commented on this pull request.



> +    for (unsigned i = 0; i < FLASHPAGE_SIZE; i += sizeof(uint32_t)) {
+        if (*(uint32_t *) (page_addr + i) != 0xffffffff) {
+            blank = false;
+            break;
+        }
+    }
+    /* erase the sector if it failed the blank check */
+    if (!blank) {
+        uint8_t sn = flashsector_sector(page_addr);
+        DEBUG("[flashsector] erase: erasing sector: %d\n", sn);
+        _erase_sector(sn);
+    }
+}
+#endif
+
+#if !(defined(CPU_FAM_STM32F2) || defined(CPU_FAM_STM32F4))

Should this be done for the other cases not related to this PR?

-- 
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/11681#discussion_r294637316
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190618/eb572673/attachment.html>


More information about the notifications mailing list