Developer World
Spresense SDK Library
v3.3.0-375c679
irq.h
1
/****************************************************************************
2
* arch/arm/include/cxd56xx/irq.h
3
*
4
* Licensed to the Apache Software Foundation (ASF) under one or more
5
* contributor license agreements. See the NOTICE file distributed with
6
* this work for additional information regarding copyright ownership. The
7
* ASF licenses this file to you under the Apache License, Version 2.0 (the
8
* "License"); you may not use this file except in compliance with the
9
* License. You may obtain a copy of the License at
10
*
11
* http://www.apache.org/licenses/LICENSE-2.0
12
*
13
* Unless required by applicable law or agreed to in writing, software
14
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
16
* License for the specific language governing permissions and limitations
17
* under the License.
18
*
19
****************************************************************************/
20
21
/* This file should never be included directly but, rather,
22
* only indirectly through nuttx/irq.h
23
*/
24
25
#ifndef __ARCH_ARM_INCLUDE_CXD56XX_IRQ_H
26
#define __ARCH_ARM_INCLUDE_CXD56XX_IRQ_H
27
28
/****************************************************************************
29
* Included Files
30
****************************************************************************/
31
32
#ifndef __ASSEMBLY__
33
# include <stdint.h>
34
#endif
35
36
/****************************************************************************
37
* Pre-processor Prototypes
38
****************************************************************************/
39
40
/* IRQ numbers. The IRQ number corresponds vector number and hence map
41
* directly to bits in the NVIC. This does, however, waste several words of
42
* memory in the IRQ to handle mapping tables.
43
*/
44
45
/* Processor Exceptions (vectors 0-15) */
46
47
#define CXD56_IRQ_RESERVED (0)
/* Reserved vector (only used with CONFIG_DEBUG) */
48
/* Vector 0: Reset stack pointer value */
49
/* Vector 1: Reset (not handler as an IRQ) */
50
#define CXD56_IRQ_NMI (2)
/* Vector 2: Non-Maskable Interrupt (NMI) */
51
#define CXD56_IRQ_HARDFAULT (3)
/* Vector 3: Hard fault */
52
#define CXD56_IRQ_MEMFAULT (4)
/* Vector 4: Memory management (MPU) */
53
#define CXD56_IRQ_BUSFAULT (5)
/* Vector 5: Bus fault */
54
#define CXD56_IRQ_USAGEFAULT (6)
/* Vector 6: Usage fault */
55
#define CXD56_IRQ_SIGNVALUE (7)
/* Vector 7: Sign value */
56
#define CXD56_IRQ_SVCALL (11)
/* Vector 11: SVC call */
57
#define CXD56_IRQ_DBGMONITOR (12)
/* Vector 12: Debug Monitor */
58
/* Vector 13: Reserved */
59
#define CXD56_IRQ_PENDSV (14)
/* Vector 14: Pendable system service request */
60
#define CXD56_IRQ_SYSTICK (15)
/* Vector 15: System tick */
61
#define CXD56_IRQ_EXTINT (16)
/* Vector 16: Vector number of the first external interrupt */
62
63
/* Cortex-M4 External interrupts (vectors >= 16) */
64
65
#define CXD56_IRQ_PMU (CXD56_IRQ_EXTINT+0)
/* PMU IRQ number */
66
#define CXD56_IRQ_CRG (CXD56_IRQ_EXTINT+1)
/* CRG IRQ number */
67
#define CXD56_IRQ_HVDD (CXD56_IRQ_EXTINT+2)
/* HVDD IRQ number */
68
#define CXD56_IRQ_LP (CXD56_IRQ_EXTINT+3)
/* LP IRQ number */
69
#define CXD56_IRQ_RTC0_A0 (CXD56_IRQ_EXTINT+4)
/* RTC0_A0 IRQ number */
70
#define CXD56_IRQ_RTC0_A1 (CXD56_IRQ_EXTINT+5)
/* RTC0_A1 IRQ number */
71
#define CXD56_IRQ_RTC0_A2 (CXD56_IRQ_EXTINT+6)
/* RTC0_A2 IRQ number */
72
#define CXD56_IRQ_RTC1_A0 (CXD56_IRQ_EXTINT+7)
/* RTC1_A0 IRQ number */
73
#define CXD56_IRQ_RTC1_A1 (CXD56_IRQ_EXTINT+8)
/* RTC1_A1 IRQ number */
74
#define CXD56_IRQ_RTC1_A2 (CXD56_IRQ_EXTINT+9)
/* RTC1_A2 IRQ number */
75
#define CXD56_IRQ_RTC_INT (CXD56_IRQ_EXTINT+10)
/* RTC_INT IRQ number */
76
#define CXD56_IRQ_UART1 (CXD56_IRQ_EXTINT+11)
/* UART1 IRQ number */
77
#define CXD56_IRQ_UART0 (CXD56_IRQ_EXTINT+12)
/* UART0 IRQ number */
78
#define CXD56_IRQ_HOSTIF_0 (CXD56_IRQ_EXTINT+13)
/* HOSTIF_0 IRQ number */
79
#define CXD56_IRQ_HOSTIF_1 (CXD56_IRQ_EXTINT+14)
/* HOSTIF_1 IRQ number */
80
#define CXD56_IRQ_HOSTIF_2 (CXD56_IRQ_EXTINT+15)
/* HOSTIF_2 IRQ number */
81
#define CXD56_IRQ_SCU_SPI (CXD56_IRQ_EXTINT+16)
/* SCU_0 SPI IRQ number */
82
#define CXD56_IRQ_SCU_I2C0 (CXD56_IRQ_EXTINT+17)
/* SCU_1 I2C1 IRQ number */
83
#define CXD56_IRQ_SCU_I2C1 (CXD56_IRQ_EXTINT+18)
/* SCU_2 I2C2 IRQ number */
84
#define CXD56_IRQ_SCU_3 (CXD56_IRQ_EXTINT+19)
/* SCU_3 SCU IRQ number */
85
#define CXD56_IRQ_EXDEVICE_0 (CXD56_IRQ_EXTINT+20)
/* EXDEVICE_0 IRQ number */
86
#define CXD56_IRQ_EXDEVICE_1 (CXD56_IRQ_EXTINT+21)
/* EXDEVICE_1 IRQ number */
87
#define CXD56_IRQ_EXDEVICE_2 (CXD56_IRQ_EXTINT+22)
/* EXDEVICE_2 IRQ number */
88
#define CXD56_IRQ_EXDEVICE_3 (CXD56_IRQ_EXTINT+23)
/* EXDEVICE_3 IRQ number */
89
#define CXD56_IRQ_EXDEVICE_4 (CXD56_IRQ_EXTINT+24)
/* EXDEVICE_4 IRQ number */
90
#define CXD56_IRQ_EXDEVICE_5 (CXD56_IRQ_EXTINT+25)
/* EXDEVICE_5 IRQ number */
91
#define CXD56_IRQ_EXDEVICE_6 (CXD56_IRQ_EXTINT+26)
/* EXDEVICE_6 IRQ number */
92
#define CXD56_IRQ_EXDEVICE_7 (CXD56_IRQ_EXTINT+27)
/* EXDEVICE_7 IRQ number */
93
#define CXD56_IRQ_EXDEVICE_8 (CXD56_IRQ_EXTINT+28)
/* EXDEVICE_8 IRQ number */
94
#define CXD56_IRQ_EXDEVICE_9 (CXD56_IRQ_EXTINT+29)
/* EXDEVICE_9 IRQ number */
95
#define CXD56_IRQ_EXDEVICE_10 (CXD56_IRQ_EXTINT+30)
/* EXDEVICE_10 IRQ number */
96
#define CXD56_IRQ_EXDEVICE_11 (CXD56_IRQ_EXTINT+31)
/* EXDEVICE_11 IRQ number */
97
#define CXD56_IRQ_DMA_A_0 (CXD56_IRQ_EXTINT+32)
/* DMA_A_0 IRQ number */
98
#define CXD56_IRQ_DMA_A_1 (CXD56_IRQ_EXTINT+33)
/* DMA_A_1 IRQ number */
99
#define CXD56_IRQ_DMA_A_2 (CXD56_IRQ_EXTINT+34)
/* DMA_A_2 IRQ number */
100
#define CXD56_IRQ_DMA_A_3 (CXD56_IRQ_EXTINT+35)
/* DMA_A_3 IRQ number */
101
#define CXD56_IRQ_DMA_A_4 (CXD56_IRQ_EXTINT+36)
/* DMA_A_4 IRQ number */
102
#define CXD56_IRQ_DMA_A_5 (CXD56_IRQ_EXTINT+37)
/* DMA_A_5 IRQ number */
103
#define CXD56_IRQ_DMA_A_6 (CXD56_IRQ_EXTINT+38)
/* DMA_A_6 IRQ number */
104
#define CXD56_IRQ_DMA_A_7 (CXD56_IRQ_EXTINT+39)
/* DMA_A_7 IRQ number */
105
#define CXD56_IRQ_DMA_A_8 (CXD56_IRQ_EXTINT+40)
/* DMA_A_8 IRQ number */
106
#define CXD56_IRQ_DMA_A_9 (CXD56_IRQ_EXTINT+41)
/* DMA_A_9 IRQ number */
107
#define CXD56_IRQ_DMA_A_10 (CXD56_IRQ_EXTINT+42)
/* DMA_A_10 IRQ number */
108
#define CXD56_IRQ_DMA_A_11 (CXD56_IRQ_EXTINT+43)
/* DMA_A_11 IRQ number */
109
#define CXD56_IRQ_DMA_A_12 (CXD56_IRQ_EXTINT+44)
/* DMA_A_12 IRQ number */
110
#define CXD56_IRQ_DMA_A_13 (CXD56_IRQ_EXTINT+45)
/* DMA_A_13 IRQ number */
111
#define CXD56_IRQ_DMA_A_14 (CXD56_IRQ_EXTINT+46)
/* DMA_A_14 IRQ number */
112
#define CXD56_IRQ_DMA_A_15 (CXD56_IRQ_EXTINT+47)
/* DMA_A_15 IRQ number */
113
#define CXD56_IRQ_DMA_A_16 (CXD56_IRQ_EXTINT+48)
/* DMA_A_16 IRQ number */
114
#define CXD56_IRQ_DMA_A_17 (CXD56_IRQ_EXTINT+49)
/* DMA_A_17 IRQ number */
115
#define CXD56_IRQ_DMA_A_18 (CXD56_IRQ_EXTINT+50)
/* DMA_A_18 IRQ number */
116
#define CXD56_IRQ_DMA_A_19 (CXD56_IRQ_EXTINT+51)
/* DMA_A_19 IRQ number */
117
#define CXD56_IRQ_DMA_A_20 (CXD56_IRQ_EXTINT+52)
/* DMA_A_20 IRQ number */
118
#define CXD56_IRQ_DMA_A_21 (CXD56_IRQ_EXTINT+53)
/* DMA_A_21 IRQ number */
119
#define CXD56_IRQ_DMA_A_22 (CXD56_IRQ_EXTINT+54)
/* DMA_A_22 IRQ number */
120
#define CXD56_IRQ_DMA_A_23 (CXD56_IRQ_EXTINT+55)
/* DMA_A_23 IRQ number */
121
#define CXD56_IRQ_DMA_A_24 (CXD56_IRQ_EXTINT+56)
/* DMA_A_24 IRQ number */
122
#define CXD56_IRQ_DMA_A_25 (CXD56_IRQ_EXTINT+57)
/* DMA_A_25 IRQ number */
123
#define CXD56_IRQ_DMA_A_26 (CXD56_IRQ_EXTINT+58)
/* DMA_A_26 IRQ number */
124
#define CXD56_IRQ_DMA_A_27 (CXD56_IRQ_EXTINT+59)
/* DMA_A_27 IRQ number */
125
#define CXD56_IRQ_DMA_A_28 (CXD56_IRQ_EXTINT+60)
/* DMA_A_28 IRQ number */
126
#define CXD56_IRQ_DMA_A_29 (CXD56_IRQ_EXTINT+61)
/* DMA_A_29 IRQ number */
127
#define CXD56_IRQ_DMA_A_30 (CXD56_IRQ_EXTINT+62)
/* DMA_A_30 IRQ number */
128
#define CXD56_IRQ_DMA_A_31 (CXD56_IRQ_EXTINT+63)
/* DMA_A_31 IRQ number */
129
#define CXD56_IRQ_DMA_B_0 (CXD56_IRQ_EXTINT+64)
/* DMA_B_0 IRQ number */
130
#define CXD56_IRQ_DMA_B_1 (CXD56_IRQ_EXTINT+65)
/* DMA_B_1 IRQ number */
131
#define CXD56_IRQ_DMA_C_0 (CXD56_IRQ_EXTINT+66)
/* DMA_C_0 IRQ number */
132
#define CXD56_IRQ_DMA_C_1 (CXD56_IRQ_EXTINT+67)
/* DMA_C_1 IRQ number */
133
#define CXD56_IRQ_DMA_D_0 (CXD56_IRQ_EXTINT+68)
/* DMA_D_0 IRQ number */
134
#define CXD56_IRQ_DMA_D_1 (CXD56_IRQ_EXTINT+69)
/* DMA_D_1 IRQ number */
135
#define CXD56_IRQ_SAKE_NSEC (CXD56_IRQ_EXTINT+70)
/* SAKE_NSEC IRQ number */
136
#define CXD56_IRQ_SAKE_SEC (CXD56_IRQ_EXTINT+71)
/* SAKE_SEC IRQ number */
137
#define CXD56_IRQ_USB_VBUS (CXD56_IRQ_EXTINT+72)
/* USB_VBUS IRQ number */
138
#define CXD56_IRQ_USB_VBUSN (CXD56_IRQ_EXTINT+73)
/* USB_VBUSN IRQ number */
139
#define CXD56_IRQ_SPIM (CXD56_IRQ_EXTINT+74)
/* SPI0 IRQ number */
140
#define CXD56_IRQ_I2CM (CXD56_IRQ_EXTINT+75)
/* I2C0 IRQ number */
141
#define CXD56_IRQ_DEBUG0 (CXD56_IRQ_EXTINT+76)
/* DEBUG0 IRQ number */
142
#define CXD56_IRQ_DEBUG1 (CXD56_IRQ_EXTINT+77)
/* DEBUG1 IRQ number */
143
#define CXD56_IRQ_FIFO_TO (CXD56_IRQ_EXTINT+78)
/* FIFO_TO IRQ number */
144
#define CXD56_IRQ_FIFO_FROM (CXD56_IRQ_EXTINT+79)
/* FIFO_FROM IRQ number */
145
#define CXD56_IRQ_SPH0 (CXD56_IRQ_EXTINT+80)
/* SPH0 IRQ number */
146
#define CXD56_IRQ_SPH1 (CXD56_IRQ_EXTINT+81)
/* SPH1 IRQ number */
147
#define CXD56_IRQ_SPH2 (CXD56_IRQ_EXTINT+82)
/* SPH2 IRQ number */
148
#define CXD56_IRQ_SPH3 (CXD56_IRQ_EXTINT+83)
/* SPH3 IRQ number */
149
#define CXD56_IRQ_SPH4 (CXD56_IRQ_EXTINT+84)
/* SPH4 IRQ number */
150
#define CXD56_IRQ_SPH5 (CXD56_IRQ_EXTINT+85)
/* SPH5 IRQ number */
151
#define CXD56_IRQ_SPH6 (CXD56_IRQ_EXTINT+86)
/* SPH6 IRQ number */
152
#define CXD56_IRQ_SPH7 (CXD56_IRQ_EXTINT+87)
/* SPH7 IRQ number */
153
#define CXD56_IRQ_SPH8 (CXD56_IRQ_EXTINT+88)
/* SPH8 IRQ number */
154
#define CXD56_IRQ_SPH9 (CXD56_IRQ_EXTINT+89)
/* SPH9 IRQ number */
155
#define CXD56_IRQ_SPH10 (CXD56_IRQ_EXTINT+90)
/* SPH10 IRQ number */
156
#define CXD56_IRQ_SPH11 (CXD56_IRQ_EXTINT+91)
/* SPH11 IRQ number */
157
#define CXD56_IRQ_SPH12 (CXD56_IRQ_EXTINT+92)
/* SPH12 IRQ number */
158
#define CXD56_IRQ_SPH13 (CXD56_IRQ_EXTINT+93)
/* SPH13 IRQ number */
159
#define CXD56_IRQ_SPH14 (CXD56_IRQ_EXTINT+94)
/* SPH14 IRQ number */
160
#define CXD56_IRQ_SPH15 (CXD56_IRQ_EXTINT+95)
/* SPH15 IRQ number */
161
#define CXD56_IRQ_SW_INT (CXD56_IRQ_EXTINT+96)
/* SW_INT IRQ number */
162
#define CXD56_IRQ_TIMER0 (CXD56_IRQ_EXTINT+97)
/* TIMER0 IRQ number */
163
#define CXD56_IRQ_TIMER1 (CXD56_IRQ_EXTINT+98)
/* TIMER1 IRQ number */
164
#define CXD56_IRQ_TIMER2 (CXD56_IRQ_EXTINT+99)
/* TIMER2 IRQ number */
165
#define CXD56_IRQ_WDT_INT (CXD56_IRQ_EXTINT+100)
/* WDT_INT IRQ number */
166
#define CXD56_IRQ_WDT_RES (CXD56_IRQ_EXTINT+101)
/* WDT_RES IRQ number */
167
#define CXD56_IRQ_AUDIO_0 (CXD56_IRQ_EXTINT+102)
/* AUDIO_0(MIC) IRQ number */
168
#define CXD56_IRQ_AUDIO_1 (CXD56_IRQ_EXTINT+103)
/* AUDIO_1(I2S1) IRQ number */
169
#define CXD56_IRQ_AUDIO_2 (CXD56_IRQ_EXTINT+104)
/* AUDIO_2(I2S2) IRQ number */
170
#define CXD56_IRQ_AUDIO_3 (CXD56_IRQ_EXTINT+105)
/* AUDIO_3(CODEC) IRQ number */
171
#define CXD56_IRQ_GE2D (CXD56_IRQ_EXTINT+106)
/* APP_IMG 2D Graphics Engine IRQ number */
172
#define CXD56_IRQ_ROT (CXD56_IRQ_EXTINT+107)
/* APP_IMG_ROTation IRQ number */
173
#define CXD56_IRQ_CISIF (CXD56_IRQ_EXTINT+108)
/* APP_IMG CISIF IRQ number */
174
#define CXD56_IRQ_IMG_WSPI (CXD56_IRQ_EXTINT+109)
/* APP_IMG WSSP IRQ number */
175
#define CXD56_IRQ_IDMAC (CXD56_IRQ_EXTINT+110)
/* APP_IMG DMAC IRQ number */
176
#define CXD56_IRQ_APP_UART (CXD56_IRQ_EXTINT+111)
/* APP_IMG UART IRQ number */
177
#define CXD56_IRQ_VSYNC (CXD56_IRQ_EXTINT+112)
/* APP_IMG VSYNC IRQ number */
178
#define CXD56_IRQ_IMG_SPI (CXD56_IRQ_EXTINT+113)
/* APP_IMG SSP IRQ number */
179
#define CXD56_IRQ_EMMC (CXD56_IRQ_EXTINT+114)
/* APP_PER EMMC IRQ number */
180
#define CXD56_IRQ_SDIO (CXD56_IRQ_EXTINT+115)
/* APP_PER SDIO IRQ number */
181
#define CXD56_IRQ_USB_INT (CXD56_IRQ_EXTINT+116)
/* APP_PER USB_INT IRQ number */
182
#define CXD56_IRQ_USB_SYS (CXD56_IRQ_EXTINT+117)
/* APP_PER USB_SYS IRQ number */
183
#define CXD56_IRQ_APP_DMAC0 (CXD56_IRQ_EXTINT+118)
/* APP_DMAC0 IRQ number */
184
#define CXD56_IRQ_APP_DMAC1 (CXD56_IRQ_EXTINT+119)
/* APP_DMAC1 IRQ number */
185
#define CXD56_IRQ_APP_SAKE_NSEC (CXD56_IRQ_EXTINT+120)
/* APP_SAKE_NSEC IRQ number */
186
#define CXD56_IRQ_APP_SAKE_SEC (CXD56_IRQ_EXTINT+121)
/* APP_SAKE_SEC IRQ number */
187
#define CXD56_IRQ_SKDMAC_0 (CXD56_IRQ_EXTINT+122)
/* APP_SAKE_DMAC_0 IRQ number */
188
#define CXD56_IRQ_SKDMAC_1 (CXD56_IRQ_EXTINT+123)
/* APP_SAKE_DMAC_1 IRQ number */
189
#define CXD56_IRQ_APP_PPB (CXD56_IRQ_EXTINT+124)
/* reserved */
190
#define CXD56_IRQ_GPS_OR (CXD56_IRQ_EXTINT+125)
/* GNSS_OR IRQ number */
191
#define CXD56_IRQ_SFC (CXD56_IRQ_EXTINT+126)
/* SFC IRQ number */
192
#define CXD56_IRQ_PMIC (CXD56_IRQ_EXTINT+127)
/* PMIC IRQ number */
193
194
#define CXD56_IRQ_NEXTINT (128)
195
#define CXD56_IRQ_NIRQS (CXD56_IRQ_EXTINT+CXD56_IRQ_NEXTINT)
196
197
/* Total number of IRQ numbers (This will need to be revisited if/when the
198
* Cortex-M0 is supported)
199
*/
200
201
#define NR_VECTORS CXD56_IRQ_NIRQS
202
#define NR_IRQS CXD56_IRQ_NIRQS
203
204
/****************************************************************************
205
* Public Types
206
****************************************************************************/
207
208
#ifndef __ASSEMBLY__
209
typedef
void (*vic_vector_t)(uint32_t *regs);
210
#endif
211
212
/****************************************************************************
213
* Inline functions
214
****************************************************************************/
215
216
/****************************************************************************
217
* Public Data
218
****************************************************************************/
219
220
/****************************************************************************
221
* Public Function Prototypes
222
****************************************************************************/
223
224
#ifndef __ASSEMBLY__
225
#ifdef __cplusplus
226
#define EXTERN extern "C"
227
extern
"C"
228
{
229
#else
230
#define EXTERN extern
231
#endif
232
233
#undef EXTERN
234
#ifdef __cplusplus
235
}
236
#endif
237
#endif
238
239
#endif
/* __ARCH_ARM_INCLUDE_CXD56XX_IRQ_H */
spresense
nuttx
arch
arm
include
cxd56xx
irq.h
Generated by
1.9.4