[riot-notifications] [RIOT-OS/RIOT] cpu/efm32: fix i2c transfers (#15764)

benpicco notifications at github.com
Thu Jan 14 00:22:28 CET 2021

@benpicco commented on this pull request.

-        if (i2c_progress[dev] == i2cTransferInProgress && timeout--) {
-            cortexm_sleep_until_event();
-        }
-        else {
-            busy = false;
-        }
+    while (i2c_progress[dev] == i2cTransferInProgress && counter--) {}

> Unfortunately, this approach doesn't seem to work for the SLTB001a. That one uses I2C in board.c, which now relies on the scheduler to be active already.

Sounds like a bug :wink: 
Why does it need I2C in `board_init()`?

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210113/825d24b4/attachment.htm>

More information about the notifications mailing list