]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/Common/Minimal/crhook.c
Ensure demo app files are using FreeRTOS V8 names - a few were missed previously.
[freertos] / FreeRTOS / Demo / Common / Minimal / crhook.c
index 3c11618c91942e6fdd190d8d2146e8100925c61b..1501276ee293461184a8d6cca188f48d8e718443 100644 (file)
@@ -115,7 +115,7 @@ posted to the 'hook' co-routines. */
 /*\r
  * The co-routine function itself.\r
  */\r
-static void prvHookCoRoutine( CoRoutineHandle_t xHandle, unsigned portBASE_TYPE uxIndex );\r
+static void prvHookCoRoutine( CoRoutineHandle_t xHandle, UBaseType_t uxIndex );\r
 \r
 \r
 /*\r
@@ -138,20 +138,20 @@ The hood function transmits (Tx's) on these queues.  One queue per
 static QueueHandle_t xHookTxQueues[ hookNUM_HOOK_CO_ROUTINES ];\r
 \r
 /* Set to true if an error is detected at any time. */\r
-static portBASE_TYPE xCoRoutineErrorDetected = pdFALSE;\r
+static BaseType_t xCoRoutineErrorDetected = pdFALSE;\r
 \r
 /*-----------------------------------------------------------*/\r
 \r
 void vStartHookCoRoutines( void )\r
 {\r
-unsigned portBASE_TYPE uxIndex, uxValueToPost = 0;\r
+UBaseType_t uxIndex, uxValueToPost = 0;\r
 \r
        for( uxIndex = 0; uxIndex < hookNUM_HOOK_CO_ROUTINES; uxIndex++ )\r
        {\r
                /* Create a queue to transmit to and receive from each 'hook' \r
                co-routine. */\r
-               xHookRxQueues[ uxIndex ] = xQueueCreate( hookHOOK_QUEUE_LENGTH, sizeof( unsigned portBASE_TYPE ) );\r
-               xHookTxQueues[ uxIndex ] = xQueueCreate( hookHOOK_QUEUE_LENGTH, sizeof( unsigned portBASE_TYPE ) );\r
+               xHookRxQueues[ uxIndex ] = xQueueCreate( hookHOOK_QUEUE_LENGTH, sizeof( UBaseType_t ) );\r
+               xHookTxQueues[ uxIndex ] = xQueueCreate( hookHOOK_QUEUE_LENGTH, sizeof( UBaseType_t ) );\r
 \r
                /* To start things off the tick hook function expects the queue it \r
                uses to receive data to contain a value.  */\r
@@ -163,11 +163,11 @@ unsigned portBASE_TYPE uxIndex, uxValueToPost = 0;
 }\r
 /*-----------------------------------------------------------*/\r
 \r
-static unsigned portBASE_TYPE uxCallCounter = 0, uxNumberToPost = 0;\r
+static UBaseType_t uxCallCounter = 0, uxNumberToPost = 0;\r
 void vApplicationTickHook( void )\r
 {\r
-unsigned portBASE_TYPE uxReceivedNumber;\r
-signed portBASE_TYPE xIndex, xCoRoutineWoken;\r
+UBaseType_t uxReceivedNumber;\r
+BaseType_t xIndex, xCoRoutineWoken;\r
 \r
        /* Is it time to talk to the 'hook' co-routines again? */\r
        uxCallCounter++;\r
@@ -217,10 +217,10 @@ signed portBASE_TYPE xIndex, xCoRoutineWoken;
 }\r
 /*-----------------------------------------------------------*/\r
 \r
-static void prvHookCoRoutine( CoRoutineHandle_t xHandle, unsigned portBASE_TYPE uxIndex )\r
+static void prvHookCoRoutine( CoRoutineHandle_t xHandle, UBaseType_t uxIndex )\r
 {\r
-static unsigned portBASE_TYPE uxReceivedValue[ hookNUM_HOOK_CO_ROUTINES ];\r
-portBASE_TYPE xResult;\r
+static UBaseType_t uxReceivedValue[ hookNUM_HOOK_CO_ROUTINES ];\r
+BaseType_t xResult;\r
 \r
        /* Each co-routine MUST start with a call to crSTART(); */\r
        crSTART( xHandle );\r
@@ -254,7 +254,7 @@ portBASE_TYPE xResult;
 }\r
 /*-----------------------------------------------------------*/\r
 \r
-portBASE_TYPE xAreHookCoRoutinesStillRunning( void )\r
+BaseType_t xAreHookCoRoutinesStillRunning( void )\r
 {\r
        if( xCoRoutineErrorDetected )\r
        {\r