[riot-notifications] [RIOT-OS/RIOT] core: add irq_is_enabled() function to irq interface (#11117)

Francisco notifications at github.com
Thu Aug 19 09:21:06 CEST 2021


> After some quick testing with native and cortex-m, I found that both behave differently when calling `irq_is_enabled()` from interrupt context. As there its not easy to say what the correct return value would be here, I decided to mark the function to be only valid in thread context for now. This should be the save way to go, and we can always relax/delete that warning if we figure out a platform independent behavior of what to return from interrupt context...

Whats the behaviour in both cases?

-- 
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/11117#issuecomment-901672986
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210819/8c3f8143/attachment.htm>


More information about the notifications mailing list