]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/msp430_IAR/serial/serial.c
Update the demo directory to use the version 8 type naming conventions.
[freertos] / FreeRTOS / Demo / msp430_IAR / serial / serial.c
index 420294dfcf4516000d6a5261d7dfb58fde8740c6..e1e434b2e23a5e052c72ca11096bf3c0ab9c4f3a 100644 (file)
 #define serTX_AND_RX                   ( ( unsigned char ) 0x03 )\r
 \r
 /* Misc. constants. */\r
-#define serNO_BLOCK                            ( ( portTickType ) 0 )\r
+#define serNO_BLOCK                            ( ( TickType_t ) 0 )\r
 \r
 /* Enable the UART Tx interrupt. */\r
 #define vInterruptOn() IFG2 |= UTXIFG1\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 short sTHREEmpty;\r
 \r
@@ -153,7 +153,7 @@ unsigned long ulBaudRateCount;
 }\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
        /* Get the next character from the buffer.  Return false if no characters\r
        are available, or arrive before xBlockTime expires. */\r
@@ -168,7 +168,7 @@ signed portBASE_TYPE xSerialGetChar( xComPortHandle pxPort, signed char *pcRxedC
 }\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