1 /*
2 * Copyright 2022 NXP
3 * All rights reserved.
4 *
5 *
6 * SPDX-License-Identifier: BSD-3-Clause
7 */
8
9 #include "fsl_edma_soc.h"
10
11 /*******************************************************************************
12 * Definitions
13 ******************************************************************************/
14
15 /* Component ID definition, used by tools. */
16 #ifndef FSL_COMPONENT_ID
17 #define FSL_COMPONENT_ID "platform.drivers.edma_soc"
18 #endif
19
20 /*******************************************************************************
21 * Prototypes
22 ******************************************************************************/
23 extern void DMA_CH0_DriverIRQHandler(void);
24 extern void DMA_CH1_DriverIRQHandler(void);
25 extern void DMA_CH2_DriverIRQHandler(void);
26 extern void DMA_CH3_DriverIRQHandler(void);
27 extern void DMA_CH4_DriverIRQHandler(void);
28 extern void DMA_CH5_DriverIRQHandler(void);
29 extern void DMA_CH6_DriverIRQHandler(void);
30 extern void DMA_CH7_DriverIRQHandler(void);
31 extern void EDMA_DriverIRQHandler(uint32_t instance, uint32_t channel);
32 /*******************************************************************************
33 * Code
34 ******************************************************************************/
35 /*!
36 * brief DMA instance 0, channel 0 IRQ handler.
37 *
38 */
DMA_CH0_DriverIRQHandler(void)39 void DMA_CH0_DriverIRQHandler(void)
40 {
41 /* Instance 0 channel 0 */
42 EDMA_DriverIRQHandler(0U, 0U);
43 }
44
45 /*!
46 * brief DMA instance 0, channel 1 IRQ handler.
47 *
48 */
DMA_CH1_DriverIRQHandler(void)49 void DMA_CH1_DriverIRQHandler(void)
50 {
51 /* Instance 0 channel 1 */
52 EDMA_DriverIRQHandler(0U, 1U);
53 }
54
55 /*!
56 * brief DMA instance 0, channel 2 IRQ handler.
57 *
58 */
DMA_CH2_DriverIRQHandler(void)59 void DMA_CH2_DriverIRQHandler(void)
60 {
61 /* Instance 0 channel 2 */
62 EDMA_DriverIRQHandler(0U, 2U);
63 }
64
65 /*!
66 * brief DMA instance 0, channel 3 IRQ handler.
67 *
68 */
DMA_CH3_DriverIRQHandler(void)69 void DMA_CH3_DriverIRQHandler(void)
70 {
71 /* Instance 0 channel 3 */
72 EDMA_DriverIRQHandler(0U, 3U);
73 }
74
75 /*!
76 * brief DMA instance 0, channel 4 IRQ handler.
77 *
78 */
DMA_CH4_DriverIRQHandler(void)79 void DMA_CH4_DriverIRQHandler(void)
80 {
81 /* Instance 0 channel 4 */
82 EDMA_DriverIRQHandler(0U, 4U);
83 }
84 /*!
85 * brief DMA instance 0, channel 5 IRQ handler.
86 *
87 */
DMA_CH5_DriverIRQHandler(void)88 void DMA_CH5_DriverIRQHandler(void)
89 {
90 /* Instance 0 channel 5 */
91 EDMA_DriverIRQHandler(0U, 5U);
92 }
93
94 /*!
95 * brief DMA instance 0, channel 6 IRQ handler.
96 *
97 */
DMA_CH6_DriverIRQHandler(void)98 void DMA_CH6_DriverIRQHandler(void)
99 {
100 /* Instance 0 channel 6 */
101 EDMA_DriverIRQHandler(0U, 6U);
102 }
103
104 /*!
105 * brief DMA instance 0, channel 7 IRQ handler.
106 *
107 */
DMA_CH7_DriverIRQHandler(void)108 void DMA_CH7_DriverIRQHandler(void)
109 {
110 /* Instance 0 channel 7 */
111 EDMA_DriverIRQHandler(0U, 7U);
112 }
113