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

Gunar Schorcht 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:
https://github.com/RIOT-OS/RIOT/pull/11117#discussion_r265298443
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190313/d6bafb75/attachment.html>


More information about the notifications mailing list