The friendly Operating System for the Internet of Things
irq.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2013 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 
21 #ifndef IRQ_H
22 #define IRQ_H
23 
24 #include <stdbool.h>
25 #include "arch/irq_arch.h"
26 
27 #ifdef __cplusplus
28  extern "C" {
29 #endif
30 
40 unsigned irq_disable(void);
41 
51 unsigned irq_enable(void);
52 
62 void irq_restore(unsigned state);
63 
68 int irq_is_in(void);
69 
70 #ifdef __cplusplus
71 }
72 #endif
73 
74 #endif /* IRQ_H */
75 
void irq_restore(unsigned state)
This function restores the IRQ disable bit in the status register to the value contained within passe...
int irq_is_in(void)
Check whether called from interrupt service routine.
Interrupt handling interface for globally en- and disabling interrupts.
unsigned irq_enable(void)
This function clears the IRQ disable bit in the status register.
unsigned irq_disable(void)
This function sets the IRQ disable bit in the status register.