]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/MB91460_Softune/SRC/serial/serial.c
Update the demo directory to use the version 8 type naming conventions.
[freertos] / FreeRTOS / Demo / MB91460_Softune / SRC / serial / serial.c
index f49e9e47eb4516b798be9eaeb7735952bef859c9..d271ffa99813821192e21fab14cd5fdc5ce8ffad 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - 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
 #include "serial.h"\r
 \r
 /* The queue used to hold received characters. */\r
-static xQueueHandle xRxedChars; \r
+static QueueHandle_t xRxedChars; \r
 \r
 /* The queue used to hold characters waiting transmission. */\r
-static xQueueHandle xCharsForTx; \r
+static QueueHandle_t xCharsForTx; \r
 \r
-static volatile portSHORT sTHREEmpty;\r
+static volatile short sTHREEmpty;\r
 \r
 /*-----------------------------------------------------------*/\r
 \r
-xComPortHandle xSerialPortInitMinimal( unsigned portLONG ulWantedBaud, unsigned portBASE_TYPE uxQueueLength )\r
+xComPortHandle xSerialPortInitMinimal( unsigned long ulWantedBaud, unsigned portBASE_TYPE uxQueueLength )\r
 {\r
        portENTER_CRITICAL();\r
        {\r
                /* Create the queues used by the com test task. */\r
-               xRxedChars = xQueueCreate( uxQueueLength, ( unsigned portBASE_TYPE ) sizeof( signed portCHAR ) );\r
-               xCharsForTx = xQueueCreate( uxQueueLength, ( unsigned portBASE_TYPE ) sizeof( signed portCHAR ) );\r
+               xRxedChars = xQueueCreate( uxQueueLength, ( unsigned portBASE_TYPE ) sizeof( signed char ) );\r
+               xCharsForTx = xQueueCreate( uxQueueLength, ( unsigned portBASE_TYPE ) sizeof( signed char ) );\r
 \r
                 /* Initialize UART asynchronous mode */\r
                BGR02 = configPER_CLOCK_HZ / ulWantedBaud;\r
@@ -120,7 +120,7 @@ xComPortHandle xSerialPortInitMinimal( unsigned portLONG ulWantedBaud, unsigned
 }\r
 /*-----------------------------------------------------------*/\r
 \r
-signed portBASE_TYPE xSerialGetChar( xComPortHandle pxPort, signed portCHAR *pcRxedChar, portTickType xBlockTime )\r
+signed portBASE_TYPE xSerialGetChar( xComPortHandle pxPort, signed char *pcRxedChar, TickType_t xBlockTime )\r
 {\r
        /* Get the next character from the buffer.  Return false if no characters\r
        are available, or arrive before xBlockTime expires. */\r
@@ -135,7 +135,7 @@ signed portBASE_TYPE xSerialGetChar( xComPortHandle pxPort, signed portCHAR *pcR
 }\r
 /*-----------------------------------------------------------*/\r
 \r
-signed portBASE_TYPE xSerialPutChar( xComPortHandle pxPort, signed portCHAR cOutChar, portTickType xBlockTime )\r
+signed portBASE_TYPE xSerialPutChar( xComPortHandle pxPort, signed char cOutChar, TickType_t xBlockTime )\r
 {\r
 signed portBASE_TYPE xReturn;\r
 \r
@@ -191,7 +191,7 @@ signed portBASE_TYPE xReturn;
  */\r
  __interrupt void UART2_RxISR (void)\r
 {\r
-       signed portCHAR cChar;\r
+       signed char cChar;\r
        portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;\r
 \r
        /* Get the character from the UART and post it on the queue of Rxed \r
@@ -216,7 +216,7 @@ signed portBASE_TYPE xReturn;
  */\r
 __interrupt void UART2_TxISR (void)\r
 {\r
-       signed portCHAR cChar;\r
+       signed char cChar;\r
        signed portBASE_TYPE xTaskWoken = pdFALSE;\r
 \r
        /* The previous character has been transmitted.  See if there are any\r