]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/ARM7_LPC2129_Keil_RVDS/serial/serial.c
Update the demo directory to use the version 8 type naming conventions.
[freertos] / FreeRTOS / Demo / ARM7_LPC2129_Keil_RVDS / serial / serial.c
index b46a47d91e7948fda22f353c06dd132abffa035a..90f3f5f5665c28fc30dd5da59bbdf2cab46de159 100644 (file)
 #define serU1VIC_ENABLE                                        ( ( unsigned long ) 0x0020 )\r
 \r
 /* Misc. */\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
 /* Constant to access the VIC. */\r
 #define serCLEAR_VIC_INTERRUPT                 ( ( unsigned long ) 0 )\r
@@ -131,8 +131,8 @@ void vUART_ISRHandler( void );
 \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
 /* Communication flag between the interrupt service routine and serial API. */\r
 static volatile long lTHREEmpty;\r
@@ -197,7 +197,7 @@ xComPortHandle xReturn = serHANDLE;
 }\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
@@ -236,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
 signed portBASE_TYPE xReturn;\r
 \r