[riot-notifications] [RIOT-OS/RIOT] stm32_common/flash: move wait_for_pending_operation to flash_common (#11355)

Francisco notifications at github.com
Fri Apr 12 08:59:18 CEST 2019


fjmolinas commented on this pull request.



> @@ -56,3 +57,16 @@ void _lock(void)
         CNTRL_REG |= CNTRL_REG_LOCK;
     }
 }
+
+void _wait_for_pending_operations(void)
+{
+    if ((FLASH->SR & FLASH_SR_BSY) == FLASH_SR_BSY) {

Yep, makes sense with how its called afterwards to. Changed!

-- 
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/11355#discussion_r274780546
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190411/f916fcf1/attachment.html>


More information about the notifications mailing list