irq_arch_common.h File Reference

Implementation of the kernels irq interface. More...

Detailed Description

Implementation of the kernels irq interface.

Author
Gunar Schorcht gunar.nosp@m.@sch.nosp@m.orcht.nosp@m..net

Definition in file irq_arch_common.h.

#include "irq.h"
#include "sched.h"
#include "thread.h"
+ Include dependency graph for irq_arch_common.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Variables

volatile uint32_t irq_interrupt_nesting
 Indicates the interrupt nesting depth. More...
 

Macros to enter and exit an ISR

Since all the stuff is done in _frxt_int_enter and _frxt_int_exit, these macros are doing nothing and are kept only for source code compatibility.

#define irq_isr_enter()
 
#define irq_isr_exit()
 

Macros to enter and exit a critical region

Note
: since they use a local variable they can be used only in same function
#define critical_enter()   int _irq_state = irq_disable()
 
#define critical_exit()   irq_restore(_irq_state)
 

Macros to enter and exit a critical region with state variable

#define critical_enter_var(m)   m = irq_disable()
 
#define critical_exit_var(m)   irq_restore(m)
 

Variable Documentation

◆ irq_interrupt_nesting

volatile uint32_t irq_interrupt_nesting

Indicates the interrupt nesting depth.

The variable is incremented on entry into and decremented on exit from an ISR.