Finalise MSP430X CCS4 port and demo.

This commit is contained in:
Richard Barry 2011-03-14 07:26:50 +00:00
parent 329c36c6bc
commit c85523f870
3 changed files with 6 additions and 8 deletions

View file

@ -176,7 +176,7 @@ information. */
#define mainCOM_TEST_LED ( 1 )
/* The baud rate used by the comtest tasks. */
#define mainCOM_TEST_BAUD_RATE ( 115200 )
#define mainCOM_TEST_BAUD_RATE ( 38400 )
/* The maximum number of lines of text that can be displayed on the LCD. */
#define mainMAX_LCD_LINES ( 8 )

View file

@ -169,16 +169,14 @@ interrupt void prvUSCI_A1_ISR( void )
signed char cChar;
portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;
while( ( UCA1IFG & UCRXIFG ) != 0 )
if( ( UCA1IFG & UCRXIFG ) != 0 )
{
/* Get the character from the UART and post it on the queue of Rxed
characters. */
cChar = UCA1RXBUF;
xQueueSendFromISR( xRxedChars, &cChar, &xHigherPriorityTaskWoken );
}
/* If there is a Tx interrupt pending and the tx interrupts are enabled. */
if( ( UCA1IFG & UCTXIFG ) != 0 )
else if( ( UCA1IFG & UCTXIFG ) != 0 )
{
/* The previous character has been transmitted. See if there are any
further characters waiting transmission. */