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

benpicco notifications at github.com
Fri Jan 29 14:33:46 CET 2021


@benpicco commented on this pull request.



> @@ -118,8 +126,19 @@ static void _erase_page(void *page_addr)
     pn = (uint8_t)page;
 #endif
     CNTRL_REG &= ~FLASH_CR_PNB;
+#ifdef FLASHPAGE_DUAL_BANK
+    if (FLASHPAGE_DUAL_BANK && (pn > (FLASHPAGE_NUMOF / 2 - 1))) {
+        pn = pn - (FLASHPAGE_NUMOF / 2);
+        CNTRL_REG |= FLASH_CR_SNB_4 | (uint32_t)(pn << FLASH_CR_PNB_Pos);

`FLASH_CR_SNB_4` is undeclared on `nucleo-f722ze`

-- 
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-579258027
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210129/5c594827/attachment.htm>


More information about the notifications mailing list