]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/WizNET_DEMO_TERN_186/serial/serial.c
Update the demo directory to use the version 8 type naming conventions.
[freertos] / FreeRTOS / Demo / WizNET_DEMO_TERN_186 / serial / serial.c
index 20bf9232293ce2f6a9269c9874508d0d2ecd7c36..e70f1e33c1a772f0081d120496c3a9d159d268b0 100644 (file)
 #define serCLEAR_ALL_STATUS_BITS       ( ( unsigned short ) 0x00 )\r
 #define serINTERRUPT_PRIORITY          ( ( unsigned short ) 0x01 ) /*< Just below the scheduler priority. */\r
 \r
-#define serDONT_BLOCK                          ( ( portTickType ) 0 )\r
+#define serDONT_BLOCK                          ( ( TickType_t ) 0 )\r
 \r
 typedef enum\r
 { \r
@@ -176,12 +176,12 @@ typedef struct xCOM_PORT
        unsigned short usIRQVector;\r
 \r
        /* Queues used for communications with com test task. */\r
-       xQueueHandle xRxedChars; \r
-       xQueueHandle xCharsForTx;\r
+       QueueHandle_t xRxedChars; \r
+       QueueHandle_t xCharsForTx;\r
 \r
        /* This semaphore does nothing useful except test a feature of the\r
        scheduler. */\r
-       xSemaphoreHandle xTestSem;\r
+       SemaphoreHandle_t xTestSem;\r
 \r
 } xComPort;\r
 \r
@@ -201,8 +201,8 @@ static unsigned long prvBaud( eBaud eWantedBaud );
 /* These prototypes are repeated here so we don't have to include the serial header.  This allows\r
 the xComPortHandle structure details to be private to this file. */\r
 xComPortHandle xSerialPortInit( eCOMPort ePort, eBaud eWantedBaud, eParity eWantedParity, eDataBits eWantedDataBits, eStopBits eWantedStopBits, unsigned portBASE_TYPE uxBufferLength );\r
-portBASE_TYPE xSerialGetChar( xComPortHandle pxPort, char *pcRxedChar, portTickType xBlockTime );\r
-portBASE_TYPE xSerialPutChar( xComPortHandle pxPort, char cOutChar, portTickType xBlockTime );\r
+portBASE_TYPE xSerialGetChar( xComPortHandle pxPort, char *pcRxedChar, TickType_t xBlockTime );\r
+portBASE_TYPE xSerialPutChar( xComPortHandle pxPort, char cOutChar, TickType_t xBlockTime );\r
 void vSerialClose( xComPortHandle xPort );\r
 short sSerialWaitForSemaphore( xComPortHandle xPort );\r
 /*-----------------------------------------------------------*/\r
@@ -359,7 +359,7 @@ char *pcNextChar;
 }\r
 /*-----------------------------------------------------------*/\r
 \r
-portBASE_TYPE xSerialGetChar( xComPortHandle pxPort, char *pcRxedChar, portTickType xBlockTime )\r
+portBASE_TYPE xSerialGetChar( xComPortHandle pxPort, char *pcRxedChar, TickType_t xBlockTime )\r
 {\r
        /* Get the next character from the buffer, note that this routine is only \r
        called having checked that the is (at least) one to get */\r
@@ -374,7 +374,7 @@ portBASE_TYPE xSerialGetChar( xComPortHandle pxPort, char *pcRxedChar, portTickT
 }\r
 /*-----------------------------------------------------------*/\r
 \r
-portBASE_TYPE xSerialPutChar( xComPortHandle pxPort, char cOutChar, portTickType xBlockTime )\r
+portBASE_TYPE xSerialPutChar( xComPortHandle pxPort, char cOutChar, TickType_t xBlockTime )\r
 {\r
        if( xQueueSend( pxPort->xCharsForTx, &cOutChar, xBlockTime ) != pdPASS )\r
        {\r
@@ -389,7 +389,7 @@ portBASE_TYPE xSerialPutChar( xComPortHandle pxPort, char cOutChar, portTickType
 \r
 portBASE_TYPE xSerialWaitForSemaphore( xComPortHandle xPort )\r
 {\r
-const portTickType xBlockTime = ( portTickType ) 0xffff;\r
+const TickType_t xBlockTime = ( TickType_t ) 0xffff;\r
 \r
        /* This function does nothing interesting, but test the \r
        semaphore from ISR mechanism. */\r