[riot-notifications] [RIOT-OS/RIOT] nrf52/i2c: Use mutex and IRQ for blocking (#14165)

Koen Zandberg notifications at github.com
Fri May 29 16:17:51 CEST 2020


> Looking at the energy consumption aspect it seems to me we loose a light bit of efficiency in the same order of magnitude: the code in master should put the CPU into light sleep for the complete wait duration, while with #14165 the idle thread is only active for the transfer duration minus the time taken for the task switching, right?

Exactly, with an otherwise idle cpu, it should still light sleep for the transfer duration, with a small bit of extra overhead caused by the mutex in this PR.

I'm starting to think if switching between the `nrf52_sleep()`-option and the mutex based on a compile-time setting makes sense. Let the user decide if he/she really needs the amount of power saved by instantly sleeping.

-- 
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/14165#issuecomment-635996782
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200529/7967324a/attachment.htm>


More information about the notifications mailing list