2 FreeRTOS.org V5.2.0 - Copyright (C) 2003-2009 Richard Barry.
\r
4 This file is part of the FreeRTOS.org distribution.
\r
6 FreeRTOS.org is free software; you can redistribute it and/or modify it
\r
7 under the terms of the GNU General Public License (version 2) as published
\r
8 by the Free Software Foundation and modified by the FreeRTOS exception.
\r
10 FreeRTOS.org is distributed in the hope that it will be useful, but WITHOUT
\r
11 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
\r
12 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
\r
15 You should have received a copy of the GNU General Public License along
\r
16 with FreeRTOS.org; if not, write to the Free Software Foundation, Inc., 59
\r
17 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
\r
19 A special exception to the GPL is included to allow you to distribute a
\r
20 combined work that includes FreeRTOS.org without being obliged to provide
\r
21 the source code for any proprietary components. See the licensing section
\r
22 of http://www.FreeRTOS.org for full details.
\r
25 ***************************************************************************
\r
27 * Get the FreeRTOS eBook! See http://www.FreeRTOS.org/Documentation *
\r
29 * This is a concise, step by step, 'hands on' guide that describes both *
\r
30 * general multitasking concepts and FreeRTOS specifics. It presents and *
\r
31 * explains numerous examples that are written using the FreeRTOS API. *
\r
32 * Full source code for all the examples is provided in an accompanying *
\r
35 ***************************************************************************
\r
39 Please ensure to read the configuration and relevant port sections of the
\r
40 online documentation.
\r
42 http://www.FreeRTOS.org - Documentation, latest information, license and
\r
45 http://www.SafeRTOS.com - A version that is certified for use in safety
\r
48 http://www.OpenRTOS.com - Commercial support, development, porting,
\r
49 licensing and training services.
\r
53 #include <p32xxxx.h>
\r
54 #include <sys/asm.h>
\r
64 /* .section .FreeRTOS, ax, @progbits */
\r
69 /* Address of $4 ulStatus1 is held in A0, so don't mess with the value of $4 */
\r
80 addiu $10, $0, 0x110
\r
81 addiu $11, $0, 0x111
\r
82 addiu $12, $0, 0x112
\r
83 addiu $13, $0, 0x113
\r
84 addiu $14, $0, 0x114
\r
85 addiu $15, $0, 0x115
\r
86 addiu $16, $0, 0x116
\r
87 addiu $17, $0, 0x117
\r
88 addiu $18, $0, 0x118
\r
89 addiu $19, $0, 0x119
\r
90 addiu $20, $0, 0x120
\r
91 addiu $21, $0, 0x121
\r
92 addiu $22, $0, 0x122
\r
93 addiu $23, $0, 0x123
\r
94 addiu $24, $0, 0x124
\r
95 addiu $25, $0, 0x125
\r
96 addiu $30, $0, 0x130
\r
102 addiu $2, $2, -0x12
\r
106 addiu $3, $3, -0x13
\r
110 addiu $5, $5, -0x15
\r
114 addiu $6, $6, -0x16
\r
118 addiu $7, $7, -0x17
\r
122 addiu $8, $8, -0x18
\r
126 addiu $9, $9, -0x19
\r
130 addiu $10, $10, -0x110
\r
134 addiu $11, $11, -0x111
\r
138 addiu $12, $12, -0x112
\r
142 addiu $13, $13, -0x113
\r
146 addiu $14, $14, -0x114
\r
150 addiu $15, $15, -0x115
\r
154 addiu $16, $16, -0x116
\r
158 addiu $17, $17, -0x117
\r
162 addiu $18, $18, -0x118
\r
166 addiu $19, $19, -0x119
\r
170 addiu $20, $20, -0x120
\r
174 addiu $21, $21, -0x121
\r
178 addiu $22, $22, -0x122
\r
182 addiu $23, $23, -0x123
\r
186 addiu $24, $24, -0x124
\r
190 addiu $25, $25, -0x125
\r
194 addiu $30, $30, -0x130
\r
204 /* .section .FreeRTOS, ax, @progbits */
\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