1 /*""FILE COMMENT""*******************************************************
2 * System Name	: Interrupt program for RX62N
3 * File Name		: Interrupt_DMAC.c
4 * Version		: 1.02
5 * Contents		: Interrupt handlers for the DMAC channels
6 * Customer		:
7 * Model			:
8 * Order			:
9 * CPU			: RX
10 * Compiler		: RXC
11 * OS			: Nothing
12 * Programmer	:
13 * Note			:
14 ************************************************************************
15 * Copyright, 2011. Renesas Electronics Corporation
16 * and Renesas Solutions Corporation
17 ************************************************************************
18 * History		: 2011.04.08
19 *				: Ver 1.02
20 *				: CS-5 release.
21 *""FILE COMMENT END""**************************************************/
22 
23 #include "r_pdl_dmac.h"
24 #include "r_pdl_definitions.h"
25 #include "r_pdl_user_definitions.h"
26 
27 /*""FUNC COMMENT""***************************************************
28 * Module outline : DMAC interrupt processing
29 *-------------------------------------------------------------------
30 * Declaration	: void Interrupt_DMACn(void)
31 *-------------------------------------------------------------------
32 * Function		: Interrupt processing function for DMAC channel n
33 *-------------------------------------------------------------------
34 * Argument		: Nothing
35 *-------------------------------------------------------------------
36 * Return value	: Nothing
37 *-------------------------------------------------------------------
38 * Input			:
39 * Output		:
40 *-------------------------------------------------------------------
41 * Use function	: DMAC_callback_func[n]
42 *-------------------------------------------------------------------
43 * Notes			:
44 *-------------------------------------------------------------------
45 * History		: 2011.04.08
46 *				: Ver 1.02
47 *				: CS-5 release.
48 *""FUNC COMMENT END""**********************************************/
49 
50 #if FAST_INTC_VECTOR == VECT_DMAC_DMAC0I
Interrupt_DMAC0(void)51 __fast_interrupt void Interrupt_DMAC0(void)
52 #else
53 #pragma vector = VECT_DMAC_DMAC0I
54 __interrupt void Interrupt_DMAC0(void)
55 #endif
56 {
57   /* Call the user function */
58   if (rpdl_DMAC_callback_func[0] != PDL_NO_FUNC)
59   {
60     rpdl_DMAC_callback_func[0]();
61   }
62 }
63 
64 #if FAST_INTC_VECTOR == VECT_DMAC_DMAC1I
Interrupt_DMAC1(void)65 __fast_interrupt void Interrupt_DMAC1(void)
66 #else
67 #pragma vector = VECT_DMAC_DMAC1I
68 __interrupt void Interrupt_DMAC1(void)
69 #endif
70 {
71   /* Call the user function */
72   if (rpdl_DMAC_callback_func[1] != PDL_NO_FUNC)
73   {
74     rpdl_DMAC_callback_func[1]();
75   }
76 }
77 
78 #if FAST_INTC_VECTOR == VECT_DMAC_DMAC2I
Interrupt_DMAC2(void)79 __fast_interrupt void Interrupt_DMAC2(void)
80 #else
81 #pragma vector = VECT_DMAC_DMAC2I
82 __interrupt void Interrupt_DMAC2(void)
83 #endif
84 {
85   /* Call the user function */
86   if (rpdl_DMAC_callback_func[2] != PDL_NO_FUNC)
87   {
88     rpdl_DMAC_callback_func[2]();
89   }
90 }
91 
92 #if FAST_INTC_VECTOR == VECT_DMAC_DMAC3I
Interrupt_DMAC3(void)93 __fast_interrupt void Interrupt_DMAC3(void)
94 #else
95 #pragma vector = VECT_DMAC_DMAC3I
96 __interrupt void Interrupt_DMAC3(void)
97 #endif
98 {
99   /* Call the user function */
100   if (rpdl_DMAC_callback_func[3] != PDL_NO_FUNC)
101   {
102     rpdl_DMAC_callback_func[3]();
103   }
104 }
105 /* End of file */
106