2 FreeRTOS V8.2.0rc1 - Copyright (C) 2014 Real Time Engineers Ltd.
\r
5 VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
\r
7 This file is part of the FreeRTOS distribution.
\r
9 FreeRTOS is free software; you can redistribute it and/or modify it under
\r
10 the terms of the GNU General Public License (version 2) as published by the
\r
11 Free Software Foundation >>!AND MODIFIED BY!<< the FreeRTOS exception.
\r
13 >>! NOTE: The modification to the GPL is included to allow you to !<<
\r
14 >>! distribute a combined work that includes FreeRTOS without being !<<
\r
15 >>! obliged to provide the source code for proprietary components !<<
\r
16 >>! outside of the FreeRTOS kernel. !<<
\r
18 FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY
\r
19 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
\r
20 FOR A PARTICULAR PURPOSE. Full license text is available on the following
\r
21 link: http://www.freertos.org/a00114.html
\r
25 ***************************************************************************
\r
27 * Having a problem? Start by reading the FAQ "My application does *
\r
28 * not run, what could be wrong?". Have you defined configASSERT()? *
\r
30 * http://www.FreeRTOS.org/FAQHelp.html *
\r
32 ***************************************************************************
\r
34 ***************************************************************************
\r
36 * FreeRTOS provides completely free yet professionally developed, *
\r
37 * robust, strictly quality controlled, supported, and cross *
\r
38 * platform software that is more than just the market leader, it *
\r
39 * is the industry's de facto standard. *
\r
41 * Help yourself get started quickly while simultaneously helping *
\r
42 * to support the FreeRTOS project by purchasing a FreeRTOS *
\r
43 * tutorial book, reference manual, or both: *
\r
44 * http://www.FreeRTOS.org/Documentation *
\r
46 ***************************************************************************
\r
48 ***************************************************************************
\r
50 * Investing in training allows your team to be as productive as *
\r
51 * possible as early as possible, lowering your overall development *
\r
52 * cost, and enabling you to bring a more robust product to market *
\r
53 * earlier than would otherwise be possible. Richard Barry is both *
\r
54 * the architect and key author of FreeRTOS, and so also the world's *
\r
55 * leading authority on what is the world's most popular real time *
\r
56 * kernel for deeply embedded MCU designs. Obtaining your training *
\r
57 * from Richard ensures your team will gain directly from his in-depth *
\r
58 * product knowledge and years of usage experience. Contact Real Time *
\r
59 * Engineers Ltd to enquire about the FreeRTOS Masterclass, presented *
\r
60 * by Richard Barry: http://www.FreeRTOS.org/contact
\r
62 ***************************************************************************
\r
64 ***************************************************************************
\r
66 * You are receiving this top quality software for free. Please play *
\r
67 * fair and reciprocate by reporting any suspected issues and *
\r
68 * participating in the community forum: *
\r
69 * http://www.FreeRTOS.org/support *
\r
73 ***************************************************************************
\r
75 http://www.FreeRTOS.org - Documentation, books, training, latest versions,
\r
76 license and Real Time Engineers Ltd. contact details.
\r
78 http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products,
\r
79 including FreeRTOS+Trace - an indispensable productivity tool, a DOS
\r
80 compatible FAT file system, and our tiny thread aware UDP/IP stack.
\r
82 http://www.FreeRTOS.org/labs - Where new FreeRTOS products go to incubate.
\r
83 Come and try FreeRTOS+TCP, our new open source TCP/IP stack for FreeRTOS.
\r
85 http://www.OpenRTOS.com - Real Time Engineers ltd license FreeRTOS to High
\r
86 Integrity Systems ltd. to sell under the OpenRTOS brand. Low cost OpenRTOS
\r
87 licenses offer ticketed support, indemnification and commercial middleware.
\r
89 http://www.SafeRTOS.com - High Integrity Systems also provide a safety
\r
90 engineered and independently SIL3 certified version for use in safety and
\r
91 mission critical applications that require provable dependability.
\r
97 __asm vRegTest1Task( void )
\r
100 IMPORT ulRegTest1LoopCounter
\r
102 /* Fill the core registers with known values. */
\r
117 /* Fill the VFP registers with known values. */
\r
136 /* Check all the VFP registers still contain the values set above.
\r
137 First save registers that are clobbered by the test. */
\r
142 bne reg1_error_loopf
\r
144 bne reg1_error_loopf
\r
147 bne reg1_error_loopf
\r
149 bne reg1_error_loopf
\r
152 bne reg1_error_loopf
\r
154 bne reg1_error_loopf
\r
157 bne reg1_error_loopf
\r
159 bne reg1_error_loopf
\r
162 bne reg1_error_loopf
\r
164 bne reg1_error_loopf
\r
167 bne reg1_error_loopf
\r
169 bne reg1_error_loopf
\r
172 bne reg1_error_loopf
\r
174 bne reg1_error_loopf
\r
177 bne reg1_error_loopf
\r
179 bne reg1_error_loopf
\r
182 bne reg1_error_loopf
\r
184 bne reg1_error_loopf
\r
187 bne reg1_error_loopf
\r
189 bne reg1_error_loopf
\r
192 bne reg1_error_loopf
\r
194 bne reg1_error_loopf
\r
197 bne reg1_error_loopf
\r
199 bne reg1_error_loopf
\r
202 bne reg1_error_loopf
\r
204 bne reg1_error_loopf
\r
207 bne reg1_error_loopf
\r
209 bne reg1_error_loopf
\r
212 bne reg1_error_loopf
\r
214 bne reg1_error_loopf
\r
217 bne reg1_error_loopf
\r
219 bne reg1_error_loopf
\r
221 /* Restore the registers that were clobbered by the test. */
\r
224 /* VFP register test passed. Jump to the core register test. */
\r
228 /* If this line is hit then a VFP register value was found to be
\r
235 bne reg1_error_loop
\r
237 bne reg1_error_loop
\r
239 bne reg1_error_loop
\r
241 bne reg1_error_loop
\r
243 bne reg1_error_loop
\r
245 bne reg1_error_loop
\r
247 bne reg1_error_loop
\r
249 bne reg1_error_loop
\r
251 bne reg1_error_loop
\r
253 bne reg1_error_loop
\r
255 bne reg1_error_loop
\r
257 bne reg1_error_loop
\r
259 bne reg1_error_loop
\r
261 /* Everything passed, increment the loop counter. */
\r
263 ldr r0, =ulRegTest1LoopCounter
\r
273 /* If this line is hit then there was an error in a core register value.
\r
274 The loop ensures the loop counter stops incrementing. */
\r
278 /*-----------------------------------------------------------*/
\r
280 __asm vRegTest2Task( void )
\r
283 IMPORT ulRegTest2LoopCounter
\r
285 /* Set all the core registers to known values. */
\r
300 /* Set all the VFP to known values. */
\r
320 /* Check all the VFP registers still contain the values set above.
\r
321 First save registers that are clobbered by the test. */
\r
326 bne reg2_error_loopf
\r
328 bne reg2_error_loopf
\r
331 bne reg2_error_loopf
\r
333 bne reg2_error_loopf
\r
336 bne reg2_error_loopf
\r
338 bne reg2_error_loopf
\r
341 bne reg2_error_loopf
\r
343 bne reg2_error_loopf
\r
346 bne reg2_error_loopf
\r
348 bne reg2_error_loopf
\r
351 bne reg2_error_loopf
\r
353 bne reg2_error_loopf
\r
356 bne reg2_error_loopf
\r
358 bne reg2_error_loopf
\r
361 bne reg2_error_loopf
\r
363 bne reg2_error_loopf
\r
366 bne reg2_error_loopf
\r
368 bne reg2_error_loopf
\r
371 bne reg2_error_loopf
\r
373 bne reg2_error_loopf
\r
376 bne reg2_error_loopf
\r
378 bne reg2_error_loopf
\r
381 bne reg2_error_loopf
\r
383 bne reg2_error_loopf
\r
386 bne reg2_error_loopf
\r
388 bne reg2_error_loopf
\r
391 bne reg2_error_loopf
\r
393 bne reg2_error_loopf
\r
396 bne reg2_error_loopf
\r
398 bne reg2_error_loopf
\r
401 bne reg2_error_loopf
\r
403 bne reg2_error_loopf
\r
405 /* Restore the registers that were clobbered by the test. */
\r
408 /* VFP register test passed. Jump to the core register test. */
\r
412 /* If this line is hit then a VFP register value was found to be
\r
419 bne reg2_error_loop
\r
421 bne reg2_error_loop
\r
423 bne reg2_error_loop
\r
425 bne reg2_error_loop
\r
427 bne reg2_error_loop
\r
429 bne reg2_error_loop
\r
431 bne reg2_error_loop
\r
433 bne reg2_error_loop
\r
435 bne reg2_error_loop
\r
437 bne reg2_error_loop
\r
439 bne reg2_error_loop
\r
441 bne reg2_error_loop
\r
443 bne reg2_error_loop
\r
445 /* Increment the loop counter to indicate this test is still functioning
\r
448 ldr r0, =ulRegTest2LoopCounter
\r
458 /* If this line is hit then there was an error in a core register value.
\r
459 This loop ensures the loop counter variable stops incrementing. */
\r
463 /*-----------------------------------------------------------*/
\r
465 __asm vRegTestClearFlopRegistersToParameterValue( unsigned long ulValue )
\r
469 /* Clobber the auto saved registers. */
\r
480 /*-----------------------------------------------------------*/
\r
482 __asm ulRegTestCheckFlopRegistersContainParameterValue( unsigned long ulValue )
\r