openMMC
Open Source Modular MMC for AMCs
Loading...
Searching...
No Matches
lpc17_interruptions.h
Go to the documentation of this file.
1
/*
2
* openMMC --
3
*
4
* Copyright (C) 2015 Henrique Silva <henrique.silva@lnls.br>
5
*
6
* This program is free software: you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation, either version 3 of the License, or
9
* (at your option) any later version.
10
*
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with this program. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
27
#ifdef PORT_INTERRUPTIONS_H_
28
#error Interruption functions already defined somewhere else! Aborting...
29
#else
30
#define PORT_INTERRUPTIONS_H_
31
32
#include "
core_cm3.h
"
33
40
#define irq_set_priority(irq, priority) NVIC_SetPriority( irq, priority )
41
47
#define irq_enable(irq) NVIC_EnableIRQ( irq )
48
54
#define irq_disable(irq) NVIC_DisableIRQ( irq )
55
63
#define irq_clear_pending(irq) NVIC_ClearPendingIRQ( irq )
64
72
#define irq_set_pending(irq) NVIC_SetPendingIRQ( irq )
73
84
#define irq_get_active(irq) NVIC_GetActive( irq )
85
86
#endif
core_cm3.h
CMSIS Cortex-M3 Core Peripheral Access Layer Header File.
port
ucontroller
nxp
lpc17xx
lpc17_interruptions.h
Generated on Wed Jul 24 2024 08:15:56 for openMMC by
1.11.0