]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Source/include/croutine.h
Prepare for V9.0.0 release:
[freertos] / FreeRTOS / Source / include / croutine.h
index 361bd1ea1a496d61a1df9088422c5df44774bdb8..de66545366a9e1d42cf45a6c774b41069599315f 100644 (file)
@@ -1,75 +1,70 @@
 /*\r
-    FreeRTOS V7.4.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
-\r
-    FEATURES AND PORTS ARE ADDED TO FREERTOS ALL THE TIME.  PLEASE VISIT\r
-    http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
-\r
-    ***************************************************************************\r
-     *                                                                       *\r
-     *    FreeRTOS tutorial books are available in pdf and paperback.        *\r
-     *    Complete, revised, and edited pdf reference manuals are also       *\r
-     *    available.                                                         *\r
-     *                                                                       *\r
-     *    Purchasing FreeRTOS documentation will not only help you, by       *\r
-     *    ensuring you get running as quickly as possible and with an        *\r
-     *    in-depth knowledge of how to use FreeRTOS, it will also help       *\r
-     *    the FreeRTOS project to continue with its mission of providing     *\r
-     *    professional grade, cross platform, de facto standard solutions    *\r
-     *    for microcontrollers - completely free of charge!                  *\r
-     *                                                                       *\r
-     *    >>> See http://www.FreeRTOS.org/Documentation for details. <<<     *\r
-     *                                                                       *\r
-     *    Thank you for using FreeRTOS, and thank you for your support!      *\r
-     *                                                                       *\r
-    ***************************************************************************\r
+    FreeRTOS V9.0.0 - Copyright (C) 2016 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
     This file is part of the FreeRTOS distribution.\r
 \r
     FreeRTOS is free software; you can redistribute it and/or modify it under\r
     the terms of the GNU General Public License (version 2) as published by the\r
-    Free Software Foundation AND MODIFIED BY the FreeRTOS exception.\r
+    Free Software Foundation >>>> AND MODIFIED BY <<<< the FreeRTOS exception.\r
 \r
-    >>>>>>NOTE<<<<<< The modification to the GPL is included to allow you to\r
-    distribute a combined work that includes FreeRTOS without being obliged to\r
-    provide the source code for proprietary components outside of the FreeRTOS\r
-    kernel.\r
+    ***************************************************************************\r
+    >>!   NOTE: The modification to the GPL is included to allow you to     !<<\r
+    >>!   distribute a combined work that includes FreeRTOS without being   !<<\r
+    >>!   obliged to provide the source code for proprietary components     !<<\r
+    >>!   outside of the FreeRTOS kernel.                                   !<<\r
+    ***************************************************************************\r
 \r
     FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY\r
     WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS\r
-    FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more\r
-    details. You should have received a copy of the GNU General Public License\r
-    and the FreeRTOS license exception along with FreeRTOS; if not itcan be\r
-    viewed here: http://www.freertos.org/a00114.html and also obtained by\r
-    writing to Real Time Engineers Ltd., contact details for whom are available\r
-    on the FreeRTOS WEB site.\r
-\r
-    1 tab == 4 spaces!\r
+    FOR A PARTICULAR PURPOSE.  Full license text is available on the following\r
+    link: http://www.freertos.org/a00114.html\r
 \r
     ***************************************************************************\r
      *                                                                       *\r
-     *    Having a problem?  Start by reading the FAQ "My application does   *\r
-     *    not run, what could be wrong?"                                     *\r
+     *    FreeRTOS provides completely free yet professionally developed,    *\r
+     *    robust, strictly quality controlled, supported, and cross          *\r
+     *    platform software that is more than just the market leader, it     *\r
+     *    is the industry's de facto standard.                               *\r
      *                                                                       *\r
-     *    http://www.FreeRTOS.org/FAQHelp.html                               *\r
+     *    Help yourself get started quickly while simultaneously helping     *\r
+     *    to support the FreeRTOS project by purchasing a FreeRTOS           *\r
+     *    tutorial book, reference manual, or both:                          *\r
+     *    http://www.FreeRTOS.org/Documentation                              *\r
      *                                                                       *\r
     ***************************************************************************\r
 \r
+    http://www.FreeRTOS.org/FAQHelp.html - Having a problem?  Start by reading\r
+    the FAQ page "My application does not run, what could be wrong?".  Have you\r
+    defined configASSERT()?\r
 \r
-    http://www.FreeRTOS.org - Documentation, books, training, latest versions, \r
-    license and Real Time Engineers Ltd. contact details.\r
+    http://www.FreeRTOS.org/support - In return for receiving this top quality\r
+    embedded software for free we request you assist our global community by\r
+    participating in the support forum.\r
+\r
+    http://www.FreeRTOS.org/training - Investing in training allows your team to\r
+    be as productive as possible as early as possible.  Now you can receive\r
+    FreeRTOS training directly from Richard Barry, CEO of Real Time Engineers\r
+    Ltd, and the world's leading authority on the world's leading RTOS.\r
 \r
     http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products,\r
-    including FreeRTOS+Trace - an indispensable productivity tool, and our new\r
-    fully thread aware and reentrant UDP/IP stack.\r
-\r
-    http://www.OpenRTOS.com - Real Time Engineers ltd license FreeRTOS to High \r
-    Integrity Systems, who sell the code with commercial support, \r
-    indemnification and middleware, under the OpenRTOS brand.\r
-    \r
-    http://www.SafeRTOS.com - High Integrity Systems also provide a safety \r
-    engineered and independently SIL3 certified version for use in safety and \r
+    including FreeRTOS+Trace - an indispensable productivity tool, a DOS\r
+    compatible FAT file system, and our tiny thread aware UDP/IP stack.\r
+\r
+    http://www.FreeRTOS.org/labs - Where new FreeRTOS products go to incubate.\r
+    Come and try FreeRTOS+TCP, our new open source TCP/IP stack for FreeRTOS.\r
+\r
+    http://www.OpenRTOS.com - Real Time Engineers ltd. license FreeRTOS to High\r
+    Integrity Systems ltd. to sell under the OpenRTOS brand.  Low cost OpenRTOS\r
+    licenses offer ticketed support, indemnification and commercial middleware.\r
+\r
+    http://www.SafeRTOS.com - High Integrity Systems also provide a safety\r
+    engineered and independently SIL3 certified version for use in safety and\r
     mission critical applications that require provable dependability.\r
+\r
+    1 tab == 4 spaces!\r
 */\r
 \r
 #ifndef CO_ROUTINE_H\r
