]> git.sur5r.net Git - freertos/commitdiff
Allow the register test asm code in the CCS4 MSP430X demo to use any data model.
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Tue, 4 Jan 2011 14:36:35 +0000 (14:36 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Tue, 4 Jan 2011 14:36:35 +0000 (14:36 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1221 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Demo/MSP430X_MSP430F5438_CCS4/Demo_Source/RegTest.asm

index b1dbc87f3f1ed43e88ae0aedacbb1f02b0d08654..e0e4197deecf1139b5c1c0854d4841fd048165c5 100644 (file)
 \r
        .include data_model.h\r
 \r
+       .if $DEFINED( __LARGE_DATA_MODEL__ )\r
+               .define "cmp.a", cmp_x\r
+               .define "incx.w", inc_x\r
+       .else\r
+               .define "cmp.w", cmp_x\r
+               .define "inc.w", inc_x\r
+       .endif\r
+\r
 \r
        .global usRegTest1Counter\r
        .global usRegTest2Counter\r
@@ -113,7 +121,7 @@ prvRegTest1Loop:
        \r
        ; This task is still running without jumping to vRegTest1Error, so increment\r
        ; the loop counter so the check task knows the task is running error free.\r
-       incx.w  &usRegTest1Counter\r
+       inc_x   &usRegTest1Counter\r
        \r
        ; Loop again, performing the same tests.\r
        jmp             prvRegTest1Loop\r
@@ -173,7 +181,7 @@ prvRegTest2Loop:
        ; Also perform a manual yield, just to increase the scope of the test.\r
        call_x  #vPortYield\r
        \r
-       incx.w  &usRegTest2Counter\r
+       inc_x   &usRegTest2Counter\r
        jmp             prvRegTest2Loop\r
        nop\r
 \r