Provides an API to control interrupt processing.
More...
Provides an API to control interrupt processing.
|
file | irq.h |
| IRQ driver interface.
|
|
|
MAYBE_INLINE unsigned | irq_disable (void) |
| This function sets the IRQ disable bit in the status register. More...
|
|
MAYBE_INLINE unsigned | irq_enable (void) |
| This function clears the IRQ disable bit in the status register. More...
|
|
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. More...
|
|
MAYBE_INLINE int | irq_is_in (void) |
| Check whether called from interrupt service routine. More...
|
|
◆ irq_disable()
MAYBE_INLINE unsigned irq_disable |
( |
void |
| ) |
|
This function sets the IRQ disable bit in the status register.
- Returns
- Previous value of status register. The return value should not be interpreted as a boolean value. The actual value is only significant for irq_restore().
- See also
- irq_restore
◆ irq_enable()
MAYBE_INLINE unsigned irq_enable |
( |
void |
| ) |
|
This function clears the IRQ disable bit in the status register.
- Returns
- Previous value of status register. The return value should not be interpreted as a boolean value. The actual value is only significant for irq_restore().
- See also
- irq_restore
◆ irq_is_in()
MAYBE_INLINE int irq_is_in |
( |
void |
| ) |
|
Check whether called from interrupt service routine.
- Returns
- true, if in interrupt service routine, false if not
◆ irq_restore()
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.
- Parameters
-
[in] | state | state to restore |
- See also
- irq_enable
-
irq_disable