]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/ARM7_STR71x_IAR/serial/serial.c
Update the demo directory to use the version 8 type naming conventions.
[freertos] / FreeRTOS / Demo / ARM7_STR71x_IAR / serial / serial.c
index 902de03ce97f277d51a6b42b3d7a990232541021..9fbf402db809059935208879e3df00bb23f52963 100644 (file)
@@ -82,8 +82,8 @@
 #define UART0_Rx_Pin                                   ( 0x0001<< 8 )\r
 #define UART0_Tx_Pin                                   ( 0x0001<< 9 )\r
 \r
-#define serINVALID_QUEUE                               ( ( xQueueHandle ) 0 )\r
-#define serNO_BLOCK                                            ( ( portTickType ) 0 )\r
+#define serINVALID_QUEUE                               ( ( QueueHandle_t ) 0 )\r
+#define serNO_BLOCK                                            ( ( TickType_t ) 0 )\r
 \r
 /* Macros to turn on and off the Tx empty interrupt. */\r
 #define serINTERRUPT_ON()                              UART0->IER |= UART_TxHalfEmpty\r
@@ -93,8 +93,8 @@
 \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
@@ -155,7 +155,7 @@ xComPortHandle xReturn;
 }\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 one port. */\r
        ( void ) pxPort;\r
@@ -197,7 +197,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
        /* Place the character in the queue of characters to be transmitted. */\r
        if( xQueueSend( xCharsForTx, &cOutChar, xBlockTime ) != pdPASS )\r