summaryrefslogtreecommitdiff
path: root/FreeRTOS/Demo/lwIP_AVR32_UC3/SERIAL/serial.c
diff options
context:
space:
mode:
Diffstat (limited to 'FreeRTOS/Demo/lwIP_AVR32_UC3/SERIAL/serial.c')
-rw-r--r--FreeRTOS/Demo/lwIP_AVR32_UC3/SERIAL/serial.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/FreeRTOS/Demo/lwIP_AVR32_UC3/SERIAL/serial.c b/FreeRTOS/Demo/lwIP_AVR32_UC3/SERIAL/serial.c
index d8e09580b..acd137adb 100644
--- a/FreeRTOS/Demo/lwIP_AVR32_UC3/SERIAL/serial.c
+++ b/FreeRTOS/Demo/lwIP_AVR32_UC3/SERIAL/serial.c
@@ -59,23 +59,23 @@
/* Constants to setup and access the USART. */
#define serINVALID_COMPORT_HANDLER ( ( xComPortHandle ) 0 )
-#define serINVALID_QUEUE ( ( xQueueHandle ) 0 )
+#define serINVALID_QUEUE ( ( QueueHandle_t ) 0 )
#define serHANDLE ( ( xComPortHandle ) 1 )
-#define serNO_BLOCK ( ( portTickType ) 0 )
+#define serNO_BLOCK ( ( TickType_t ) 0 )
/*-----------------------------------------------------------*/
/* Queues used to hold received characters, and characters waiting to be
transmitted. */
-static xQueueHandle xRxedChars;
-static xQueueHandle xCharsForTx;
+static QueueHandle_t xRxedChars;
+static QueueHandle_t xCharsForTx;
/*-----------------------------------------------------------*/
/* Forward declaration. */
static void vprvSerialCreateQueues( unsigned portBASE_TYPE uxQueueLength,
- xQueueHandle *pxRxedChars,
- xQueueHandle *pxCharsForTx );
+ QueueHandle_t *pxRxedChars,
+ QueueHandle_t *pxCharsForTx );
/*-----------------------------------------------------------*/
@@ -278,7 +278,7 @@ xComPortHandle xSerialPortInitMinimal( unsigned long ulWantedBaud, unsigned port
}
/*-----------------------------------------------------------*/
-signed portBASE_TYPE xSerialGetChar( xComPortHandle pxPort, signed char *pcRxedChar, portTickType xBlockTime )
+signed portBASE_TYPE xSerialGetChar( xComPortHandle pxPort, signed char *pcRxedChar, TickType_t xBlockTime )
{
/* The port handle is not required as this driver only supports UART0. */
( void ) pxPort;
@@ -316,7 +316,7 @@ signed char *pxNext;
}
/*-----------------------------------------------------------*/
-signed portBASE_TYPE xSerialPutChar( xComPortHandle pxPort, signed char cOutChar, portTickType xBlockTime )
+signed portBASE_TYPE xSerialPutChar( xComPortHandle pxPort, signed char cOutChar, TickType_t xBlockTime )
{
volatile avr32_usart_t *usart0 = &AVR32_USART0;
@@ -347,7 +347,7 @@ void vSerialClose( xComPortHandle xPort )
/*
* Create the rx and tx queues.
*/
-static void vprvSerialCreateQueues( unsigned portBASE_TYPE uxQueueLength, xQueueHandle *pxRxedChars, xQueueHandle *pxCharsForTx )
+static void vprvSerialCreateQueues( unsigned portBASE_TYPE uxQueueLength, QueueHandle_t *pxRxedChars, QueueHandle_t *pxCharsForTx )
{
/* Create the queues used to hold Rx and Tx characters. */
xRxedChars = xQueueCreate( uxQueueLength, ( unsigned portBASE_TYPE ) sizeof( signed char ) );