irq_arch.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014 Freie Universit├Ąt Berlin
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
25 #ifndef ARCH_IRQ_ARCH_H
26 #define ARCH_IRQ_ARCH_H
27 
28 #ifdef __cplusplus
29  extern "C" {
30 #endif
31 
39 #ifdef COREIF_NG
40 #define irq_enable irq_arch_enable
41 #define irq_disable irq_arch_disable
42 #define irq_restore irq_arch_restore
43 #define irq_is_in irq_arch_in
44 #endif
45 
52 unsigned int irq_arch_enable(void);
53 
59 unsigned int irq_arch_disable(void);
60 
61 
67 void irq_arch_restore(unsigned int state);
68 
74 int irq_arch_in(void);
75 
76 #ifdef __cplusplus
77 }
78 #endif
79 
80 #endif /* ARCH_IRQ_ARCH_H */
81 
int irq_arch_in(void)
See if the current context is inside an ISR.
unsigned int irq_arch_disable(void)
Globally disable all maskable interrupt sources.
void irq_arch_restore(unsigned int state)
Restore a previously recorded IRQ state.
unsigned int irq_arch_enable(void)
Globally enable maskable interrupt sources.