[riot-notifications] [RIOT-OS/RIOT] stm32/flashpage: Add common stm32_flashpage_block_t type (#15467)

Koen Zandberg notifications at github.com
Wed Nov 18 12:31:16 CET 2020


@bergzand commented on this pull request.



> @@ -116,16 +99,16 @@ static void _erase_page(void *page_addr)
     DEBUG("address to erase: %p\n", page_addr);
 #if defined(CPU_FAM_STM32L0) || defined(CPU_FAM_STM32L1)
     DEBUG("[flashpage] erase: trigger the page erase\n");
-    *dst = (uint32_t)0;
+    *(uint32_t*)page_addr = 0;

Thanks, amended

-- 
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/15467#discussion_r526015674
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201118/b15573ec/attachment.htm>


More information about the notifications mailing list