]> git.sur5r.net Git - freertos/commitdiff
Tidy up the IAR MSP430X demo serial.c file.
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Tue, 18 Jan 2011 19:55:13 +0000 (19:55 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Tue, 18 Jan 2011 19:55:13 +0000 (19:55 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1259 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Demo/MSP430X_MSP430F5438_IAR/serial.c

index 310a27c22b78a61bbdbfbe8893277142eea12d2d..9eb494142dcfc73b558d079a12ca0f6d06b82a52 100644 (file)
@@ -160,8 +160,7 @@ signed portBASE_TYPE xReturn;
 #pragma vector=USCI_A1_VECTOR\r
 static __interrupt void prvUSCI_A1_ISR( void )\r
 {\r
-signed portCHAR cChar;\r
-portBASE_TYPE xTaskWoken = pdFALSE;\r
+signed char cChar;\r
 portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;\r
 \r
        while( ( UCA1IFG & UCRXIFG ) != 0 )\r
@@ -177,7 +176,7 @@ portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;
        {\r
                /* The previous character has been transmitted.  See if there are any\r
                further characters waiting transmission. */\r
-               if( xQueueReceiveFromISR( xCharsForTx, &cChar, &xTaskWoken ) == pdTRUE )\r
+               if( xQueueReceiveFromISR( xCharsForTx, &cChar, &xHigherPriorityTaskWoken ) == pdTRUE )\r
                {\r
                        /* There was another character queued - transmit it now. */\r
                        UCA1TXBUF = cChar;\r