2 FreeRTOS V7.0.2 - Copyright (C) 2011 Real Time Engineers Ltd.
\r
5 ***************************************************************************
\r
7 * FreeRTOS tutorial books are available in pdf and paperback. *
\r
8 * Complete, revised, and edited pdf reference manuals are also *
\r
11 * Purchasing FreeRTOS documentation will not only help you, by *
\r
12 * ensuring you get running as quickly as possible and with an *
\r
13 * in-depth knowledge of how to use FreeRTOS, it will also help *
\r
14 * the FreeRTOS project to continue with its mission of providing *
\r
15 * professional grade, cross platform, de facto standard solutions *
\r
16 * for microcontrollers - completely free of charge! *
\r
18 * >>> See http://www.FreeRTOS.org/Documentation for details. <<< *
\r
20 * Thank you for using FreeRTOS, and thank you for your support! *
\r
22 ***************************************************************************
\r
25 This file is part of the FreeRTOS distribution.
\r
27 FreeRTOS is free software; you can redistribute it and/or modify it under
\r
28 the terms of the GNU General Public License (version 2) as published by the
\r
29 Free Software Foundation AND MODIFIED BY the FreeRTOS exception.
\r
30 >>>NOTE<<< The modification to the GPL is included to allow you to
\r
31 distribute a combined work that includes FreeRTOS without being obliged to
\r
32 provide the source code for proprietary components outside of the FreeRTOS
\r
33 kernel. FreeRTOS is distributed in the hope that it will be useful, but
\r
34 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
\r
35 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
\r
36 more details. You should have received a copy of the GNU General Public
\r
37 License and the FreeRTOS license exception along with FreeRTOS; if not it
\r
38 can be viewed here: http://www.freertos.org/a00114.html and also obtained
\r
39 by writing to Richard Barry, contact details for whom are available on the
\r
44 http://www.FreeRTOS.org - Documentation, latest information, license and
\r
47 http://www.SafeRTOS.com - A version that is certified for use in safety
\r
50 http://www.OpenRTOS.com - Commercial support, development, porting,
\r
51 licensing and training services.
\r
55 #include <p32xxxx.h>
\r
56 #include <sys/asm.h>
\r
70 /* Address of $4 ulStatus1 is held in A0, so don't mess with the value of $4 */
\r
81 addiu $10, $0, 0x110
\r
82 addiu $11, $0, 0x111
\r
83 addiu $12, $0, 0x112
\r
84 addiu $13, $0, 0x113
\r
85 addiu $14, $0, 0x114
\r
86 addiu $15, $0, 0x115
\r
87 addiu $16, $0, 0x116
\r
88 addiu $17, $0, 0x117
\r
89 addiu $18, $0, 0x118
\r
90 addiu $19, $0, 0x119
\r
91 addiu $20, $0, 0x120
\r
92 addiu $21, $0, 0x121
\r
93 addiu $22, $0, 0x122
\r
94 addiu $23, $0, 0x123
\r
95 addiu $24, $0, 0x124
\r
96 addiu $25, $0, 0x125
\r
97 addiu $30, $0, 0x130
\r
103 addiu $2, $2, -0x12
\r
107 addiu $3, $3, -0x13
\r
111 addiu $5, $5, -0x15
\r
115 addiu $6, $6, -0x16
\r
119 addiu $7, $7, -0x17
\r
123 addiu $8, $8, -0x18
\r
127 addiu $9, $9, -0x19
\r
131 addiu $10, $10, -0x110
\r
135 addiu $11, $11, -0x111
\r
139 addiu $12, $12, -0x112
\r
143 addiu $13, $13, -0x113
\r
147 addiu $14, $14, -0x114
\r
151 addiu $15, $15, -0x115
\r
155 addiu $16, $16, -0x116
\r
159 addiu $17, $17, -0x117
\r
163 addiu $18, $18, -0x118
\r
167 addiu $19, $19, -0x119
\r
171 addiu $20, $20, -0x120
\r
175 addiu $21, $21, -0x121
\r
179 addiu $22, $22, -0x122
\r
183 addiu $23, $23, -0x123
\r
187 addiu $24, $24, -0x124
\r
191 addiu $25, $25, -0x125
\r
195 addiu $30, $30, -0x130
\r
212 addiu $2, $0, 0x20
\r
213 addiu $3, $0, 0x30
\r
214 addiu $5, $0, 0x50
\r
215 addiu $6, $0, 0x60
\r
216 addiu $7, $0, 0x70
\r
217 addiu $8, $0, 0x80
\r
218 addiu $9, $0, 0x90
\r
219 addiu $10, $0, 0x100
\r
220 addiu $11, $0, 0x110
\r
221 addiu $12, $0, 0x120
\r
222 addiu $13, $0, 0x130
\r
223 addiu $14, $0, 0x140
\r
224 addiu $15, $0, 0x150
\r
225 addiu $16, $0, 0x160
\r
226 addiu $17, $0, 0x170
\r
227 addiu $18, $0, 0x180
\r
228 addiu $19, $0, 0x190
\r
229 addiu $20, $0, 0x200
\r
230 addiu $21, $0, 0x210
\r
231 addiu $22, $0, 0x220
\r
232 addiu $23, $0, 0x230
\r
233 addiu $24, $0, 0x240
\r
234 addiu $25, $0, 0x250
\r
235 addiu $30, $0, 0x300
\r
237 addiu $1, $1, -0x10
\r
241 addiu $2, $2, -0x20
\r
245 addiu $3, $3, -0x30
\r
249 addiu $5, $5, -0x50
\r
253 addiu $6, $6, -0x60
\r
257 addiu $7, $7, -0x70
\r
261 addiu $8, $8, -0x80
\r
265 addiu $9, $9, -0x90
\r
269 addiu $10, $10, -0x100
\r
273 addiu $11, $11, -0x110
\r
277 addiu $12, $12, -0x120
\r
281 addiu $13, $13, -0x130
\r
285 addiu $14, $14, -0x140
\r
289 addiu $15, $15, -0x150
\r
293 addiu $16, $16, -0x160
\r
297 addiu $17, $17, -0x170
\r
301 addiu $18, $18, -0x180
\r
305 addiu $19, $19, -0x190
\r
309 addiu $20, $20, -0x200
\r
313 addiu $21, $21, -0x210
\r
317 addiu $22, $22, -0x220
\r
321 addiu $23, $23, -0x230
\r
325 addiu $24, $24, -0x240
\r
329 addiu $25, $25, -0x250
\r
333 addiu $30, $30, -0x300
\r