3 ; FreeRTOS V8.2.1 - Copyright (C) 2015 Real Time Engineers Ltd.
\r
6 ; ***************************************************************************
\r
8 ; * FreeRTOS tutorial books are available in pdf and paperback. *
\r
9 ; * Complete, revised, and edited pdf reference manuals are also *
\r
12 ; * Purchasing FreeRTOS documentation will not only help you, by *
\r
13 ; * ensuring you get running as quickly as possible and with an *
\r
14 ; * in-depth knowledge of how to use FreeRTOS, it will also help *
\r
15 ; * the FreeRTOS project to continue with its mission of providing *
\r
16 ; * professional grade, cross platform, de facto standard solutions *
\r
17 ; * for microcontrollers - completely free of charge! *
\r
19 ; * >>> See http://www.FreeRTOS.org/Documentation for details. <<< *
\r
21 ; * Thank you for using FreeRTOS, and thank you for your support! *
\r
23 ; ***************************************************************************
\r
26 ; This file is part of the FreeRTOS distribution.
\r
28 ; FreeRTOS is free software; you can redistribute it and/or modify it under
\r
29 ; the terms of the GNU General Public License (version 2) as published by the
\r
30 ; Free Software Foundation AND MODIFIED BY the FreeRTOS exception.
\r
31 ; >>>NOTE<<< The modification to the GPL is included to allow you to
\r
32 ; distribute a combined work that includes FreeRTOS without being obliged to
\r
33 ; provide the source code for proprietary components outside of the FreeRTOS
\r
34 ; kernel. FreeRTOS is distributed in the hope that it will be useful, but
\r
35 ; WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
\r
36 ; or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
\r
37 ; more details. You should have received a copy of the GNU General Public
\r
38 ; License and the FreeRTOS license exception along with FreeRTOS; if not it
\r
39 ; can be viewed here: http://www.freertos.org/a00114.html and also obtained
\r
40 ; by writing to Richard Barry, contact details for whom are available on the
\r
41 ; FreeRTOS WEB site.
\r
43 ; 1 tab == 4 spaces!
\r
45 ; http://www.FreeRTOS.org - Documentation, latest information, license and
\r
48 ; http://www.SafeRTOS.com - A version that is certified for use in safety
\r
51 ; http://www.OpenRTOS.com - Commercial support, development, porting,
\r
52 ; licensing and training services.
\r
55 ; * The definition of the "register test" tasks, as described at the top of
\r
58 .include data_model.h
\r
60 .if $DEFINED( __LARGE_DATA_MODEL__ )
\r
61 .define "cmp.a", cmp_x
\r
62 .define "incx.w", inc_x
\r
64 .define "cmp.w", cmp_x
\r
65 .define "inc.w", inc_x
\r
69 .global usRegTest1LoopCounter
\r
70 .global usRegTest2LoopCounter
\r
73 .def vRegTest1Implementation
\r
74 .def vRegTest2Implementation
\r
79 vRegTest1Implementation: .asmfunc
\r
81 ; Fill each general purpose register with a known value.
\r
97 ; Test each general purpose register to check that it still contains the
\r
98 ; expected known value, jumping to vRegTest1Error if any register contains
\r
99 ; an unexpected value.
\r
125 ; This task is still running without jumping to vRegTest1Error, so increment
\r
126 ; the loop counter so the check task knows the task is running error free.
\r
127 inc_x &usRegTest1LoopCounter
\r
129 ; Loop again, performing the same tests.
\r
130 jmp prvRegTest1Loop
\r
137 ; -----------------------------------------------------------
\r
139 ; See the comments in vRegTest1Implementation. This task is the same, it just uses
\r
140 ; different values in its registers.
\r
142 vRegTest2Implementation: .asmfunc
\r
184 ; Also perform a manual yield, just to increase the scope of the test.
\r
187 inc_x &usRegTest2LoopCounter
\r
188 jmp prvRegTest2Loop
\r
196 ; /*-----------------------------------------------------------
\r