]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/riscv_hal/riscv_hal_stubs.c
Rename directories in the RISC-V port.
[freertos] / FreeRTOS / Demo / RISC-V_IGLOO2_Creative_SoftConsole / Microsemi_Code / riscv_hal / riscv_hal_stubs.c
1 /*******************************************************************************\r
2  * (c) Copyright 2016-2018 Microsemi SoC Products Group. All rights reserved.\r
3  *\r
4  * @file riscv_hal_stubs.c\r
5  * @author Microsemi SoC Products Group\r
6  * @brief Mi-V soft processor Interrupt Function stubs.\r
7  * The functions below will only be linked with the application code if the user\r
8  * does not provide an implementation for these functions. These functions are\r
9  * defined with weak linking so that they can be overridden by a function with\r
10  * same prototype in the user's application code.\r
11  *\r
12  * SVN $Revision: 9835 $\r
13  * SVN $Date: 2018-03-19 19:11:35 +0530 (Mon, 19 Mar 2018) $\r
14  */\r
15 #include <unistd.h>\r
16 \r
17 #ifdef __cplusplus\r
18 extern "C" {\r
19 #endif\r
20 \r
21 /*Weakly linked handler. Will be replaced with user's definition if provided*/\r
22 __attribute__((weak)) void Software_IRQHandler(void)\r
23 {\r
24     _exit(10);\r
25 }\r
26 \r
27 /*Weakly linked handler. Will be replaced with user's definition if provided*/\r
28 __attribute__((weak)) void SysTick_Handler(void)\r
29 {\r
30         /*Default handler*/\r
31 }\r
32 \r
33 /*Weakly linked handler. Will be replaced with user's definition if provided*/\r
34 __attribute__((weak)) uint8_t Invalid_IRQHandler(void)\r
35 {\r
36     return(0U); /*Default handler*/\r
37 }\r
38 \r
39 /*Weakly linked handler. Will be replaced with user's definition if provided*/\r
40 __attribute__((weak)) uint8_t External_1_IRQHandler(void)\r
41 {\r
42     return(0U); /*Default handler*/\r
43 }\r
44 \r
45 /*Weakly linked handler. Will be replaced with user's definition if provided*/\r
46 __attribute__((weak)) uint8_t External_2_IRQHandler(void)\r
47 {\r
48     return(0U); /*Default handler*/\r
49 }\r
50 \r
51 /*Weakly linked handler. Will be replaced with user's definition if provided*/\r
52 __attribute__((weak)) uint8_t External_3_IRQHandler(void)\r
53 {\r
54     return(0U); /*Default handler*/\r
55 }\r
56 \r
57 /*Weakly linked handler. Will be replaced with user's definition if provided*/\r
58 __attribute__((weak)) uint8_t External_4_IRQHandler(void)\r
59 {\r
60         return(0U); /*Default handler*/\r
61 }\r
62 \r
63 /*Weakly linked handler. Will be replaced with user's definition if provided*/\r
64 __attribute__((weak)) uint8_t External_5_IRQHandler(void)\r
65 {\r
66     return(0U); /*Default handler*/\r
67 }\r
68 \r
69 /*Weakly linked handler. Will be replaced with user's definition if provided*/\r
70 __attribute__((weak)) uint8_t External_6_IRQHandler(void)\r
71 {\r
72     return(0U); /*Default handler*/\r
73 }\r
74 \r
75 /*Weakly linked handler. Will be replaced with user's definition if provided*/\r
76 __attribute__((weak)) uint8_t External_7_IRQHandler(void)\r
77 {\r
78     return(0U); /*Default handler*/\r
79 }\r
80 \r
81 /*Weakly linked handler. Will be replaced with user's definition if provided*/\r
82 __attribute__((weak)) uint8_t External_8_IRQHandler(void)\r
83 {\r
84     return(0U); /*Default handler*/\r
85 }\r
86 \r
87 /*Weakly linked handler. Will be replaced with user's definition if provided*/\r
88 __attribute__((weak)) uint8_t External_9_IRQHandler(void)\r
89 {\r
90     return(0U); /*Default handler*/\r
91 }\r
92 \r
93 /*Weakly linked handler. Will be replaced with user's definition if provided*/\r
94 __attribute__((weak)) uint8_t External_10_IRQHandler(void)\r
95 {\r
96     return(0U); /*Default handler*/\r
97 }\r
98 \r
99 /*Weakly linked handler. Will be replaced with user's definition if provided*/\r
100 __attribute__((weak)) uint8_t External_11_IRQHandler(void)\r
101 {\r
102     return(0U); /*Default handler*/\r
103 }\r
104 \r
105 /*Weakly linked handler. Will be replaced with user's definition if provided*/\r
106 __attribute__((weak)) uint8_t External_12_IRQHandler(void)\r
107 {\r
108         return(0U); /*Default handler*/\r
109 }\r
110 \r
111 /*Weakly linked handler. Will be replaced with user's definition if provided*/\r
112 __attribute__((weak)) uint8_t External_13_IRQHandler(void)\r
113 {\r
114         return(0U); /*Default handler*/\r
115 }\r
116 \r
117 /*Weakly linked handler. Will be replaced with user's definition if provided*/\r
118 __attribute__((weak)) uint8_t External_14_IRQHandler(void)\r
119 {\r
120         return(0U); /*Default handler*/\r
121 }\r
122 \r
123 /*Weakly linked handler. Will be replaced with user's definition if provided*/\r
124 __attribute__((weak)) uint8_t External_15_IRQHandler(void)\r
125 {\r
126         return(0U); /*Default handler*/\r
127 }\r
128 \r
129 /*Weakly linked handler. Will be replaced with user's definition if provided*/\r
130 __attribute__((weak)) uint8_t External_16_IRQHandler(void)\r
131 {\r
132         return(0U); /*Default handler*/\r
133 }\r
134 \r
135 /*Weakly linked handler. Will be replaced with user's definition if provided*/\r
136 __attribute__((weak)) uint8_t External_17_IRQHandler(void)\r
137 {\r
138         return(0U); /*Default handler*/\r
139 }\r
140 \r
141 /*Weakly linked handler. Will be replaced with user's definition if provided*/\r
142 __attribute__((weak)) uint8_t External_18_IRQHandler(void)\r
143 {\r
144         return(0U); /*Default handler*/\r
145 }\r
146 \r
147 /*Weakly linked handler. Will be replaced with user's definition if provided*/\r
148 __attribute__((weak)) uint8_t External_19_IRQHandler(void)\r
149 {\r
150         return(0U); /*Default handler*/\r
151 }\r
152 \r
153 /*Weakly linked handler. Will be replaced with user's definition if provided*/\r
154 __attribute__((weak)) uint8_t External_20_IRQHandler(void)\r
155 {\r
156         return(0U); /*Default handler*/\r
157 }\r
158 \r
159 /*Weakly linked handler. Will be replaced with user's definition if provided*/\r
160 __attribute__((weak)) uint8_t External_21_IRQHandler(void)\r
161 {\r
162         return(0U); /*Default handler*/\r
163 }\r
164 \r
165 /*Weakly linked handler. Will be replaced with user's definition if provided*/\r
166 __attribute__((weak)) uint8_t External_22_IRQHandler(void)\r
167 {\r
168         return(0U); /*Default handler*/\r
169 }\r
170 \r
171 /*Weakly linked handler. Will be replaced with user's definition if provided*/\r
172 __attribute__((weak)) uint8_t External_23_IRQHandler(void)\r
173 {\r
174         return(0U); /*Default handler*/\r
175 }\r
176 \r
177 /*Weakly linked handler. Will be replaced with user's definition if provided*/\r
178 __attribute__((weak)) uint8_t External_24_IRQHandler(void)\r
179 {\r
180         return(0U); /*Default handler*/\r
181 }\r
182 \r
183 /*Weakly linked handler. Will be replaced with user's definition if provided*/\r
184 __attribute__((weak)) uint8_t External_25_IRQHandler(void)\r
185 {\r
186         return(0U); /*Default handler*/\r
187 }\r
188 \r
189 /*Weakly linked handler. Will be replaced with user's definition if provided*/\r
190 __attribute__((weak)) uint8_t External_26_IRQHandler(void)\r
191 {\r
192         return(0U); /*Default handler*/\r
193 }\r
194 \r
195 /*Weakly linked handler. Will be replaced with user's definition if provided*/\r
196 __attribute__((weak)) uint8_t External_27_IRQHandler(void)\r
197 {\r
198         return(0U); /*Default handler*/\r
199 }\r
200 \r
201 /*Weakly linked handler. Will be replaced with user's definition if provided*/\r
202 __attribute__((weak)) uint8_t External_28_IRQHandler(void)\r
203 {\r
204         return(0U); /*Default handler*/\r
205 }\r
206 \r
207 /*Weakly linked handler. Will be replaced with user's definition if provided*/\r
208 __attribute__((weak)) uint8_t External_29_IRQHandler(void)\r
209 {\r
210         return(0U); /*Default handler*/\r
211 }\r
212 \r
213 /*Weakly linked handler. Will be replaced with user's definition if provided*/\r
214 __attribute__((weak)) uint8_t External_30_IRQHandler(void)\r
215 {\r
216         return(0U); /*Default handler*/\r
217 }\r
218 \r
219 /*Weakly linked handler. Will be replaced with user's definition if provide*/\r
220 __attribute__((weak)) uint8_t External_31_IRQHandler(void)\r
221 {\r
222         return(0U); /*Default handler*/\r
223 }\r
224 \r
225 #ifdef __cplusplus\r
226 }\r
227 #endif\r