From: richardbarry Date: Tue, 18 Jan 2011 19:55:13 +0000 (+0000) Subject: Tidy up the IAR MSP430X demo serial.c file. X-Git-Tag: V7.0.0~90 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a4f30c261f6bb78d527b1db776e5ea698ede872b;p=freertos Tidy up the IAR MSP430X demo serial.c file. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1259 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/Demo/MSP430X_MSP430F5438_IAR/serial.c b/Demo/MSP430X_MSP430F5438_IAR/serial.c index 310a27c22..9eb494142 100644 --- a/Demo/MSP430X_MSP430F5438_IAR/serial.c +++ b/Demo/MSP430X_MSP430F5438_IAR/serial.c @@ -160,8 +160,7 @@ signed portBASE_TYPE xReturn; #pragma vector=USCI_A1_VECTOR static __interrupt void prvUSCI_A1_ISR( void ) { -signed portCHAR cChar; -portBASE_TYPE xTaskWoken = pdFALSE; +signed char cChar; portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE; while( ( UCA1IFG & UCRXIFG ) != 0 ) @@ -177,7 +176,7 @@ portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE; { /* The previous character has been transmitted. See if there are any further characters waiting transmission. */ - if( xQueueReceiveFromISR( xCharsForTx, &cChar, &xTaskWoken ) == pdTRUE ) + if( xQueueReceiveFromISR( xCharsForTx, &cChar, &xHigherPriorityTaskWoken ) == pdTRUE ) { /* There was another character queued - transmit it now. */ UCA1TXBUF = cChar;