@@ -88,28 +83,28 @@ extern "C" {
 /* Used to hide the implementation of the co-routine control block.  The\r
 control block structure however has to be included in the header due to\r
 the macro implementation of the co-routine functionality. */\r
-typedef void * xCoRoutineHandle;\r
+typedef void * CoRoutineHandle_t;\r
 \r
 /* Defines the prototype to which co-routine functions must conform. */\r
-typedef void (*crCOROUTINE_CODE)( xCoRoutineHandle, unsigned portBASE_TYPE );\r
+typedef void (*crCOROUTINE_CODE)( CoRoutineHandle_t, UBaseType_t );\r
 \r
 typedef struct corCoRoutineControlBlock\r
 {\r
-       crCOROUTINE_CODE                pxCoRoutineFunction;\r
-       xListItem                               xGenericListItem;       /*< List item used to place the CRCB in ready and blocked queues. */\r
-       xListItem                               xEventListItem;         /*< List item used to place the CRCB in event lists. */\r
-       unsigned portBASE_TYPE  uxPriority;                     /*< The priority of the co-routine in relation to other co-routines. */\r
-       unsigned portBASE_TYPE  uxIndex;                        /*< Used to distinguish between co-routines when multiple co-routines use the same co-routine function. */\r
-       unsigned short          uxState;                        /*< Used internally by the co-routine implementation. */\r
-} corCRCB; /* Co-routine control block.  Note must be identical in size down to uxPriority with tskTCB. */\r
+       crCOROUTINE_CODE        pxCoRoutineFunction;\r
+       ListItem_t                      xGenericListItem;       /*< List item used to place the CRCB in ready and blocked queues. */\r
+       ListItem_t                      xEventListItem;         /*< List item used to place the CRCB in event lists. */\r
+       UBaseType_t             uxPriority;                     /*< The priority of the co-routine in relation to other co-routines. */\r
+       UBaseType_t             uxIndex;                        /*< Used to distinguish between co-routines when multiple co-routines use the same co-routine function. */\r
+       uint16_t                        uxState;                        /*< Used internally by the co-routine implementation. */\r
+} CRCB_t; /* Co-routine control block.  Note must be identical in size down to uxPriority with TCB_t. */\r
 \r
 /**\r
  * croutine. h\r
  *<pre>\r
portBASE_TYPE xCoRoutineCreate(\r
BaseType_t xCoRoutineCreate(\r
                                  crCOROUTINE_CODE pxCoRoutineCode,\r
-                                 unsigned portBASE_TYPE uxPriority,\r
-                                 unsigned portBASE_TYPE uxIndex\r
+                                 UBaseType_t uxPriority,\r
+                                 UBaseType_t uxIndex\r
                                );</pre>\r
  *\r
  * Create a new co-routine and add it to the list of co-routines that are\r
@@ -132,12 +127,12 @@ typedef struct corCoRoutineControlBlock
  * Example usage:\r
    <pre>\r
  // Co-routine to be created.\r
- void vFlashCoRoutine( xCoRoutineHandle xHandle, unsigned portBASE_TYPE uxIndex )\r
+ void vFlashCoRoutine( CoRoutineHandle_t xHandle, UBaseType_t uxIndex )\r
  {\r
  // Variables in co-routines must be declared static if they must maintain value across a blocking call.\r
  // This may not be necessary for const variables.\r
  static const char cLedToFlash[ 2 ] = { 5, 6 };\r
- static const portTickType uxFlashRates[ 2 ] = { 200, 400 };\r
+ static const TickType_t uxFlashRates[ 2 ] = { 200, 400 };\r
 \r
      // Must start every co-routine with a call to crSTART();\r
      crSTART( xHandle );\r
@@ -147,7 +142,7 @@ typedef struct corCoRoutineControlBlock
          // This co-routine just delays for a fixed period, then toggles\r
          // an LED.  Two co-routines are created using this function, so\r
          // the uxIndex parameter is used to tell the co-routine which\r
-         // LED to flash and how long to delay.  This assumes xQueue has\r
+         // LED to flash and how int32_t to delay.  This assumes xQueue has\r
          // already been created.\r
          vParTestToggleLED( cLedToFlash[ uxIndex ] );\r
          crDELAY( xHandle, uxFlashRates[ uxIndex ] );\r
@@ -160,9 +155,9 @@ typedef struct corCoRoutineControlBlock
  // Function that creates two co-routines.\r
  void vOtherFunction( void )\r
  {\r
- unsigned char ucParameterToPass;\r
xTaskHandle xHandle;\r
-               \r
+ uint8_t ucParameterToPass;\r
TaskHandle_t xHandle;\r
+\r
      // Create two co-routines at priority 0.  The first is given index 0\r
      // so (from the code above) toggles LED 5 every 200 ticks.  The second\r
      // is given index 1 so toggles LED 6 every 400 ticks.\r
@@ -175,7 +170,7 @@ typedef struct corCoRoutineControlBlock
  * \defgroup xCoRoutineCreate xCoRoutineCreate\r
  * \ingroup Tasks\r
  */\r
