mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-22 14:31:59 -04:00
Allow the register test asm code in the CCS4 MSP430X demo to use any data model.
This commit is contained in:
parent
20ddcce965
commit
50cc4026db
|
@ -55,6 +55,14 @@
|
||||||
|
|
||||||
.include data_model.h
|
.include data_model.h
|
||||||
|
|
||||||
|
.if $DEFINED( __LARGE_DATA_MODEL__ )
|
||||||
|
.define "cmp.a", cmp_x
|
||||||
|
.define "incx.w", inc_x
|
||||||
|
.else
|
||||||
|
.define "cmp.w", cmp_x
|
||||||
|
.define "inc.w", inc_x
|
||||||
|
.endif
|
||||||
|
|
||||||
|
|
||||||
.global usRegTest1Counter
|
.global usRegTest1Counter
|
||||||
.global usRegTest2Counter
|
.global usRegTest2Counter
|
||||||
|
@ -113,7 +121,7 @@ prvRegTest1Loop:
|
||||||
|
|
||||||
; This task is still running without jumping to vRegTest1Error, so increment
|
; This task is still running without jumping to vRegTest1Error, so increment
|
||||||
; the loop counter so the check task knows the task is running error free.
|
; the loop counter so the check task knows the task is running error free.
|
||||||
incx.w &usRegTest1Counter
|
inc_x &usRegTest1Counter
|
||||||
|
|
||||||
; Loop again, performing the same tests.
|
; Loop again, performing the same tests.
|
||||||
jmp prvRegTest1Loop
|
jmp prvRegTest1Loop
|
||||||
|
@ -173,7 +181,7 @@ prvRegTest2Loop:
|
||||||
; Also perform a manual yield, just to increase the scope of the test.
|
; Also perform a manual yield, just to increase the scope of the test.
|
||||||
call_x #vPortYield
|
call_x #vPortYield
|
||||||
|
|
||||||
incx.w &usRegTest2Counter
|
inc_x &usRegTest2Counter
|
||||||
jmp prvRegTest2Loop
|
jmp prvRegTest2Loop
|
||||||
nop
|
nop
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue