]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/MSP430X_MSP430F5438_IAR/serial.c
Replace use of legacy portTYPE macros from old demos and standard demo files.
[freertos] / FreeRTOS / Demo / MSP430X_MSP430F5438_IAR / serial.c
index 44980ba0f77fcc85d8a8c1bca431632753601bc4..aea3f736f558dbbb4e950e8878e62bedd722447d 100644 (file)
@@ -95,9 +95,9 @@ static xQueueHandle xCharsForTx;
 \r
 /*-----------------------------------------------------------*/\r
 \r
-xComPortHandle xSerialPortInitMinimal( unsigned portLONG ulWantedBaud, unsigned portBASE_TYPE uxQueueLength )\r
+xComPortHandle xSerialPortInitMinimal( unsigned long ulWantedBaud, unsigned portBASE_TYPE uxQueueLength )\r
 {\r
-unsigned portLONG ulBaudRateCount;\r
+unsigned long ulBaudRateCount;\r
 \r
        /* Initialise the hardware. */\r
 \r
@@ -107,8 +107,8 @@ unsigned portLONG ulBaudRateCount;
        portENTER_CRITICAL();\r
        {\r
                /* Create the queues used by the com test task. */\r
-               xRxedChars = xQueueCreate( uxQueueLength, ( unsigned portBASE_TYPE ) sizeof( signed portCHAR ) );\r
-               xCharsForTx = xQueueCreate( uxQueueLength, ( unsigned portBASE_TYPE ) sizeof( signed portCHAR ) );\r
+               xRxedChars = xQueueCreate( uxQueueLength, ( unsigned portBASE_TYPE ) sizeof( signed char ) );\r
+               xCharsForTx = xQueueCreate( uxQueueLength, ( unsigned portBASE_TYPE ) sizeof( signed char ) );\r
 \r
                /* Reset UART. */\r
                UCA1CTL1 |= UCSWRST;\r
@@ -117,11 +117,11 @@ unsigned portLONG ulBaudRateCount;
                UCA1CTL1 = UCSSEL0 | UCSSEL1;\r
                \r
                /* Setup baud rate low byte. */\r
-               UCA1BR0 = ( unsigned portCHAR ) ( ulBaudRateCount & ( unsigned portLONG ) 0xff );\r
+               UCA1BR0 = ( unsigned char ) ( ulBaudRateCount & ( unsigned long ) 0xff );\r
 \r
                /* Setup baud rate high byte. */\r
                ulBaudRateCount >>= 8UL;\r
-               UCA1BR1 = ( unsigned portCHAR ) ( ulBaudRateCount & ( unsigned portLONG ) 0xff );\r
+               UCA1BR1 = ( unsigned char ) ( ulBaudRateCount & ( unsigned long ) 0xff );\r
 \r
                /* UCLISTEN sets loopback mode! */\r
                UCA1STAT = UCLISTEN;\r
@@ -140,7 +140,7 @@ unsigned portLONG ulBaudRateCount;
 }\r
 /*-----------------------------------------------------------*/\r
 \r
-signed portBASE_TYPE xSerialGetChar( xComPortHandle pxPort, signed portCHAR *pcRxedChar, portTickType xBlockTime )\r
+signed portBASE_TYPE xSerialGetChar( xComPortHandle pxPort, signed char *pcRxedChar, portTickType xBlockTime )\r
 {\r
        /* Get the next character from the buffer.  Return false if no characters\r
        are available, or arrive before xBlockTime expires. */\r
@@ -155,7 +155,7 @@ signed portBASE_TYPE xSerialGetChar( xComPortHandle pxPort, signed portCHAR *pcR
 }\r
 /*-----------------------------------------------------------*/\r
 \r
-signed portBASE_TYPE xSerialPutChar( xComPortHandle pxPort, signed portCHAR cOutChar, portTickType xBlockTime )\r
+signed portBASE_TYPE xSerialPutChar( xComPortHandle pxPort, signed char cOutChar, portTickType xBlockTime )\r
 {\r
 signed portBASE_TYPE xReturn;\r
 \r