-signed portBASE_TYPE xCoRoutineCreate( crCOROUTINE_CODE pxCoRoutineCode, unsigned portBASE_TYPE uxPriority, unsigned portBASE_TYPE uxIndex );\r
+BaseType_t xCoRoutineCreate( crCOROUTINE_CODE pxCoRoutineCode, UBaseType_t uxPriority, UBaseType_t uxIndex );\r
 \r
 \r
 /**\r
@@ -222,17 +217,17 @@ void vCoRoutineSchedule( void );
 /**\r
  * croutine. h\r
  * <pre>\r
- crSTART( xCoRoutineHandle xHandle );</pre>\r
+ crSTART( CoRoutineHandle_t xHandle );</pre>\r
  *\r
  * This macro MUST always be called at the start of a co-routine function.\r
  *\r
  * Example usage:\r
    <pre>\r
  // Co-routine to be created.\r
- void vACoRoutine( xCoRoutineHandle xHandle, unsigned portBASE_TYPE uxIndex )\r
+ void vACoRoutine( CoRoutineHandle_t xHandle, UBaseType_t uxIndex )\r
  {\r
  // Variables in co-routines must be declared static if they must maintain value across a blocking call.\r
- static long ulAVariable;\r
+ static int32_t ulAVariable;\r
 \r
      // Must start every co-routine with a call to crSTART();\r
      crSTART( xHandle );\r
@@ -248,7 +243,7 @@ void vCoRoutineSchedule( void );
  * \defgroup crSTART crSTART\r
  * \ingroup Tasks\r
  */\r
