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

Kaspar Schleiser notifications at github.com
Tue Jun 29 11:39:09 CEST 2021

This might work for mips (untested):

int irq_is_enabled(void)                                                                                                                          {                                                                                                                                                
    return mips32_get_c0(C0_STATUS) & SR_IE;                                                                                                     
// or, always returning "false" when already in an isr:                                                                                                                                     
int irq_is_enabled(void)                                                                                                                         
    return !(irq_is_in()) && (mips32_get_c0(C0_STATUS) & SR_IE);                                                                                 

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/20210629/54131647/attachment.htm>

More information about the notifications mailing list