[riot-notifications] [RIOT-OS/RIOT] core: add irq_is_enabled() function to irq interface (#11117)
notifications at github.com
Wed Mar 13 20:36:17 CET 2019
gschorcht 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
BTW, xtensa processors such as the ESP8266 and the ESP32 also allow the interruption of an ISR if interrupts are not explicitly disabled. Disabling interrupts is done explicitly in software in ISR hooks.
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...
More information about the notifications