Provides an API to control interrupt processing. More...
Provides an API to control interrupt processing.
| Files | |
| file | irq.h | 
| IRQ driver interface. | |
| file | irq.hpp | 
| Provides a C++ RAI based API to control interrupt processing. | |
| Functions | |
| MAYBE_INLINE unsigned | irq_disable (void) | 
| This function sets the IRQ disable bit in the status register. | |
| MAYBE_INLINE unsigned | irq_enable (void) | 
| This function clears the IRQ disable bit in the status register. | |
| MAYBE_INLINE void | irq_restore (unsigned state) | 
| This function restores the IRQ disable bit in the status register to the value contained within passed state. | |
| MAYBE_INLINE bool | irq_is_enabled (void) | 
| Test if IRQs are currently enabled. | |
| MAYBE_INLINE bool | irq_is_in (void) | 
| Check whether called from interrupt service routine. | |
| MAYBE_INLINE unsigned irq_disable | ( | void | ) | 
This function sets the IRQ disable bit in the status register.
| MAYBE_INLINE unsigned irq_enable | ( | void | ) | 
This function clears the IRQ disable bit in the status register.
Use irq_restore instead.
| MAYBE_INLINE bool irq_is_enabled | ( | void | ) | 
Test if IRQs are currently enabled.
| MAYBE_INLINE bool irq_is_in | ( | void | ) | 
Check whether called from interrupt service routine.
| MAYBE_INLINE void irq_restore | ( | unsigned | state | ) | 
This function restores the IRQ disable bit in the status register to the value contained within passed state.
| [in] | state | state to restore |