/*\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
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
}\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
}\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
}\r
/*-----------------------------------------------------------*/\r
\r
-portBASE_TYPE xAreHookCoRoutinesStillRunning( void )\r
+BaseType_t xAreHookCoRoutinesStillRunning( void )\r
{\r
if( xCoRoutineErrorDetected )\r
{\r