2 FreeRTOS V7.4.2 - Copyright (C) 2013 Real Time Engineers Ltd.
\r
4 FEATURES AND PORTS ARE ADDED TO FREERTOS ALL THE TIME. PLEASE VISIT
\r
5 http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
\r
7 ***************************************************************************
\r
9 * FreeRTOS tutorial books are available in pdf and paperback. *
\r
10 * Complete, revised, and edited pdf reference manuals are also *
\r
13 * Purchasing FreeRTOS documentation will not only help you, by *
\r
14 * ensuring you get running as quickly as possible and with an *
\r
15 * in-depth knowledge of how to use FreeRTOS, it will also help *
\r
16 * the FreeRTOS project to continue with its mission of providing *
\r
17 * professional grade, cross platform, de facto standard solutions *
\r
18 * for microcontrollers - completely free of charge! *
\r
20 * >>> See http://www.FreeRTOS.org/Documentation for details. <<< *
\r
22 * Thank you for using FreeRTOS, and thank you for your support! *
\r
24 ***************************************************************************
\r
27 This file is part of the FreeRTOS distribution.
\r
29 FreeRTOS is free software; you can redistribute it and/or modify it under
\r
30 the terms of the GNU General Public License (version 2) as published by the
\r
31 Free Software Foundation AND MODIFIED BY the FreeRTOS exception.
\r
33 >>>>>>NOTE<<<<<< The modification to the GPL is included to allow you to
\r
34 distribute a combined work that includes FreeRTOS without being obliged to
\r
35 provide the source code for proprietary components outside of the FreeRTOS
\r
38 FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY
\r
39 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
\r
40 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
\r
41 details. You should have received a copy of the GNU General Public License
\r
42 and the FreeRTOS license exception along with FreeRTOS; if not it can be
\r
43 viewed here: http://www.freertos.org/a00114.html and also obtained by
\r
44 writing to Real Time Engineers Ltd., contact details for whom are available
\r
45 on the FreeRTOS WEB site.
\r
49 ***************************************************************************
\r
51 * Having a problem? Start by reading the FAQ "My application does *
\r
52 * not run, what could be wrong?" *
\r
54 * http://www.FreeRTOS.org/FAQHelp.html *
\r
56 ***************************************************************************
\r
59 http://www.FreeRTOS.org - Documentation, books, training, latest versions,
\r
60 license and Real Time Engineers Ltd. contact details.
\r
62 http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products,
\r
63 including FreeRTOS+Trace - an indispensable productivity tool, and our new
\r
64 fully thread aware and reentrant UDP/IP stack.
\r
66 http://www.OpenRTOS.com - Real Time Engineers ltd license FreeRTOS to High
\r
67 Integrity Systems, who sell the code with commercial support,
\r
68 indemnification and middleware, under the OpenRTOS brand.
\r
70 http://www.SafeRTOS.com - High Integrity Systems also provide a safety
\r
71 engineered and independently SIL3 certified version for use in safety and
\r
72 mission critical applications that require provable dependability.
\r
76 #include <p32xxxx.h>
\r
77 #include <sys/asm.h>
\r
91 /* Address of $4 ulStatus1 is held in A0, so don't mess with the value of $4 */
\r
102 addiu $10, $0, 0x110
\r
103 addiu $11, $0, 0x111
\r
104 addiu $12, $0, 0x112
\r
105 addiu $13, $0, 0x113
\r
106 addiu $14, $0, 0x114
\r
107 addiu $15, $0, 0x115
\r
108 addiu $16, $0, 0x116
\r
109 addiu $17, $0, 0x117
\r
110 addiu $18, $0, 0x118
\r
111 addiu $19, $0, 0x119
\r
112 addiu $20, $0, 0x120
\r
113 addiu $21, $0, 0x121
\r
114 addiu $22, $0, 0x122
\r
115 addiu $23, $0, 0x123
\r
116 addiu $24, $0, 0x124
\r
117 addiu $25, $0, 0x125
\r
118 addiu $30, $0, 0x130
\r
120 addiu $1, $1, -0x11
\r
124 addiu $2, $2, -0x12
\r
128 addiu $3, $3, -0x13
\r
132 addiu $5, $5, -0x15
\r
136 addiu $6, $6, -0x16
\r
140 addiu $7, $7, -0x17
\r
144 addiu $8, $8, -0x18
\r
148 addiu $9, $9, -0x19
\r
152 addiu $10, $10, -0x110
\r
156 addiu $11, $11, -0x111
\r
160 addiu $12, $12, -0x112
\r
164 addiu $13, $13, -0x113
\r
168 addiu $14, $14, -0x114
\r
172 addiu $15, $15, -0x115
\r
176 addiu $16, $16, -0x116
\r
180 addiu $17, $17, -0x117
\r
184 addiu $18, $18, -0x118
\r
188 addiu $19, $19, -0x119
\r
192 addiu $20, $20, -0x120
\r
196 addiu $21, $21, -0x121
\r
200 addiu $22, $22, -0x122
\r
204 addiu $23, $23, -0x123
\r
208 addiu $24, $24, -0x124
\r
212 addiu $25, $25, -0x125
\r
216 addiu $30, $30, -0x130
\r
240 addiu $10, $0, 0x100
\r
241 addiu $11, $0, 0x110
\r
242 addiu $12, $0, 0x120
\r
243 addiu $13, $0, 0x130
\r
244 addiu $14, $0, 0x140
\r
245 addiu $15, $0, 0x150
\r
246 addiu $16, $0, 0x160
\r
247 addiu $17, $0, 0x170
\r
248 addiu $18, $0, 0x180
\r
249 addiu $19, $0, 0x190
\r
250 addiu $20, $0, 0x200
\r
251 addiu $21, $0, 0x210
\r
252 addiu $22, $0, 0x220
\r
253 addiu $23, $0, 0x230
\r
254 addiu $24, $0, 0x240
\r
255 addiu $25, $0, 0x250
\r
256 addiu $30, $0, 0x300
\r
258 addiu $1, $1, -0x10
\r
262 addiu $2, $2, -0x20
\r
266 addiu $3, $3, -0x30
\r
270 addiu $5, $5, -0x50
\r
274 addiu $6, $6, -0x60
\r
278 addiu $7, $7, -0x70
\r
282 addiu $8, $8, -0x80
\r
286 addiu $9, $9, -0x90
\r
290 addiu $10, $10, -0x100
\r
294 addiu $11, $11, -0x110
\r
298 addiu $12, $12, -0x120
\r
302 addiu $13, $13, -0x130
\r
306 addiu $14, $14, -0x140
\r
310 addiu $15, $15, -0x150
\r
314 addiu $16, $16, -0x160
\r
318 addiu $17, $17, -0x170
\r
322 addiu $18, $18, -0x180
\r
326 addiu $19, $19, -0x190
\r
330 addiu $20, $20, -0x200
\r
334 addiu $21, $21, -0x210
\r
338 addiu $22, $22, -0x220
\r
342 addiu $23, $23, -0x230
\r
346 addiu $24, $24, -0x240
\r
350 addiu $25, $25, -0x250
\r
354 addiu $30, $30, -0x300
\r