Clear UxCSR_TX_BYTE after transmitting a byte
authorKeith Packard <keithp@keithp.com>
Wed, 25 Mar 2009 05:12:51 +0000 (22:12 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 25 Mar 2009 05:12:51 +0000 (22:12 -0700)
target/ee/ee.c

index 6cf276a0cc5f9740b0ae95926bad45a7e6b1475c..ed13d0ad455e4655b525c6d4686ed7805e9436dd 100644 (file)
@@ -273,6 +273,7 @@ usart_in_out(uint8_t byte)
        U0DBUF = byte;
        while ((U0CSR & UxCSR_TX_BYTE) == 0)
                ;
        U0DBUF = byte;
        while ((U0CSR & UxCSR_TX_BYTE) == 0)
                ;
+       U0CSR &= ~UxCSR_TX_BYTE;
 }
 
 void
 }
 
 void