mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-20 05:21:59 -04:00
Tidy up the IAR MSP430X demo serial.c file.
This commit is contained in:
parent
334e0e2e70
commit
bc87cc4cb7
|
@ -160,8 +160,7 @@ signed portBASE_TYPE xReturn;
|
||||||
#pragma vector=USCI_A1_VECTOR
|
#pragma vector=USCI_A1_VECTOR
|
||||||
static __interrupt void prvUSCI_A1_ISR( void )
|
static __interrupt void prvUSCI_A1_ISR( void )
|
||||||
{
|
{
|
||||||
signed portCHAR cChar;
|
signed char cChar;
|
||||||
portBASE_TYPE xTaskWoken = pdFALSE;
|
|
||||||
portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;
|
portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;
|
||||||
|
|
||||||
while( ( UCA1IFG & UCRXIFG ) != 0 )
|
while( ( UCA1IFG & UCRXIFG ) != 0 )
|
||||||
|
@ -177,7 +176,7 @@ portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;
|
||||||
{
|
{
|
||||||
/* The previous character has been transmitted. See if there are any
|
/* The previous character has been transmitted. See if there are any
|
||||||
further characters waiting transmission. */
|
further characters waiting transmission. */
|
||||||
if( xQueueReceiveFromISR( xCharsForTx, &cChar, &xTaskWoken ) == pdTRUE )
|
if( xQueueReceiveFromISR( xCharsForTx, &cChar, &xHigherPriorityTaskWoken ) == pdTRUE )
|
||||||
{
|
{
|
||||||
/* There was another character queued - transmit it now. */
|
/* There was another character queued - transmit it now. */
|
||||||
UCA1TXBUF = cChar;
|
UCA1TXBUF = cChar;
|
||||||
|
|
Loading…
Reference in a new issue