The friendly Operating System for the Internet of Things
irq_arch.h File Reference

Interrupt handling interface for globally en- and disabling interrupts. More...

Detailed Description

This file acts as a wrapper between the kernels interrupt interface and the architecture dependent implementation of the interfaces.

Note
All functions in this module have to be implemented in a way that it is safe to call them from within the context of an ISR.
Author
Hauke Petersen hauke.nosp@m..pet.nosp@m.ersen.nosp@m.@fu-.nosp@m.berli.nosp@m.n.de

Definition in file irq_arch.h.

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

unsigned int irq_arch_enable (void)
 Globally enable maskable interrupt sources. More...
 
unsigned int irq_arch_disable (void)
 Globally disable all maskable interrupt sources. More...
 
void irq_arch_restore (unsigned int state)
 Restore a previously recorded IRQ state. More...
 
int irq_arch_in (void)
 See if the current context is inside an ISR. More...
 

Function Documentation

unsigned int irq_arch_disable ( void  )
Returns
the IRQ state before disabling interrupts
unsigned int irq_arch_enable ( void  )
Returns
the IRQ state after enabling interrupts
int irq_arch_in ( void  )
Returns
1 if currently in interrupt context, 0 otherwise
void irq_arch_restore ( unsigned int  state)
Parameters
[in]statethe state to set the IRQ flags to