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

Marian Buschsieweke notifications at github.com
Wed Mar 13 20:31:13 CET 2019

maribu commented on this pull request.

> @@ -60,6 +61,14 @@ unsigned irq_enable(void);
 void irq_restore(unsigned state);
+ * @brief   Test if IRQs are currently enabled
+ *
+ * @return  0 (false) if IRQs are currently disabled
+ * @return  != 0 (true) if IRQs are currently enabled

> Suffice it to say that if you’ve got two USARTs on a system and you want either USART to interrupt the SPI ISR but not each other, and you’d like USART0 to always get handled before USART1 for instance, you can do it.

Original source: https://hackaday.com/2015/09/18/embed-with-elliot-interrupts-the-good/

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/20190313/90e73852/attachment.html>

More information about the notifications mailing list