From a4f30c261f6bb78d527b1db776e5ea698ede872b Mon Sep 17 00:00:00 2001 From: richardbarry Date: Tue, 18 Jan 2011 19:55:13 +0000 Subject: [PATCH] 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 --- Demo/MSP430X_MSP430F5438_IAR/serial.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; -- 2.39.5