]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/PPC405_FPU_Xilinx_Virtex4_GCC/RTOSDemo/flop/flop-reg-test.c
Update the demo directory to use the version 8 type naming conventions.
[freertos] / FreeRTOS / Demo / PPC405_FPU_Xilinx_Virtex4_GCC / RTOSDemo / flop / flop-reg-test.c
index c2b708e19ba2e1a49dc0243955520cd1a28b2765..20f3fe9392b670336ffdc85594fa2a1662bf4d3f 100644 (file)
@@ -1,5 +1,6 @@
 /*\r
-    FreeRTOS V7.5.1 - Copyright (C) 2013 Real Time Engineers Ltd.\r
+    FreeRTOS V8.0.0:rc1 - Copyright (C) 2014 Real Time Engineers Ltd. \r
+    All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
 \r
@@ -124,17 +125,17 @@ static void vFlopTest2( void *pvParameters );
 \r
 /* Buffers into which the flop registers will be saved.  There is a buffer for \r
 both tasks. */\r
-static volatile unsigned portLONG ulFlopRegisters[ flopNUMBER_OF_TASKS ][ portNO_FLOP_REGISTERS_TO_SAVE ];\r
+static volatile unsigned long ulFlopRegisters[ flopNUMBER_OF_TASKS ][ portNO_FLOP_REGISTERS_TO_SAVE ];\r
 \r
 /* Variables that are incremented by the tasks to indicate that they are still\r
 running. */\r
-static volatile unsigned portLONG ulFlop1CycleCount = 0, ulFlop2CycleCount = 0;\r
+static volatile unsigned long ulFlop1CycleCount = 0, ulFlop2CycleCount = 0;\r
 \r
 /*-----------------------------------------------------------*/\r
 \r
 void vStartFlopRegTests( void )\r
 {\r
-xTaskHandle xTaskJustCreated;\r
+TaskHandle_t xTaskJustCreated;\r
 unsigned portBASE_TYPE x, y, z = flopSTART_VALUE;\r
 \r
        /* Fill the arrays into which the flop registers are to be saved with \r
@@ -154,7 +155,7 @@ unsigned portBASE_TYPE x, y, z = flopSTART_VALUE;
 \r
 \r
        /* Create the first task. */\r
-       xTaskCreate( vFlopTest1, ( signed portCHAR * ) "flop1", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, &xTaskJustCreated );\r
+       xTaskCreate( vFlopTest1, "flop1", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, &xTaskJustCreated );\r
 \r
        /* The task     tag value is a value that can be associated with a task, but \r
        is not used by the scheduler itself.  Its use is down to the application so\r
@@ -164,7 +165,7 @@ unsigned portBASE_TYPE x, y, z = flopSTART_VALUE;
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( ulFlopRegisters[ 0 ][ 0 ] ) );\r
 \r
        /* Do the same for the second task. */\r
-       xTaskCreate( vFlopTest2, ( signed portCHAR * ) "flop2", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, &xTaskJustCreated );\r
+       xTaskCreate( vFlopTest2, "flop2", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, &xTaskJustCreated );\r
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( ulFlopRegisters[ 1 ][ 0 ] ) );\r
 }\r
 /*-----------------------------------------------------------*/\r
@@ -218,7 +219,7 @@ portBASE_TYPE xAreFlopRegisterTestsStillRunning( void )
 {\r
 portBASE_TYPE xReturn = pdPASS;\r
 unsigned portBASE_TYPE x, y, z = flopSTART_VALUE;\r
-static unsigned portLONG ulLastFlop1CycleCount = 0, ulLastFlop2CycleCount = 0;\r
+static unsigned long ulLastFlop1CycleCount = 0, ulLastFlop2CycleCount = 0;\r
 \r
        /* Called from the 'check' task.\r
        \r