1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @ingroup bsp_interrupt |
---|
5 | * |
---|
6 | * @brief Interrupt definitions. |
---|
7 | */ |
---|
8 | |
---|
9 | /* |
---|
10 | * Copyright (c) 2013 Alan Cudmore |
---|
11 | * |
---|
12 | * The license and distribution terms for this file may be |
---|
13 | * found in the file LICENSE in this distribution or at |
---|
14 | * |
---|
15 | * http://www.rtems.com/license/LICENSE |
---|
16 | * |
---|
17 | */ |
---|
18 | |
---|
19 | #ifndef LIBBSP_ARM_RASBPERRYPI_IRQ_H |
---|
20 | #define LIBBSP_ARM_RASPBERRYPI_IRQ_H |
---|
21 | |
---|
22 | #ifndef ASM |
---|
23 | |
---|
24 | #include <rtems.h> |
---|
25 | #include <rtems/irq.h> |
---|
26 | #include <rtems/irq-extension.h> |
---|
27 | |
---|
28 | #define BCM2835_INTC_TOTAL_IRQ 64 + 8 |
---|
29 | |
---|
30 | |
---|
31 | #define BCM2835_IRQ_ID_AUX 29 |
---|
32 | #define BCM2835_IRQ_ID_SPI_SLAVE 43 |
---|
33 | #define BCM2835_IRQ_ID_PWA0 45 |
---|
34 | #define BCM2835_IRQ_ID_PWA1 46 |
---|
35 | #define BCM2835_IRQ_ID_SMI 48 |
---|
36 | #define BCM2835_IRQ_ID_GPIO_0 49 |
---|
37 | #define BCM2835_IRQ_ID_GPIO_1 50 |
---|
38 | #define BCM2835_IRQ_ID_GPIO_2 51 |
---|
39 | #define BCM2835_IRQ_ID_GPIO_3 52 |
---|
40 | #define BCM2835_IRQ_ID_I2C 53 |
---|
41 | #define BCM2835_IRQ_ID_SPI 54 |
---|
42 | #define BCM2835_IRQ_ID_PCM 55 |
---|
43 | #define BCM2835_IRQ_ID_UART 57 |
---|
44 | |
---|
45 | |
---|
46 | #define BCM2835_IRQ_ID_TIMER_0 64 |
---|
47 | #define BCM2835_IRQ_ID_MAILBOX_0 65 |
---|
48 | #define BCM2835_IRQ_ID_DOORBELL_0 66 |
---|
49 | #define BCM2835_IRQ_ID_DOORBELL_1 67 |
---|
50 | #define BCM2835_IRQ_ID_GPU0_HALTED 68 |
---|
51 | |
---|
52 | #define BSP_INTERRUPT_VECTOR_MIN (0) |
---|
53 | #define BSP_INTERRUPT_VECTOR_MAX (BCM2835_INTC_TOTAL_IRQ - 1) |
---|
54 | |
---|
55 | #define BSP_IRQ_COUNT (BCM2835_INTC_TOTAL_IRQ) |
---|
56 | |
---|
57 | |
---|
58 | void raspberrypi_set_exception_handler(Arm_symbolic_exception_name exception, |
---|
59 | void (*handler)(void)); |
---|
60 | |
---|
61 | #endif /* ASM */ |
---|
62 | #endif /* LIBBSP_ARM_RASPBERRYPI_IRQ_H */ |
---|