RTEMS 6.1-rc7
Loading...
Searching...
No Matches
irq.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-2-Clause */
2
11/*
12 * Copyright (C) 2008, 2012 embedded brains GmbH & Co. KG
13 *
14 * Redistribution and use in source and binary forms, with or without
15 * modification, are permitted provided that the following conditions
16 * are met:
17 * 1. Redistributions of source code must retain the above copyright
18 * notice, this list of conditions and the following disclaimer.
19 * 2. Redistributions in binary form must reproduce the above copyright
20 * notice, this list of conditions and the following disclaimer in the
21 * documentation and/or other materials provided with the distribution.
22 *
23 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
24 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
27 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
28 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
29 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
30 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
31 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
32 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33 * POSSIBILITY OF SUCH DAMAGE.
34 */
35
36#ifndef LIBBSP_ARM_LPC176X_IRQ_H
37#define LIBBSP_ARM_LPC176X_IRQ_H
38
39#ifndef ASM
40#include <rtems.h>
41#include <rtems/irq.h>
42#include <rtems/irq-extension.h>
43#endif
44
51#define LPC176X_IRQ_WDT 0U
52#define LPC176X_IRQ_TIMER_0 1U
53#define LPC176X_IRQ_TIMER_1 2U
54#define LPC176X_IRQ_TIMER_2 3U
55#define LPC176X_IRQ_TIMER_3 4U
56#define LPC176X_IRQ_UART_0 5U
57#define LPC176X_IRQ_UART_1 6U
58#define LPC176X_IRQ_UART_2 7U
59#define LPC176X_IRQ_UART_3 8U
60#define LPC176X_IRQ_PWM_1 9U
61#define LPC176X_IRQ_PLL 16U
62#define LPC176X_IRQ_RTC 17U
63#define LPC176X_IRQ_EINT_0 18U
64#define LPC176X_IRQ_EINT_1 19U
65#define LPC176X_IRQ_EINT_2 20U
66#define LPC176X_IRQ_EINT_3 21U
67#define LPC176X_IRQ_ADC_0 22U
68#define LPC176X_IRQ_BOD 23U
69#define LPC176X_IRQ_USB 24U
70#define LPC176X_IRQ_CAN 25U
71#define LPC176X_IRQ_DMA 26U
72#define LPC176X_IRQ_I2S 27U
73#define LPC176X_IRQ_SD_MMC 29U
74#define LPC176X_IRQ_MCPWM 30U
75#define LPC176X_IRQ_QEI 31U
76#define LPC176X_IRQ_PLL_ALT 32U
77#define LPC176X_IRQ_USB_ACTIVITY 33U
78#define LPC176X_IRQ_CAN_ACTIVITY 34U
79#define LPC176X_IRQ_UART_4 35U
80#define LPC176X_IRQ_GPIO 38U
81#define LPC176X_IRQ_PWM 39U
82#define LPC176X_IRQ_EEPROM 40U
83
84#define BSP_INTERRUPT_VECTOR_COUNT 41
85
86#define LPC176X_IRQ_PRIORITY_VALUE_MIN 0U
87
88#define LPC176X_IRQ_PRIORITY_VALUE_MAX 31U
89
90#define LPC176X_IRQ_PRIORITY_COUNT ( LPC176X_IRQ_PRIORITY_VALUE_MAX + 1U )
91#define LPC176X_IRQ_PRIORITY_HIGHEST LPC176X_IRQ_PRIORITY_VALUE_MIN
92#define LPC176X_IRQ_PRIORITY_LOWEST LPC176X_IRQ_PRIORITY_VALUE_MAX
93
94#ifndef ASM
95
103 rtems_vector_number vector,
104 unsigned priority
105);
106
114
115#endif /* ASM */
116
119#endif /* LIBBSP_ARM_LPC176X_IRQ_H */
ISR_Vector_number rtems_vector_number
This integer type represents interrupt vector numbers.
Definition: intr.h:102
void lpc176x_irq_set_priority(rtems_vector_number vector, unsigned priority)
Sets the priority according to the current interruption.
Definition: irq.c:57
unsigned lpc176x_irq_get_priority(rtems_vector_number vector)
Gets the priority number according to the current interruption.
Definition: irq.c:77
This header file is provided for backward compatiblility.
This header file defines the RTEMS Classic API.