]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/MB96340_Softune/FreeRTOS_96348hs_SK16FX100PMC/Src/serial/serial.c
Replace use of legacy portTYPE macros from old demos and standard demo files.
[freertos] / FreeRTOS / Demo / MB96340_Softune / FreeRTOS_96348hs_SK16FX100PMC / Src / serial / serial.c
index ca19ff0a7523fade925bf810ff9e65bfd64e432f..b54bd69c52dd0a7c1c699bc1c0a5e70544e0edd1 100644 (file)
@@ -85,19 +85,19 @@ static xQueueHandle                 xRxedChars;
 /* The queue used to hold characters waiting transmission. */\r
 static xQueueHandle                    xCharsForTx;\r
 \r
-static volatile portSHORT      sTHREEmpty;\r
+static volatile short  sTHREEmpty;\r
 \r
-static volatile portSHORT      queueFail = pdFALSE;\r
+static volatile short  queueFail = pdFALSE;\r
 \r
 /*-----------------------------------------------------------*/\r
-xComPortHandle xSerialPortInitMinimal( unsigned portLONG ulWantedBaud, unsigned portBASE_TYPE uxQueueLength )\r
+xComPortHandle xSerialPortInitMinimal( unsigned long ulWantedBaud, unsigned portBASE_TYPE uxQueueLength )\r
 {\r
        /* Initialise the hardware. */\r
        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
                if( xRxedChars == 0 )\r
                {\r
@@ -129,7 +129,7 @@ xComPortHandle xSerialPortInitMinimal( unsigned portLONG ulWantedBaud, unsigned
 }\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
@@ -144,7 +144,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
@@ -199,7 +199,7 @@ signed portBASE_TYPE        xReturn;
  */\r
 __interrupt void UART0_RxISR( void )\r
 {\r
-volatile signed portCHAR       cChar;\r
+volatile signed char   cChar;\r
 portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;\r
 \r
        /* Get the character from the UART and post it on the queue of Rxed \r
@@ -223,7 +223,7 @@ portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;
  */\r
 __interrupt void UART0_TxISR( void )\r
 {\r
-signed portCHAR                        cChar;\r
+signed char                    cChar;\r
 signed portBASE_TYPE   xTaskWoken = pdFALSE;\r
 \r
        /* The previous character has been transmitted.  See if there are any\r