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

Alexandre Abadie notifications at github.com
Thu Apr 11 20:57:36 CEST 2019


aabadie 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) {

Maybe just:
```suggestion
    if (FLASH->SR & FLASH_SR_BSY) {
```
?

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


More information about the notifications mailing list