1 /*
2  * Copyright 2021-2024 NXP
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 /**
7 *   @file    Spi_Ip_Irq.c
8 *   @implements     Spi_Ip_Irq.c_Artifact
9 *   @version 1.0.0
10 *
11 *   @brief   AUTOSAR Spi - Post-Build(PB) configuration file.
12 *   @details Generated Post-Build(PB) configuration file.
13 *
14 *   @addtogroup SPI_IP_DRIVER Spi Ip Driver
15 *   @{
16 */
17 
18 #ifdef __cplusplus
19 extern "C"
20 {
21 #endif
22 
23 
24 /*==================================================================================================
25 *                                        INCLUDE FILES
26 * 1) system and project includes
27 * 2) needed interfaces from external units
28 * 3) internal and external interfaces from this unit
29 ==================================================================================================*/
30 #include "Spi_Ip.h"
31 
32 /*==================================================================================================
33 *                                       SOURCE FILE VERSION INFORMATION
34 ==================================================================================================*/
35 #define SPI_IP_VENDOR_ID_IRQ_C                      43
36 #define SPI_IP_AR_RELEASE_MAJOR_VERSION_IRQ_C       4
37 #define SPI_IP_AR_RELEASE_MINOR_VERSION_IRQ_C       7
38 #define SPI_IP_AR_RELEASE_REVISION_VERSION_IRQ_C    0
39 #define SPI_IP_SW_MAJOR_VERSION_IRQ_C               2
40 #define SPI_IP_SW_MINOR_VERSION_IRQ_C               0
41 #define SPI_IP_SW_PATCH_VERSION_IRQ_C               0
42 /*==================================================================================================
43 *                                     FILE VERSION CHECKS
44 ==================================================================================================*/
45 /* Check if Spi_Ip.h and Spi_Ip_Irq.c are of the same vendor */
46 #if (SPI_IP_VENDOR_ID != SPI_IP_VENDOR_ID_IRQ_C)
47     #error "Spi_Ip.h and Spi_Ip_Irq.c have different vendor ids"
48 #endif
49 /* Check if Spi_Ip.h file and Spi_Ip_Irq.c file are of the same Autosar version */
50 #if ((SPI_IP_AR_RELEASE_MAJOR_VERSION != SPI_IP_AR_RELEASE_MAJOR_VERSION_IRQ_C) || \
51      (SPI_IP_AR_RELEASE_MINOR_VERSION != SPI_IP_AR_RELEASE_MINOR_VERSION_IRQ_C) || \
52      (SPI_IP_AR_RELEASE_REVISION_VERSION != SPI_IP_AR_RELEASE_REVISION_VERSION_IRQ_C))
53 #error "AutoSar Version Numbers of Spi_Ip.h and Spi_Ip_Irq.c are different"
54 #endif
55 #if ((SPI_IP_SW_MAJOR_VERSION != SPI_IP_SW_MAJOR_VERSION_IRQ_C) || \
56      (SPI_IP_SW_MINOR_VERSION != SPI_IP_SW_MINOR_VERSION_IRQ_C) || \
57      (SPI_IP_SW_PATCH_VERSION != SPI_IP_SW_PATCH_VERSION_IRQ_C))
58 #error "Software Version Numbers of Spi_Ip.h and Spi_Ip_Irq.c are different"
59 #endif
60 /*==================================================================================================
61 *                         LOCAL TYPEDEFS (STRUCTURES, UNIONS, ENUMS)
62 ==================================================================================================*/
63 /*==================================================================================================
64 *                                       LOCAL MACROS
65 ==================================================================================================*/
66 /*==================================================================================================
67 *                                      LOCAL CONSTANTS
68 ==================================================================================================*/
69 /*==================================================================================================
70 *                                      LOCAL VARIABLES
71 ==================================================================================================*/
72 /*==================================================================================================
73 *                                      GLOBAL CONSTANTS
74 ==================================================================================================*/
75 /*==================================================================================================
76 *                                      GLOBAL VARIABLES
77 ==================================================================================================*/
78 /*==================================================================================================
79 *                                  LOCAL FUNCTION PROTOTYPES
80 ==================================================================================================*/
81 #define SPI_START_SEC_CODE
82 #include "Spi_MemMap.h"
83 
84 #ifdef SPI_IP_0_ENABLED
85     #if (SPI_IP_0_ENABLED == STD_ON)
86 ISR(Spi_Ip_SPI_0_IRQHandler);
87         #if (SPI_IP_DMA_USED == STD_ON)
88 void Spi_Ip_SPI_0_IrqDmaHandler(void);
89         #endif
90     #endif
91 #endif
92 #ifdef SPI_IP_1_ENABLED
93     #if (SPI_IP_1_ENABLED == STD_ON)
94 ISR(Spi_Ip_SPI_1_IRQHandler);
95         #if (SPI_IP_DMA_USED == STD_ON)
96 void Spi_Ip_SPI_1_IrqDmaHandler(void);
97         #endif
98     #endif
99 #endif
100 #ifdef SPI_IP_2_ENABLED
101     #if (SPI_IP_2_ENABLED == STD_ON)
102 ISR(Spi_Ip_SPI_2_IRQHandler);
103         #if (SPI_IP_DMA_USED == STD_ON)
104 void Spi_Ip_SPI_2_IrqDmaHandler(void);
105         #endif
106     #endif
107 #endif
108 #ifdef SPI_IP_3_ENABLED
109     #if (SPI_IP_3_ENABLED == STD_ON)
110 ISR(Spi_Ip_SPI_3_IRQHandler);
111         #if (SPI_IP_DMA_USED == STD_ON)
112 void Spi_Ip_SPI_3_IrqDmaHandler(void);
113         #endif
114     #endif
115 #endif
116 #ifdef SPI_IP_4_ENABLED
117     #if (SPI_IP_4_ENABLED == STD_ON)
118 ISR(Spi_Ip_SPI_4_IRQHandler);
119         #if (SPI_IP_DMA_USED == STD_ON)
120 void Spi_Ip_SPI_4_IrqDmaHandler(void);
121         #endif
122     #endif
123 #endif
124 #ifdef SPI_IP_5_ENABLED
125     #if (SPI_IP_5_ENABLED == STD_ON)
126 ISR(Spi_Ip_SPI_5_IRQHandler);
127         #if (SPI_IP_DMA_USED == STD_ON)
128 void Spi_Ip_SPI_5_IrqDmaHandler(void);
129         #endif
130     #endif
131 #endif
132 #ifdef SPI_IP_6_ENABLED
133     #if (SPI_IP_6_ENABLED == STD_ON)
134 ISR(Spi_Ip_SPI_6_IRQHandler);
135         #if (SPI_IP_DMA_USED == STD_ON)
136 void Spi_Ip_SPI_6_IrqDmaHandler(void);
137         #endif
138     #endif
139 #endif
140 #ifdef SPI_IP_7_ENABLED
141     #if (SPI_IP_7_ENABLED == STD_ON)
142 ISR(Spi_Ip_SPI_7_IRQHandler);
143         #if (SPI_IP_DMA_USED == STD_ON)
144 void Spi_Ip_SPI_7_IrqDmaHandler(void);
145         #endif
146     #endif
147 #endif
148 #ifdef SPI_IP_8_ENABLED
149     #if (SPI_IP_8_ENABLED == STD_ON)
150 ISR(Spi_Ip_SPI_8_IRQHandler);
151         #if (SPI_IP_DMA_USED == STD_ON)
152 void Spi_Ip_SPI_8_IrqDmaHandler(void);
153         #endif
154     #endif
155 #endif
156 #ifdef SPI_IP_9_ENABLED
157     #if (SPI_IP_9_ENABLED == STD_ON)
158 ISR(Spi_Ip_SPI_9_IRQHandler);
159         #if (SPI_IP_DMA_USED == STD_ON)
160 void Spi_Ip_SPI_9_IrqDmaHandler(void);
161         #endif
162     #endif
163 #endif
164 /*==================================================================================================
165 *                                      LOCAL FUNCTIONS
166 ==================================================================================================*/
167 /*==================================================================================================
168 *                                      GLOBAL FUNCTIONS
169 ==================================================================================================*/
170 #ifdef SPI_IP_0_ENABLED
171     #if (SPI_IP_0_ENABLED == STD_ON)
ISR(Spi_Ip_SPI_0_IRQHandler)172 ISR(Spi_Ip_SPI_0_IRQHandler)
173 {
174     /* Calling interrupt handler for instance 0 */
175     Spi_Ip_IrqHandler(0u);
176 }
177         #if (SPI_IP_DMA_USED == STD_ON)
Spi_Ip_SPI_0_IrqDmaHandler(void)178 void Spi_Ip_SPI_0_IrqDmaHandler(void)
179 {
180     /* Calling dma handler for instance 0 */
181     Spi_Ip_IrqDmaHandler(0u);
182 }
183         #endif
184     #endif
185 #endif
186 #ifdef SPI_IP_1_ENABLED
187     #if (SPI_IP_1_ENABLED == STD_ON)
ISR(Spi_Ip_SPI_1_IRQHandler)188 ISR(Spi_Ip_SPI_1_IRQHandler)
189 {
190     /* Calling interrupt handler for instance 1 */
191     Spi_Ip_IrqHandler(1u);
192 }
193         #if (SPI_IP_DMA_USED == STD_ON)
Spi_Ip_SPI_1_IrqDmaHandler(void)194 void Spi_Ip_SPI_1_IrqDmaHandler(void)
195 {
196     /* Calling dma handler for instance 1 */
197     Spi_Ip_IrqDmaHandler(1u);
198 }
199         #endif
200     #endif
201 #endif
202 #ifdef SPI_IP_2_ENABLED
203     #if (SPI_IP_2_ENABLED == STD_ON)
ISR(Spi_Ip_SPI_2_IRQHandler)204 ISR(Spi_Ip_SPI_2_IRQHandler)
205 {
206     /* Calling interrupt handler for instance 2 */
207     Spi_Ip_IrqHandler(2u);
208 }
209         #if (SPI_IP_DMA_USED == STD_ON)
Spi_Ip_SPI_2_IrqDmaHandler(void)210 void Spi_Ip_SPI_2_IrqDmaHandler(void)
211 {
212     /* Calling dma handler for instance 2 */
213     Spi_Ip_IrqDmaHandler(2u);
214 }
215         #endif
216     #endif
217 #endif
218 #ifdef SPI_IP_3_ENABLED
219     #if (SPI_IP_3_ENABLED == STD_ON)
ISR(Spi_Ip_SPI_3_IRQHandler)220 ISR(Spi_Ip_SPI_3_IRQHandler)
221 {
222     /* Calling interrupt handler for instance 3 */
223     Spi_Ip_IrqHandler(3u);
224 }
225         #if (SPI_IP_DMA_USED == STD_ON)
Spi_Ip_SPI_3_IrqDmaHandler(void)226 void Spi_Ip_SPI_3_IrqDmaHandler(void)
227 {
228     /* Calling dma handler for instance 3 */
229     Spi_Ip_IrqDmaHandler(3u);
230 }
231         #endif
232     #endif
233 #endif
234 #ifdef SPI_IP_4_ENABLED
235     #if (SPI_IP_4_ENABLED == STD_ON)
ISR(Spi_Ip_SPI_4_IRQHandler)236 ISR(Spi_Ip_SPI_4_IRQHandler)
237 {
238     /* Calling interrupt handler for instance 4 */
239     Spi_Ip_IrqHandler(4u);
240 }
241         #if (SPI_IP_DMA_USED == STD_ON)
Spi_Ip_SPI_4_IrqDmaHandler(void)242 void Spi_Ip_SPI_4_IrqDmaHandler(void)
243 {
244     /* Calling dma handler for instance 4 */
245     Spi_Ip_IrqDmaHandler(4u);
246 }
247         #endif
248     #endif
249 #endif
250 #ifdef SPI_IP_5_ENABLED
251     #if (SPI_IP_5_ENABLED == STD_ON)
ISR(Spi_Ip_SPI_5_IRQHandler)252 ISR(Spi_Ip_SPI_5_IRQHandler)
253 {
254     /* Calling interrupt handler for instance 5 */
255     Spi_Ip_IrqHandler(5u);
256 }
257         #if (SPI_IP_DMA_USED == STD_ON)
Spi_Ip_SPI_5_IrqDmaHandler(void)258 void Spi_Ip_SPI_5_IrqDmaHandler(void)
259 {
260     /* Calling dma handler for instance 5 */
261     Spi_Ip_IrqDmaHandler(5u);
262 }
263         #endif
264     #endif
265 #endif
266 #ifdef SPI_IP_6_ENABLED
267     #if (SPI_IP_6_ENABLED == STD_ON)
ISR(Spi_Ip_SPI_6_IRQHandler)268 ISR(Spi_Ip_SPI_6_IRQHandler)
269 {
270     /* Calling interrupt handler for instance 6 */
271     Spi_Ip_IrqHandler(6u);
272 }
273         #if (SPI_IP_DMA_USED == STD_ON)
Spi_Ip_SPI_6_IrqDmaHandler(void)274 void Spi_Ip_SPI_6_IrqDmaHandler(void)
275 {
276     /* Calling dma handler for instance 6 */
277     Spi_Ip_IrqDmaHandler(6u);
278 }
279         #endif
280     #endif
281 #endif
282 #ifdef SPI_IP_7_ENABLED
283     #if (SPI_IP_7_ENABLED == STD_ON)
ISR(Spi_Ip_SPI_7_IRQHandler)284 ISR(Spi_Ip_SPI_7_IRQHandler)
285 {
286     /* Calling interrupt handler for instance 7 */
287     Spi_Ip_IrqHandler(7u);
288 }
289         #if (SPI_IP_DMA_USED == STD_ON)
Spi_Ip_SPI_7_IrqDmaHandler(void)290 void Spi_Ip_SPI_7_IrqDmaHandler(void)
291 {
292     /* Calling dma handler for instance 7 */
293     Spi_Ip_IrqDmaHandler(7u);
294 }
295         #endif
296     #endif
297 #endif
298 #ifdef SPI_IP_8_ENABLED
299     #if (SPI_IP_8_ENABLED == STD_ON)
ISR(Spi_Ip_SPI_8_IRQHandler)300 ISR(Spi_Ip_SPI_8_IRQHandler)
301 {
302     /* Calling interrupt handler for instance 8 */
303     Spi_Ip_IrqHandler(8u);
304 }
305         #if (SPI_IP_DMA_USED == STD_ON)
Spi_Ip_SPI_8_IrqDmaHandler(void)306 void Spi_Ip_SPI_8_IrqDmaHandler(void)
307 {
308     /* Calling dma handler for instance 8 */
309     Spi_Ip_IrqDmaHandler(8u);
310 }
311         #endif
312     #endif
313 #endif
314 #ifdef SPI_IP_9_ENABLED
315     #if (SPI_IP_9_ENABLED == STD_ON)
ISR(Spi_Ip_SPI_9_IRQHandler)316 ISR(Spi_Ip_SPI_9_IRQHandler)
317 {
318     /* Calling interrupt handler for instance 9 */
319     Spi_Ip_IrqHandler(9u);
320 }
321         #if (SPI_IP_DMA_USED == STD_ON)
Spi_Ip_SPI_9_IrqDmaHandler(void)322 void Spi_Ip_SPI_9_IrqDmaHandler(void)
323 {
324     /* Calling dma handler for instance 9 */
325     Spi_Ip_IrqDmaHandler(9u);
326 }
327         #endif
328     #endif
329 #endif
330 
331 #define SPI_STOP_SEC_CODE
332 #include "Spi_MemMap.h"
333 
334 #ifdef __cplusplus
335 }
336 #endif
337 
338 /** @} */
339