]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/CORTEX_STM32F103_IAR/serial/serial.c
Update the demo directory to use the version 8 type naming conventions.
[freertos] / FreeRTOS / Demo / CORTEX_STM32F103_IAR / serial / serial.c
index d68a8eecc1001737399432de2729865e4793f1a5..f6429bb41391bd75dd6f9ec1dcba3eb1af760d7b 100644 (file)
 /*-----------------------------------------------------------*/\r
 \r
 /* Misc defines. */\r
-#define serINVALID_QUEUE                               ( ( xQueueHandle ) 0 )\r
-#define serNO_BLOCK                                            ( ( portTickType ) 0 )\r
-#define serTX_BLOCK_TIME                               ( 40 / portTICK_RATE_MS )\r
+#define serINVALID_QUEUE                               ( ( QueueHandle_t ) 0 )\r
+#define serNO_BLOCK                                            ( ( TickType_t ) 0 )\r
+#define serTX_BLOCK_TIME                               ( 40 / portTICK_PERIOD_MS )\r
 \r
 /*-----------------------------------------------------------*/\r
 \r
 /* The queue used to hold received characters. */\r
-static xQueueHandle xRxedChars;\r
-static xQueueHandle xCharsForTx;\r
+static QueueHandle_t xRxedChars;\r
+static QueueHandle_t xCharsForTx;\r
 \r
 /*-----------------------------------------------------------*/\r
 \r
@@ -163,7 +163,7 @@ GPIO_InitTypeDef GPIO_InitStructure;
 }\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
@@ -205,7 +205,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