2 FreeRTOS.org V5.1.2 - 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
\r
7 it under the terms of the GNU General Public License as published by
\r
8 the Free Software Foundation; either version 2 of the License, or
\r
9 (at your option) any later version.
\r
11 FreeRTOS.org is distributed in the hope that it will be useful,
\r
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
14 GNU General Public License for more details.
\r
16 You should have received a copy of the GNU General Public License
\r
17 along with FreeRTOS.org; if not, write to the Free Software
\r
18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
\r
20 A special exception to the GPL can be applied should you wish to distribute
\r
21 a combined work that includes FreeRTOS.org, without being obliged to provide
\r
22 the source code for any proprietary components. See the licensing section
\r
23 of http://www.FreeRTOS.org for full details of how and when the exception
\r
26 ***************************************************************************
\r
27 ***************************************************************************
\r
29 * Get the FreeRTOS eBook! See http://www.FreeRTOS.org/Documentation *
\r
31 * This is a concise, step by step, 'hands on' guide that describes both *
\r
32 * general multitasking concepts and FreeRTOS specifics. It presents and *
\r
33 * explains numerous examples that are written using the FreeRTOS API. *
\r
34 * Full source code for all the examples is provided in an accompanying *
\r
37 ***************************************************************************
\r
38 ***************************************************************************
\r
40 Please ensure to read the configuration and relevant port sections of the
\r
41 online documentation.
\r
43 http://www.FreeRTOS.org - Documentation, latest information, license and
\r
46 http://www.SafeRTOS.com - A version that is certified for use in safety
\r
49 http://www.OpenRTOS.com - Commercial support, development, porting,
\r
50 licensing and training services.
\r
54 #include <p32xxxx.h>
\r
55 #include <sys/asm.h>
\r
65 /* .section .FreeRTOS, ax, @progbits */
\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
205 /* .section .FreeRTOS, ax, @progbits */
\r
213 addiu $2, $0, 0x20
\r
214 addiu $3, $0, 0x30
\r
215 addiu $5, $0, 0x50
\r
216 addiu $6, $0, 0x60
\r
217 addiu $7, $0, 0x70
\r
218 addiu $8, $0, 0x80
\r
219 addiu $9, $0, 0x90
\r
220 addiu $10, $0, 0x100
\r
221 addiu $11, $0, 0x110
\r
222 addiu $12, $0, 0x120
\r
223 addiu $13, $0, 0x130
\r
224 addiu $14, $0, 0x140
\r
225 addiu $15, $0, 0x150
\r
226 addiu $16, $0, 0x160
\r
227 addiu $17, $0, 0x170
\r
228 addiu $18, $0, 0x180
\r
229 addiu $19, $0, 0x190
\r
230 addiu $20, $0, 0x200
\r
231 addiu $21, $0, 0x210
\r
232 addiu $22, $0, 0x220
\r
233 addiu $23, $0, 0x230
\r
234 addiu $24, $0, 0x240
\r
235 addiu $25, $0, 0x250
\r
236 addiu $30, $0, 0x300
\r
238 addiu $1, $1, -0x10
\r
242 addiu $2, $2, -0x20
\r
246 addiu $3, $3, -0x30
\r
250 addiu $5, $5, -0x50
\r
254 addiu $6, $6, -0x60
\r
258 addiu $7, $7, -0x70
\r
262 addiu $8, $8, -0x80
\r
266 addiu $9, $9, -0x90
\r
270 addiu $10, $10, -0x100
\r
274 addiu $11, $11, -0x110
\r
278 addiu $12, $12, -0x120
\r
282 addiu $13, $13, -0x130
\r
286 addiu $14, $14, -0x140
\r
290 addiu $15, $15, -0x150
\r
294 addiu $16, $16, -0x160
\r
298 addiu $17, $17, -0x170
\r
302 addiu $18, $18, -0x180
\r
306 addiu $19, $19, -0x190
\r
310 addiu $20, $20, -0x200
\r
314 addiu $21, $21, -0x210
\r
318 addiu $22, $22, -0x220
\r
322 addiu $23, $23, -0x230
\r
326 addiu $24, $24, -0x240
\r
330 addiu $25, $25, -0x250
\r
334 addiu $30, $30, -0x300
\r