[riot-notifications] [RIOT-OS/RIOT] nrf52/i2c: Use mutex and IRQ for blocking (#14165)
notifications at github.com
Fri May 29 17:28:27 CEST 2020
@benpicco commented on this pull request.
> static inline NRF_TWIM_Type *bus(i2c_t dev)
static int finish(i2c_t dev)
+ /* Unmask interrupts */
+ bus(dev)->INTENSET = TWIM_INTEN_STOPPED_Msk | TWIM_INTEN_ERROR_Msk;
DEBUG("[i2c] waiting for STOPPED or ERROR event\n");
Should be moved before the lock - just squash again
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...
More information about the notifications