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

Francisco notifications at github.com
Mon Aug 2 13:48:57 CEST 2021


@fjmolinas commented on this pull request.



> @@ -67,6 +68,14 @@ MAYBE_INLINE unsigned irq_enable(void);
  */
 MAYBE_INLINE 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
+ */
+int irq_is_enabled(void);

```suggestion
MAYBE_INLINE int irq_is_enabled(void);
```

-- 
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#pullrequestreview-720113889
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210802/214e1426/attachment.htm>


More information about the notifications mailing list