embkernel
 All Classes Functions Variables Typedefs Groups Pages
RtosInterrupt.cpp
1 //------------------------------------------------------------------------------
2 //This file is part of embKernel.
3 //See license.txt for the full license governing this code.
4 //------------------------------------------------------------------------------
5 #include "RtosInterrupt.hpp"
6 #include "LibLog.hpp"
7 
8 volatile bool isLoopForever = true;
9 
10 __attribute__((weak)) void __error__(const char *fileName, unsigned long line) {
11  log.printf(LibLog::LEVEL_ERROR, "Error from %s, line %u", fileName, (unsigned int) line);
12  while (isLoopForever) {
13  }
14 }
15 
16 __attribute__((weak)) void RtosInterrupt::IRQ_NonMaskableInt() {
17  __asm volatile( "bkpt");
18  while (isLoopForever) {
19  }
20 }
21 
22 __attribute__(( weak)) void RtosInterrupt::IRQ_HardFault() {
23  __asm volatile( "bkpt");
24  while (isLoopForever) {
25  }
26 }
27 
28 __attribute__(( weak)) void RtosInterrupt::IRQ_MemoryManagement() {
29  __asm volatile( "bkpt");
30  while (isLoopForever) {
31  }
32 }
33 
34 __attribute__(( weak)) void RtosInterrupt::IRQ_BusFault() {
35  __asm volatile( "bkpt");
36  while (isLoopForever) {
37  }
38 }
39 
40 __attribute__(( weak)) void RtosInterrupt::IRQ_UsageFault() {
41  __asm volatile( "bkpt");
42  while (isLoopForever) {
43  }
44 }
45 
46 __attribute__(( weak)) void RtosInterrupt::IRQ_SVCall() {
47  __asm volatile( "bkpt");
48  while (isLoopForever) {
49  }
50 }
51 
52 __attribute__(( weak)) void RtosInterrupt::IRQ_DebugMonitor() {
53  __asm volatile( "bkpt");
54  while (isLoopForever) {
55  }
56 }
57 
58 __attribute__(( weak)) void RtosInterrupt::IRQ_PendSV() {
59  __asm volatile( "bkpt");
60  while (isLoopForever) {
61  }
62 }
63 
64 __attribute__(( weak)) void RtosInterrupt::IRQ_SysTick() {
65  __asm volatile( "bkpt");
66  while (isLoopForever) {
67  }
68 }
69 
73 __attribute__(( weak)) void RtosInterrupt::IRQ_WWDG() {
74  __asm volatile( "bkpt");
75 }
76 
77 __attribute__(( weak)) void RtosInterrupt::IRQ_PVD() {
78  __asm volatile( "bkpt");
79 }
80 
81 __attribute__(( weak)) void RtosInterrupt::IRQ_TAMPER_STAMP() {
82  __asm volatile( "bkpt");
83 }
84 
85 __attribute__(( weak)) void RtosInterrupt::IRQ_RTC_WKUP() {
86  __asm volatile( "bkpt");
87 }
88 
89 __attribute__(( weak)) void RtosInterrupt::IRQ_FLASH() {
90  __asm volatile( "bkpt");
91 }
92 
93 __attribute__(( weak)) void RtosInterrupt::IRQ_RCC() {
94  __asm volatile( "bkpt");
95 }
96 
97 __attribute__(( weak)) void RtosInterrupt::IRQ_EXTI0() {
98  __asm volatile( "bkpt");
99 }
100 
101 __attribute__(( weak)) void RtosInterrupt::IRQ_EXTI1() {
102  __asm volatile( "bkpt");
103 }
104 
105 __attribute__(( weak)) void RtosInterrupt::IRQ_EXTI2_TS() {
106  __asm volatile( "bkpt");
107 }
108 
109 __attribute__(( weak)) void RtosInterrupt::IRQ_EXTI3() {
110  __asm volatile( "bkpt");
111 }
112 
113 __attribute__(( weak)) void RtosInterrupt::IRQ_EXTI4() {
114  __asm volatile( "bkpt");
115 }
116 
117 __attribute__(( weak)) void RtosInterrupt::IRQ_DMA1_Channel1() {
118  __asm volatile( "bkpt");
119 }
120 
121 __attribute__(( weak)) void RtosInterrupt::IRQ_DMA1_Channel2() {
122  __asm volatile( "bkpt");
123 }
124 
125 __attribute__(( weak)) void RtosInterrupt::IRQ_DMA1_Channel3() {
126  __asm volatile( "bkpt");
127 }
128 
129 __attribute__(( weak)) void RtosInterrupt::IRQ_DMA1_Channel4() {
130  __asm volatile( "bkpt");
131 }
132 
133 __attribute__(( weak)) void RtosInterrupt::IRQ_DMA1_Channel5() {
134  __asm volatile( "bkpt");
135 }
136 
137 __attribute__(( weak)) void RtosInterrupt::IRQ_DMA1_Channel6() {
138  __asm volatile( "bkpt");
139 }
140 
141 __attribute__(( weak)) void RtosInterrupt::IRQ_DMA1_Channel7() {
142  __asm volatile( "bkpt");
143 }
144 
145 __attribute__(( weak)) void RtosInterrupt::IRQ_ADC1_2() {
146  __asm volatile( "bkpt");
147 }
148 
149 __attribute__(( weak)) void RtosInterrupt::IRQ_USB_HP_CAN1_TX() {
150  __asm volatile( "bkpt");
151 }
152 
153 __attribute__(( weak)) void RtosInterrupt::IRQ_USB_LP_CAN1_RX0() {
154  __asm volatile( "bkpt");
155 }
156 
157 __attribute__(( weak)) void RtosInterrupt::IRQ_CAN1_RX1() {
158  __asm volatile( "bkpt");
159 }
160 
161 __attribute__(( weak)) void RtosInterrupt::IRQ_CAN1_SCE() {
162  __asm volatile( "bkpt");
163 }
164 
165 __attribute__(( weak)) void RtosInterrupt::IRQ_EXTI9_5() {
166  __asm volatile( "bkpt");
167 }
168 
169 __attribute__(( weak)) void RtosInterrupt::IRQ_TIM1_BRK_TIM15() {
170  __asm volatile( "bkpt");
171 }
172 
173 __attribute__(( weak)) void RtosInterrupt::IRQ_TIM1_UP_TIM16() {
174  __asm volatile( "bkpt");
175 }
176 
177 __attribute__(( weak)) void RtosInterrupt::IRQ_TIM1_TRG_COM_TIM17() {
178  __asm volatile( "bkpt");
179 }
180 
181 __attribute__(( weak)) void RtosInterrupt::IRQ_TIM1_CC() {
182  __asm volatile( "bkpt");
183 }
184 
185 __attribute__(( weak)) void RtosInterrupt::IRQ_TIM2() {
186  __asm volatile( "bkpt");
187 }
188 
189 __attribute__(( weak)) void RtosInterrupt::IRQ_TIM3() {
190  __asm volatile( "bkpt");
191 }
192 
193 __attribute__(( weak)) void RtosInterrupt::IRQ_TIM4() {
194  __asm volatile( "bkpt");
195 }
196 
197 __attribute__(( weak)) void RtosInterrupt::IRQ_I2C1_EV() {
198  __asm volatile( "bkpt");
199 }
200 
201 __attribute__(( weak)) void RtosInterrupt::IRQ_I2C1_ER() {
202  __asm volatile( "bkpt");
203 }
204 
205 __attribute__(( weak)) void RtosInterrupt::IRQ_I2C2_EV() {
206  __asm volatile( "bkpt");
207 }
208 
209 __attribute__(( weak)) void RtosInterrupt::IRQ_I2C2_ER() {
210  __asm volatile( "bkpt");
211 }
212 
213 __attribute__(( weak)) void RtosInterrupt::IRQ_SPI1() {
214  __asm volatile( "bkpt");
215 }
216 
217 __attribute__(( weak)) void RtosInterrupt::IRQ_SPI2() {
218  __asm volatile( "bkpt");
219 }
220 
221 __attribute__(( weak)) void RtosInterrupt::IRQ_USART1() {
222  __asm volatile( "bkpt");
223 }
224 
225 __attribute__(( weak)) void RtosInterrupt::IRQ_USART2() {
226  __asm volatile( "bkpt");
227 }
228 
229 __attribute__(( weak)) void RtosInterrupt::IRQ_USART3() {
230  __asm volatile( "bkpt");
231 }
232 
233 __attribute__(( weak)) void RtosInterrupt::IRQ_EXTI15_10() {
234  __asm volatile( "bkpt");
235 }
236 
237 __attribute__(( weak)) void RtosInterrupt::IRQ_RTC_Alarm() {
238  __asm volatile( "bkpt");
239 }
240 
241 __attribute__(( weak)) void RtosInterrupt::IRQ_USBWakeUp() {
242  __asm volatile( "bkpt");
243 }
244 
245 __attribute__(( weak)) void RtosInterrupt::IRQ_TIM8_BRK() {
246  __asm volatile( "bkpt");
247 }
248 
249 __attribute__(( weak)) void RtosInterrupt::IRQ_TIM8_UP() {
250  __asm volatile( "bkpt");
251 }
252 
253 __attribute__(( weak)) void RtosInterrupt::IRQ_TIM8_TRG_COM() {
254  __asm volatile( "bkpt");
255 }
256 
257 __attribute__(( weak)) void RtosInterrupt::IRQ_TIM8_CC() {
258  __asm volatile( "bkpt");
259 }
260 
261 __attribute__(( weak)) void RtosInterrupt::IRQ_ADC3() {
262  __asm volatile( "bkpt");
263 }
264 
265 __attribute__(( weak)) void RtosInterrupt::IRQ_SPI3() {
266  __asm volatile( "bkpt");
267 }
268 
269 __attribute__(( weak)) void RtosInterrupt::IRQ_UART4() {
270  __asm volatile( "bkpt");
271 }
272 
273 __attribute__(( weak)) void RtosInterrupt::IRQ_UART5() {
274  __asm volatile( "bkpt");
275 }
276 
277 __attribute__(( weak)) void RtosInterrupt::IRQ_TIM6_DAC() {
278  __asm volatile( "bkpt");
279 }
280 
281 __attribute__(( weak)) void RtosInterrupt::IRQ_TIM7() {
282  __asm volatile( "bkpt");
283 }
284 
285 __attribute__(( weak)) void RtosInterrupt::IRQ_DMA2_Channel1() {
286  __asm volatile( "bkpt");
287 }
288 
289 __attribute__(( weak)) void RtosInterrupt::IRQ_DMA2_Channel2() {
290  __asm volatile( "bkpt");
291 }
292 
293 __attribute__(( weak)) void RtosInterrupt::IRQ_DMA2_Channel3() {
294  __asm volatile( "bkpt");
295 }
296 
297 __attribute__(( weak)) void RtosInterrupt::IRQ_DMA2_Channel4() {
298  __asm volatile( "bkpt");
299 }
300 
301 __attribute__(( weak)) void RtosInterrupt::IRQ_DMA2_Channel5() {
302  __asm volatile( "bkpt");
303 }
304 
305 __attribute__(( weak)) void RtosInterrupt::IRQ_ADC4() {
306  __asm volatile( "bkpt");
307 }
308 
309 __attribute__(( weak)) void RtosInterrupt::IRQ_COMP1_2_3() {
310  __asm volatile( "bkpt");
311 }
312 
313 __attribute__(( weak)) void RtosInterrupt::IRQ_COMP4_5_6() {
314  __asm volatile( "bkpt");
315 }
316 
317 __attribute__(( weak)) void RtosInterrupt::IRQ_COMP7() {
318  __asm volatile( "bkpt");
319 }
320 
321 __attribute__(( weak)) void RtosInterrupt::IRQ_USB_HP() {
322  __asm volatile( "bkpt");
323 }
324 
325 __attribute__(( weak)) void RtosInterrupt::IRQ_USB_LP() {
326  __asm volatile( "bkpt");
327 }
328 
329 __attribute__(( weak)) void RtosInterrupt::IRQ_USBWakeUp_RMP() {
330  __asm volatile( "bkpt");
331 }
332 
333 __attribute__(( weak)) void RtosInterrupt::IRQ_FPU() {
334  __asm volatile( "bkpt");
335 }