1 /* THIS SAMPLE CODE IS PROVIDED AS IS AND IS SUBJECT TO ALTERATIONS. FUJITSU */
\r
2 /* MICROELECTRONICS ACCEPTS NO RESPONSIBILITY OR LIABILITY FOR ANY ERRORS OR */
\r
3 /* ELIGIBILITY FOR ANY PURPOSES. */
\r
4 /* (C) Fujitsu Microelectronics Europe GmbH */
\r
6 /*---------------------------------------------------------------------------
\r
8 - Interrupt level (priority) setting
\r
9 - Interrupt vector definition
\r
10 -----------------------------------------------------------------------------*/
\r
11 #include "mb96348hs.h"
\r
12 #include "FreeRTOSConfig.h"
\r
14 /*---------------------------------------------------------------------------
\r
16 This function pre-sets all interrupt control registers. It can be used
\r
17 to set all interrupt priorities in static applications. If this file
\r
18 contains assignments to dedicated resources, verify that the
\r
19 appropriate controller is used.
\r
20 NOTE: value 7 disables the interrupt and value 0 sets highest priority.
\r
21 -----------------------------------------------------------------------------*/
\r
25 #define DEFAULT_ILM_MASK 7
\r
27 void InitIrqLevels( void )
\r
31 for( irq = MIN_ICR; irq <= MAX_ICR; irq++ )
\r
33 ICR = ( irq << 8 ) | DEFAULT_ILM_MASK;
\r
36 ICR = ( (51 & 0xFF) << 8 ) | configKERNEL_INTERRUPT_PRIORITY; /* Reload Timer 0 of MB9634x Series */
\r
37 ICR = ( (12 & 0xFF) << 8 ) | configKERNEL_INTERRUPT_PRIORITY; /* Delayed interrupt of 16FX Family */
\r
39 ICR = ( 79 << 8 ) | configKERNEL_INTERRUPT_PRIORITY; /* UART 0 Rx of MB9634x Series */
\r
40 ICR = ( 80 << 8 ) | configKERNEL_INTERRUPT_PRIORITY; /* UART 0 Tx of MB9634x Series */
\r
43 /*---------------------------------------------------------------------------
\r
45 Add your own prototypes here. Each vector definition needs is proto-
\r
46 type. Either do it here or include a header file containing them.
\r
47 -----------------------------------------------------------------------------*/
\r
48 __interrupt void DefaultIRQHandler( void );
\r
50 extern __interrupt void prvRLT0_TICKISR( void );
\r
52 extern __interrupt void UART0_RxISR( void );
\r
53 extern __interrupt void UART0_TxISR( void );
\r
54 extern __interrupt void UART0_TraceRxISR( void );
\r
55 extern __interrupt void vPortYield( void );
\r
56 extern __interrupt void vPortYieldDelayed( void );
\r
58 #if ( INCLUDE_TraceListTasks == 1 )
\r
59 extern __interrupt void UART1_RxISR( void );
\r
62 /*---------------------------------------------------------------------------
\r
63 Vector definiton for MB9634x
\r
64 Use following statements to define vectors. All resource related
\r
65 vectors are predefined. Remaining software interrupts can be added here
\r
67 NOTE: If software interrupts 0 to 7 are defined here, this might
\r
68 conflict with the reset vector in the start-up file.
\r
69 -----------------------------------------------------------------------------*/
\r
70 #pragma intvect DefaultIRQHandler 11 /* Non-maskable Interrupt */
\r
72 #pragma intvect vPortYieldDelayed 12 /* Delayed Interrupt */
\r
74 #pragma intvect DefaultIRQHandler 13 /* RC Timer */
\r
75 #pragma intvect DefaultIRQHandler 14 /* Main Clock Timer */
\r
76 #pragma intvect DefaultIRQHandler 15 /* Sub Clock Timer */
\r
77 #pragma intvect DefaultIRQHandler 16 /* Reserved */
\r
78 #pragma intvect DefaultIRQHandler 17 /* EXT0 */
\r
79 #pragma intvect DefaultIRQHandler 18 /* EXT1 */
\r
80 #pragma intvect DefaultIRQHandler 19 /* EXT2 */
\r
81 #pragma intvect DefaultIRQHandler 20 /* EXT3 */
\r
82 #pragma intvect DefaultIRQHandler 21 /* EXT4 */
\r
83 #pragma intvect DefaultIRQHandler 22 /* EXT5 */
\r
84 #pragma intvect DefaultIRQHandler 23 /* EXT6 */
\r
85 #pragma intvect DefaultIRQHandler 24 /* EXT7 */
\r
86 #pragma intvect DefaultIRQHandler 25 /* EXT8 */
\r
87 #pragma intvect DefaultIRQHandler 26 /* EXT9 */
\r
88 #pragma intvect DefaultIRQHandler 27 /* EXT10 */
\r
89 #pragma intvect DefaultIRQHandler 28 /* EXT11 */
\r
90 #pragma intvect DefaultIRQHandler 29 /* EXT12 */
\r
91 #pragma intvect DefaultIRQHandler 30 /* EXT13 */
\r
92 #pragma intvect DefaultIRQHandler 31 /* EXT14 */
\r
93 #pragma intvect DefaultIRQHandler 32 /* EXT15 */
\r
94 #pragma intvect DefaultIRQHandler 33 /* CAN0 */
\r
95 #pragma intvect DefaultIRQHandler 34 /* CAN1 */
\r
96 #pragma intvect DefaultIRQHandler 35 /* PPG0 */
\r
97 #pragma intvect DefaultIRQHandler 36 /* PPG1 */
\r
98 #pragma intvect DefaultIRQHandler 37 /* PPG2 */
\r
99 #pragma intvect DefaultIRQHandler 38 /* PPG3 */
\r
100 #pragma intvect DefaultIRQHandler 39 /* PPG4 */
\r
101 #pragma intvect DefaultIRQHandler 40 /* PPG5 */
\r
102 #pragma intvect DefaultIRQHandler 41 /* PPG6 */
\r
103 #pragma intvect DefaultIRQHandler 42 /* PPG7 */
\r
104 #pragma intvect DefaultIRQHandler 43 /* PPG8 */
\r
105 #pragma intvect DefaultIRQHandler 44 /* PPG9 */
\r
106 #pragma intvect DefaultIRQHandler 45 /* PPG10 */
\r
107 #pragma intvect DefaultIRQHandler 46 /* PPG11 */
\r
108 #pragma intvect DefaultIRQHandler 47 /* PPG12 */
\r
109 #pragma intvect DefaultIRQHandler 48 /* PPG13 */
\r
110 #pragma intvect DefaultIRQHandler 49 /* PPG14 */
\r
111 #pragma intvect DefaultIRQHandler 50 /* PPG15 */
\r
113 #pragma intvect prvRLT0_TICKISR 51 /* RLT0 */
\r
115 #pragma intvect DefaultIRQHandler 52 /* RLT1 */
\r
116 #pragma intvect DefaultIRQHandler 53 /* RLT2 */
\r
117 #pragma intvect DefaultIRQHandler 54 /* RLT3 */
\r
118 #pragma intvect DefaultIRQHandler 55 /* PPGRLT - RLT6 */
\r
119 #pragma intvect DefaultIRQHandler 56 /* ICU0 */
\r
120 #pragma intvect DefaultIRQHandler 57 /* ICU1 */
\r
121 #pragma intvect DefaultIRQHandler 58 /* ICU2 */
\r
122 #pragma intvect DefaultIRQHandler 59 /* ICU3 */
\r
123 #pragma intvect DefaultIRQHandler 60 /* ICU4 */
\r
124 #pragma intvect DefaultIRQHandler 61 /* ICU5 */
\r
125 #pragma intvect DefaultIRQHandler 62 /* ICU6 */
\r
126 #pragma intvect DefaultIRQHandler 63 /* ICU7 */
\r
127 #pragma intvect DefaultIRQHandler 64 /* OCU0 */
\r
128 #pragma intvect DefaultIRQHandler 65 /* OCU1 */
\r
129 #pragma intvect DefaultIRQHandler 66 /* OCU2 */
\r
130 #pragma intvect DefaultIRQHandler 67 /* OCU3 */
\r
131 #pragma intvect DefaultIRQHandler 68 /* OCU4 */
\r
132 #pragma intvect DefaultIRQHandler 69 /* OCU5 */
\r
133 #pragma intvect DefaultIRQHandler 70 /* OCU6 */
\r
134 #pragma intvect DefaultIRQHandler 71 /* OCU7 */
\r
135 #pragma intvect DefaultIRQHandler 72 /* FRT0 */
\r
136 #pragma intvect DefaultIRQHandler 73 /* FRT1 */
\r
137 #pragma intvect DefaultIRQHandler 74 /* I2C0 */
\r
138 #pragma intvect DefaultIRQHandler 75 /* I2C1 */
\r
139 #pragma intvect DefaultIRQHandler 76 /* ADC */
\r
140 #pragma intvect DefaultIRQHandler 77 /* ALARM0 */
\r
141 #pragma intvect DefaultIRQHandler 78 /* ALARM1 */
\r
143 #if ( INCLUDE_TraceListTasks == 1 )
\r
144 #pragma intvect UART0_TraceRxISR 79 /* LIN-UART 0 RX */
\r
145 #pragma intvect DefaultIRQHandler 80 /* LIN-UART 0 TX */
\r
147 #pragma intvect UART0_RxISR 79 /* LIN-UART 0 RX */
\r
148 #pragma intvect UART0_TxISR 80 /* LIN-UART 0 TX */
\r
151 #pragma intvect DefaultIRQHandler 81 /* LIN-UART 1 RX */
\r
152 #pragma intvect DefaultIRQHandler 82 /* LIN-UART 1 TX */
\r
153 #pragma intvect DefaultIRQHandler 83 /* LIN-UART 2 RX */
\r
154 #pragma intvect DefaultIRQHandler 84 /* LIN-UART 2 TX */
\r
155 #pragma intvect DefaultIRQHandler 85 /* LIN-UART 3 RX */
\r
156 #pragma intvect DefaultIRQHandler 86 /* LIN-UART 3 TX */
\r
157 #pragma intvect DefaultIRQHandler 87 /* MAIN FLASH IRQ */
\r
158 #pragma intvect DefaultIRQHandler 88 /* SATELLITE FLASH IRQ (not on all devices) */
\r
159 #pragma intvect DefaultIRQHandler 89 /* LIN-UART 7 RX (not on all devices) */
\r
160 #pragma intvect DefaultIRQHandler 90 /* LIN-UART 7 TX (not on all devices) */
\r
161 #pragma intvect DefaultIRQHandler 91 /* LIN-UART 8 RX (not on all devices) */
\r
162 #pragma intvect DefaultIRQHandler 92 /* LIN-UART 8 TX (not on all devices) */
\r
163 #pragma intvect DefaultIRQHandler 93 /* LIN-UART 9 RX (not on all devices) */
\r
164 #pragma intvect DefaultIRQHandler 94 /* LIN-UART 9 TX (not on all devices) */
\r
165 #pragma intvect DefaultIRQHandler 95 /* RTC (not on all devices) */
\r
166 #pragma intvect DefaultIRQHandler 96 /* CAL (not on all devices) */
\r
168 #pragma intvect vPortYield 122 /* INT #122 */
\r
170 /*---------------------------------------------------------------------------
\r
171 DefaultIRQHandler()
\r
172 This function is a placeholder for all vector definitions. Either use
\r
173 your own placeholder or add necessary code here.
\r
174 -----------------------------------------------------------------------------*/
\r
175 __interrupt void DefaultIRQHandler( void )
\r
177 __DI(); /* disable interrupts */
\r
180 __wait_nop(); /* halt system */
\r