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

benpicco notifications at github.com
Thu Aug 19 12:21:50 CEST 2021


The implementation for ARM7 is missing.
I think it should be

```C
static inline __attribute__((always_inline)) unsigned irq_is_enabled(void)
{
    return !(__get_cpsr() & IRQ_MASK);
}
```

(untested)

-- 
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-901794661
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210819/c3936011/attachment.htm>


More information about the notifications mailing list