summaryrefslogtreecommitdiff
path: root/FreeRTOS/Demo/PC/serial/serial.c
diff options
context:
space:
mode:
authorrtel <rtel@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>2014-02-11 12:04:59 +0000
committerrtel <rtel@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>2014-02-11 12:04:59 +0000
commit012a7c9b61ece5aec5c3a98e728e59fdcc9329ae (patch)
tree602a4c29560a57b40068e082bdd770d46aba2b2b /FreeRTOS/Demo/PC/serial/serial.c
parent284b2ecc28ff3da5a1bde899ace6304998ca5ec7 (diff)
downloadfreertos-012a7c9b61ece5aec5c3a98e728e59fdcc9329ae.tar.gz
Update the demo directory to use the version 8 type naming conventions.
git-svn-id: http://svn.code.sf.net/p/freertos/code/trunk@2202 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
Diffstat (limited to 'FreeRTOS/Demo/PC/serial/serial.c')
-rw-r--r--FreeRTOS/Demo/PC/serial/serial.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/FreeRTOS/Demo/PC/serial/serial.c b/FreeRTOS/Demo/PC/serial/serial.c
index 4348cf121..813958907 100644
--- a/FreeRTOS/Demo/PC/serial/serial.c
+++ b/FreeRTOS/Demo/PC/serial/serial.c
@@ -220,8 +220,8 @@ typedef struct xCOM_PORT
unsigned char ucInterruptEnableMast;
/* Read/Write buffers. */
- xQueueHandle xRxedChars;
- xQueueHandle xCharsForTx;
+ QueueHandle_t xRxedChars;
+ QueueHandle_t xCharsForTx;
/* This lot are set up to minimise CPU time where accessing the comm
* port's registers.
@@ -243,7 +243,7 @@ typedef struct xCOM_PORT
/* This semaphore does nothing useful except test a feature of the
scheduler. */
- xSemaphoreHandle xTestSem;
+ SemaphoreHandle_t xTestSem;
} xComPort;
@@ -258,8 +258,8 @@ xComPort *xPortStatus[ serMAX_IRQs ] = { NULL, NULL, NULL, NULL, NULL, NULL, NUL
/* These prototypes are repeated here so we don't have to include the serial header. This allows
the xComPortHandle structure details to be private to this file. */
xComPortHandle xSerialPortInit( eCOMPort ePort, eBaud eWantedBaud, eParity eWantedParity, eDataBits eWantedDataBits, eStopBits eWantedStopBits, unsigned portBASE_TYPE uxBufferLength );
-portBASE_TYPE xSerialGetChar( xComPortHandle pxPort, char *pcRxedChar, portTickType xBlockTime );
-portBASE_TYPE xSerialPutChar( xComPortHandle pxPort, char cOutChar, portTickType xBlockTime );
+portBASE_TYPE xSerialGetChar( xComPortHandle pxPort, char *pcRxedChar, TickType_t xBlockTime );
+portBASE_TYPE xSerialPutChar( xComPortHandle pxPort, char cOutChar, TickType_t xBlockTime );
portBASE_TYPE xSerialWaitForSemaphore( xComPortHandle xPort );
static void prvSetupPortHardware( xComPort *pxPort, eCOMPort ePort, eBaud eWantedBaud, eParity eWantedParity, eDataBits eWantedDataBits, eStopBits eWantedStopBits );
@@ -607,7 +607,7 @@ extern void vComTestUnsuspendTask( void );
}
/*-----------------------------------------------------------*/
-portBASE_TYPE xSerialGetChar( xComPortHandle pxPort, char *pcRxedChar, portTickType xBlockTime )
+portBASE_TYPE xSerialGetChar( xComPortHandle pxPort, char *pcRxedChar, TickType_t xBlockTime )
{
/* Get the next character from the buffer, note that this routine is only
called having checked that the is (at least) one to get */
@@ -622,7 +622,7 @@ portBASE_TYPE xSerialGetChar( xComPortHandle pxPort, char *pcRxedChar, portTickT
}
/*-----------------------------------------------------------*/
-portBASE_TYPE xSerialPutChar( xComPortHandle pxPort, char cOutChar, portTickType xBlockTime )
+portBASE_TYPE xSerialPutChar( xComPortHandle pxPort, char cOutChar, TickType_t xBlockTime )
{
if( xQueueSend( pxPort->xCharsForTx, &cOutChar, xBlockTime ) != pdPASS )
{
@@ -638,7 +638,7 @@ portBASE_TYPE xSerialPutChar( xComPortHandle pxPort, char cOutChar, portTickType
void vSerialPutString( xComPortHandle pxPort, const char * const pcString, unsigned short usStringLength )
{
char * pcNextChar;
-const portTickType xNoBlock = ( portTickType ) 0;
+const TickType_t xNoBlock = ( TickType_t ) 0;
/* Stop warnings. */
( void ) usStringLength;
@@ -654,7 +654,7 @@ const portTickType xNoBlock = ( portTickType ) 0;
portBASE_TYPE xSerialWaitForSemaphore( xComPortHandle xPort )
{
-const portTickType xBlockTime = ( portTickType ) 0xffff;
+const TickType_t xBlockTime = ( TickType_t ) 0xffff;
/* This function does nothing interesting, but test the
semaphore from ISR mechanism. */