-#define crSTART( pxCRCB ) switch( ( ( corCRCB * )( pxCRCB ) )->uxState ) { case 0:\r
+#define crSTART( pxCRCB ) switch( ( ( CRCB_t * )( pxCRCB ) )->uxState ) { case 0:\r
 \r
 /**\r
  * croutine. h\r
@@ -260,10 +255,10 @@ void vCoRoutineSchedule( void );
  * Example usage:\r
    <pre>\r
  // Co-routine to be created.\r
- void vACoRoutine( xCoRoutineHandle xHandle, unsigned portBASE_TYPE uxIndex )\r
+ void vACoRoutine( CoRoutineHandle_t xHandle, UBaseType_t uxIndex )\r
  {\r
  // Variables in co-routines must be declared static if they must maintain value across a blocking call.\r
- static long ulAVariable;\r
+ static int32_t ulAVariable;\r
 \r
      // Must start every co-routine with a call to crSTART();\r
      crSTART( xHandle );\r
@@ -285,13 +280,13 @@ void vCoRoutineSchedule( void );
  * These macros are intended for internal use by the co-routine implementation\r
  * only.  The macros should not be used directly by application writers.\r
  */\r
-#define crSET_STATE0( xHandle ) ( ( corCRCB * )( xHandle ) )->uxState = (__LINE__ * 2); return; case (__LINE__ * 2):\r
-#define crSET_STATE1( xHandle ) ( ( corCRCB * )( xHandle ) )->uxState = ((__LINE__ * 2)+1); return; case ((__LINE__ * 2)+1):\r
+#define crSET_STATE0( xHandle ) ( ( CRCB_t * )( xHandle ) )->uxState = (__LINE__ * 2); return; case (__LINE__ * 2):\r
+#define crSET_STATE1( xHandle ) ( ( CRCB_t * )( xHandle ) )->uxState = ((__LINE__ * 2)+1); return; case ((__LINE__ * 2)+1):\r
 \r
 /**\r
  * croutine. h\r
  *<pre>\r
- crDELAY( xCoRoutineHandle xHandle, portTickType xTicksToDelay );</pre>\r
+ crDELAY( CoRoutineHandle_t xHandle, TickType_t xTicksToDelay );</pre>\r
  *\r
  * Delay a co-routine for a fixed period of time.\r
  *\r
@@ -304,18 +299,18 @@ void vCoRoutineSchedule( void );
  *\r
  * @param xTickToDelay The number of ticks that the co-routine should delay\r
  * for.  The actual amount of time this equates to is defined by\r
- * configTICK_RATE_HZ (set in FreeRTOSConfig.h).  The constant portTICK_RATE_MS\r
+ * configTICK_RATE_HZ (set in FreeRTOSConfig.h).  The constant portTICK_PERIOD_MS\r
  * can be used to convert ticks to milliseconds.\r
  *\r
  * Example usage:\r
    <pre>\r
  // Co-routine to be created.\r
- void vACoRoutine( xCoRoutineHandle xHandle, unsigned portBASE_TYPE uxIndex )\r
+ void vACoRoutine( CoRoutineHandle_t xHandle, UBaseType_t uxIndex )\r
  {\r
  // Variables in co-routines must be declared static if they must maintain value across a blocking call.\r
  // This may not be necessary for const variables.\r
  // We are to delay for 200ms.\r
- static const xTickType xDelayTime = 200 / portTICK_RATE_MS;\r
+ static const xTickType xDelayTime = 200 / portTICK_PERIOD_MS;\r
 \r
      // Must start every co-routine with a call to crSTART();\r
      crSTART( xHandle );\r
@@ -344,11 +339,11 @@ void vCoRoutineSchedule( void );
 /**\r
  * <pre>\r
  crQUEUE_SEND(\r
-                  xCoRoutineHandle xHandle,\r
-                  xQueueHandle pxQueue,\r
+                  CoRoutineHandle_t xHandle,\r
+                  QueueHandle_t pxQueue,\r
                   void *pvItemToQueue,\r
-                  portTickType xTicksToWait,\r
-                  portBASE_TYPE *pxResult\r
+                  TickType_t xTicksToWait,\r
+                  BaseType_t *pxResult\r
              )</pre>\r
  *\r
  * The macro's crQUEUE_SEND() and crQUEUE_RECEIVE() are the co-routine\r
@@ -381,7 +376,7 @@ void vCoRoutineSchedule( void );
  * to wait for space to become available on the queue, should space not be\r
  * available immediately. The actual amount of time this equates to is defined\r
  * by configTICK_RATE_HZ (set in FreeRTOSConfig.h).  The constant\r
- * portTICK_RATE_MS can be used to convert ticks to milliseconds (see example\r
+ * portTICK_PERIOD_MS can be used to convert ticks to milliseconds (see example\r
  * below).\r
  *\r
  * @param pxResult The variable pointed to by pxResult will be set to pdPASS if\r
@@ -392,11 +387,11 @@ void vCoRoutineSchedule( void );
    <pre>\r
  // Co-routine function that blocks for a fixed period then posts a number onto\r
  // a queue.\r
- static void prvCoRoutineFlashTask( xCoRoutineHandle xHandle, unsigned portBASE_TYPE uxIndex )\r
+ static void prvCoRoutineFlashTask( CoRoutineHandle_t xHandle, UBaseType_t uxIndex )\r
  {\r
  // Variables in co-routines must be declared static if they must maintain value across a blocking call.\r
- static portBASE_TYPE xNumberToPost = 0;\r
- static portBASE_TYPE xResult;\r
+ static BaseType_t xNumberToPost = 0;\r
+ static BaseType_t xResult;\r
 \r
     // Co-routines must begin with a call to crSTART().\r
     crSTART( xHandle );\r
@@ -443,11 +438,11 @@ void vCoRoutineSchedule( void );
  * croutine. h\r
  * <pre>\r
   crQUEUE_RECEIVE(\r
-                     xCoRoutineHandle xHandle,\r
-                     xQueueHandle pxQueue,\r
+                     CoRoutineHandle_t xHandle,\r
+                     QueueHandle_t pxQueue,\r
                      void *pvBuffer,\r
-                     portTickType xTicksToWait,\r
-                     portBASE_TYPE *pxResult\r
+                     TickType_t xTicksToWait,\r
+                     BaseType_t *pxResult\r
                  )</pre>\r
  *\r
  * The macro's crQUEUE_SEND() and crQUEUE_RECEIVE() are the co-routine\r
@@ -479,7 +474,7 @@ void vCoRoutineSchedule( void );
  * to wait for data to become available from the queue, should data not be\r
  * available immediately. The actual amount of time this equates to is defined\r
  * by configTICK_RATE_HZ (set in FreeRTOSConfig.h).  The constant\r
- * portTICK_RATE_MS can be used to convert ticks to milliseconds (see the\r
+ * portTICK_PERIOD_MS can be used to convert ticks to milliseconds (see the\r
  * crQUEUE_SEND example).\r
  *\r
  * @param pxResult The variable pointed to by pxResult will be set to pdPASS if\r
@@ -490,11 +485,11 @@ void vCoRoutineSchedule( void );
  <pre>\r
  // A co-routine receives the number of an LED to flash from a queue.  It\r
  // blocks on the queue until the number is received.\r
- static void prvCoRoutineFlashWorkTask( xCoRoutineHandle xHandle, unsigned portBASE_TYPE uxIndex )\r
+ static void prvCoRoutineFlashWorkTask( CoRoutineHandle_t xHandle, UBaseType_t uxIndex )\r
  {\r
  // Variables in co-routines must be declared static if they must maintain value across a blocking call.\r
- static portBASE_TYPE xResult;\r
- static unsigned portBASE_TYPE uxLEDToFlash;\r
+ static BaseType_t xResult;\r
+ static UBaseType_t uxLEDToFlash;\r
 \r
     // All co-routines must start with a call to crSTART().\r
     crSTART( xHandle );\r
@@ -535,9 +530,9 @@ void vCoRoutineSchedule( void );
  * croutine. h\r
  * <pre>\r
   crQUEUE_SEND_FROM_ISR(\r
-                            xQueueHandle pxQueue,\r
+                            QueueHandle_t pxQueue,\r
                             void *pvItemToQueue,\r
-                            portBASE_TYPE xCoRoutinePreviouslyWoken\r
+                            BaseType_t xCoRoutinePreviouslyWoken\r
                        )</pre>\r
  *\r
  * The macro's crQUEUE_SEND_FROM_ISR() and crQUEUE_RECEIVE_FROM_ISR() are the\r
@@ -575,10 +570,10 @@ void vCoRoutineSchedule( void );
  * Example usage:\r
  <pre>\r
  // A co-routine that blocks on a queue waiting for characters to be received.\r
- static void vReceivingCoRoutine( xCoRoutineHandle xHandle, unsigned portBASE_TYPE uxIndex )\r
+ static void vReceivingCoRoutine( CoRoutineHandle_t xHandle, UBaseType_t uxIndex )\r
  {\r
  char cRxedChar;\r
portBASE_TYPE xResult;\r
BaseType_t xResult;\r
 \r
      // All co-routines must start with a call to crSTART().\r
      crSTART( xHandle );\r
@@ -605,7 +600,7 @@ void vCoRoutineSchedule( void );
  void vUART_ISR( void )\r
  {\r
  char cRxedChar;\r
portBASE_TYPE xCRWokenByPost = pdFALSE;\r
BaseType_t xCRWokenByPost = pdFALSE;\r
 \r
      // We loop around reading characters until there are none left in the UART.\r
      while( UART_RX_REG_NOT_EMPTY() )\r
@@ -632,9 +627,9 @@ void vCoRoutineSchedule( void );
  * croutine. h\r
  * <pre>\r
   crQUEUE_SEND_FROM_ISR(\r
-                            xQueueHandle pxQueue,\r
+                            QueueHandle_t pxQueue,\r
                             void *pvBuffer,\r
-                            portBASE_TYPE * pxCoRoutineWoken\r
+                            BaseType_t * pxCoRoutineWoken\r
                        )</pre>\r
  *\r
  * The macro's crQUEUE_SEND_FROM_ISR() and crQUEUE_RECEIVE_FROM_ISR() are the\r
@@ -673,12 +668,12 @@ void vCoRoutineSchedule( void );
  <pre>\r
  // A co-routine that posts a character to a queue then blocks for a fixed\r
  // period.  The character is incremented each time.\r
- static void vSendingCoRoutine( xCoRoutineHandle xHandle, unsigned portBASE_TYPE uxIndex )\r
+ static void vSendingCoRoutine( CoRoutineHandle_t xHandle, UBaseType_t uxIndex )\r
  {\r
  // cChar holds its value while this co-routine is blocked and must therefore\r
  // be declared static.\r
  static char cCharToTx = 'a';\r
portBASE_TYPE xResult;\r
BaseType_t xResult;\r
 \r
      // All co-routines must start with a call to crSTART().\r
      crSTART( xHandle );\r
@@ -721,7 +716,7 @@ void vCoRoutineSchedule( void );
  void vUART_ISR( void )\r
  {\r
  char cCharToTx;\r
portBASE_TYPE xCRWokenByPost = pdFALSE;\r
BaseType_t xCRWokenByPost = pdFALSE;\r
 \r
      while( UART_TX_REG_EMPTY() )\r
      {\r
@@ -749,7 +744,7 @@ void vCoRoutineSchedule( void );
  * Removes the current co-routine from its ready list and places it in the\r
  * appropriate delayed list.\r
  */\r
-void vCoRoutineAddToDelayedList( portTickType xTicksToDelay, xList *pxEventList );\r
+void vCoRoutineAddToDelayedList( TickType_t xTicksToDelay, List_t *pxEventList );\r
 \r
 /*\r
  * This function is intended for internal use by the queue implementation only.\r
@@ -758,7 +753,7 @@ void vCoRoutineAddToDelayedList( portTickType xTicksToDelay, xList *pxEventList
  * Removes the highest priority co-routine from the event list and places it in\r
  * the pending ready list.\r
  */\r
-signed portBASE_TYPE xCoRoutineRemoveFromEventList( const xList *pxEventList );\r
+BaseType_t xCoRoutineRemoveFromEventList( const List_t *pxEventList );\r
 \r
 #ifdef __cplusplus\r
 }\r