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

Bas Stottelaar notifications at github.com
Thu Jan 14 00:28:42 CET 2021

@basilfx commented on this pull request.

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

Oops, I meant xtimer instead of scheduler ;-)

It needs this because the SLTB001a contains another MCU (power-interrupt-controller) that is responsible for enabling power lines. It needs to enable all the sensors before `auto_init` kicks in. There is currently no `board_init` that runs after xtimer has started.

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/5e3784c3/attachment-0001.htm>

More information about the notifications mailing list