]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/ARM7_AT91FR40008_GCC/serial/serial.c
Update version number ready for release.
[freertos] / FreeRTOS / Demo / ARM7_AT91FR40008_GCC / serial / serial.c
index a0d6d002e76348d707fb03a578f46c267fba52d5..da2129155336407094c485da17253acee336ec58 100644 (file)
@@ -1,5 +1,6 @@
 /*\r
-    FreeRTOS V7.5.2 - Copyright (C) 2013 Real Time Engineers Ltd.\r
+    FreeRTOS V8.0.1 - 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
     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
 \r
-    >>! NOTE: The modification to the GPL is included to allow you to distribute\r
-    >>! a combined work that includes FreeRTOS without being obliged to provide\r
-    >>! the source code for proprietary components outside of the FreeRTOS\r
-    >>! kernel.\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
     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
 /* Constants to setup and access the UART. */\r
 #define portUSART0_AIC_CHANNEL ( ( unsigned long ) 2 )\r
 \r
-#define serINVALID_QUEUE               ( ( xQueueHandle ) 0 )\r
+#define serINVALID_QUEUE               ( ( QueueHandle_t ) 0 )\r
 #define serHANDLE                              ( ( xComPortHandle ) 1 )\r
-#define serNO_BLOCK                            ( ( portTickType ) 0 )\r
+#define serNO_BLOCK                            ( ( TickType_t ) 0 )\r
 \r
 /*-----------------------------------------------------------*/\r
 \r
 /* Queues used to hold received characters, and characters waiting to be\r
 transmitted. */\r
-static xQueueHandle xRxedChars; \r
-static xQueueHandle xCharsForTx; \r
+static QueueHandle_t xRxedChars; \r
+static QueueHandle_t xCharsForTx; \r
 \r
 /*-----------------------------------------------------------*/\r
 \r
@@ -107,7 +108,7 @@ static xQueueHandle xCharsForTx;
  * The queues are created in serialISR.c as they are used from the ISR.\r
  * Obtain references to the queues and THRE Empty flag. \r
  */\r
-extern void vSerialISRCreateQueues(  unsigned portBASE_TYPE uxQueueLength, xQueueHandle *pxRxedChars, xQueueHandle *pxCharsForTx );\r
+extern void vSerialISRCreateQueues(  unsigned portBASE_TYPE uxQueueLength, QueueHandle_t *pxRxedChars, QueueHandle_t *pxCharsForTx );\r
 \r
 /*-----------------------------------------------------------*/\r
 \r
@@ -196,7 +197,7 @@ extern void ( vUART_ISR_Wrapper )( void );
 }\r
 /*-----------------------------------------------------------*/\r
 \r
-signed portBASE_TYPE xSerialGetChar( xComPortHandle pxPort, signed char *pcRxedChar, portTickType xBlockTime )\r
+signed portBASE_TYPE xSerialGetChar( xComPortHandle pxPort, signed char *pcRxedChar, TickType_t xBlockTime )\r
 {\r
        /* The port handle is not required as this driver only supports UART0. */\r
        ( void ) pxPort;\r
@@ -235,7 +236,7 @@ signed char *pxNext;
 }\r
 /*-----------------------------------------------------------*/\r
 \r
-signed portBASE_TYPE xSerialPutChar( xComPortHandle pxPort, signed char cOutChar, portTickType xBlockTime )\r
+signed portBASE_TYPE xSerialPutChar( xComPortHandle pxPort, signed char cOutChar, TickType_t xBlockTime )\r
 {\r
        ( void ) pxPort;\r
 \r