1 /*""FILE COMMENT""*******************************************************
2 * System Name	: Interrupt program for RX62N
3 * File Name		: Interrupt_POE.c
4 * Version		: 1.02
5 * Contents		: Interrupt handlers for the Port Output Enable module
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_poe.h"
24 #include "r_pdl_definitions.h"
25 #include "r_pdl_user_definitions.h"
26 
27 /*""FUNC COMMENT""***************************************************
28 * Module outline : POE interrupt processing
29 *-------------------------------------------------------------------
30 * Declaration	: void Interrupt_OEIn(void)
31 *-------------------------------------------------------------------
32 * Function		: Interrupt processing function for POE interrupt n
33 *-------------------------------------------------------------------
34 * Argument		: Nothing
35 *-------------------------------------------------------------------
36 * Return value	: Nothing
37 *-------------------------------------------------------------------
38 * Input			:
39 * Output		:
40 *-------------------------------------------------------------------
41 * Use function	: POE_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_POE_OEI1
Interrupt_OEI1(void)51 __fast_interrupt void Interrupt_OEI1(void)
52 #else
53 #pragma vector = VECT_POE_OEI1
54 __interrupt void Interrupt_OEI1(void)
55 #endif
56 {
57 #ifdef DEVICE_PACKAGE_TFLGA_85
58   /* This peripheral is not available on the 85-pin package */
59   nop();
60 #else
61   /* Call the user function */
62   if (rpdl_POE_callback_func[0] != PDL_NO_FUNC)
63   {
64     rpdl_POE_callback_func[0]();
65   }
66 #endif
67 }
68 
69 #if FAST_INTC_VECTOR == VECT_POE_OEI2
Interrupt_OEI2(void)70 __fast_interrupt void Interrupt_OEI2(void)
71 #else
72 #pragma vector = VECT_POE_OEI2
73 __interrupt void Interrupt_OEI2(void)
74 #endif
75 {
76 #ifdef DEVICE_PACKAGE_TFLGA_85
77   /* This peripheral is not available on the 85-pin package */
78   nop();
79 #else
80   /* Call the user function */
81   if (rpdl_POE_callback_func[2] != PDL_NO_FUNC)
82   {
83     rpdl_POE_callback_func[2]();
84   }
85 #endif
86 }
87 
88 #if FAST_INTC_VECTOR == VECT_POE_OEI3
Interrupt_OEI3(void)89 __fast_interrupt void Interrupt_OEI3(void)
90 #else
91 #pragma vector = VECT_POE_OEI3
92 __interrupt void Interrupt_OEI3(void)
93 #endif
94 {
95 #ifdef DEVICE_PACKAGE_TFLGA_85
96   /* This peripheral is not available on the 85-pin package */
97   nop();
98 #else
99   /* Call the user function */
100   if (rpdl_POE_callback_func[1] != PDL_NO_FUNC)
101   {
102     rpdl_POE_callback_func[1]();
103   }
104 #endif
105 }
106 
107 #if FAST_INTC_VECTOR == VECT_POE_OEI4
Interrupt_OEI4(void)108 __fast_interrupt void Interrupt_OEI4(void)
109 #else
110 #pragma vector = VECT_POE_OEI4
111 __interrupt void Interrupt_OEI4(void)
112 #endif
113 {
114 #ifdef DEVICE_PACKAGE_TFLGA_85
115   /* This peripheral is not available on the 85-pin package */
116   nop();
117 #else
118   /* Call the user function */
119   if (rpdl_POE_callback_func[3] != PDL_NO_FUNC)
120   {
121     rpdl_POE_callback_func[3]();
122   }
123 #endif
124 }
125 
126 /* End of file */
127