Browse Source

fix the serial Tx interrupt clean issue @ reported by softwind.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@169 bbd45198-f89e-11dd-88c7-29a3b14d5316
bernard.xiong 15 years ago
parent
commit
37b29e879e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libcpu/arm/stm32/serial.c

+ 1 - 1
libcpu/arm/stm32/serial.c

@@ -489,7 +489,7 @@ void rt_hw_serial_isr(rt_device_t device)
 			uart->int_tx->write_index = 0;
 
 		/* clear interrupt */
-		USART_ClearITPendingBit(uart->uart_device, USART_IT_RXNE);
+		USART_ClearITPendingBit(uart->uart_device, USART_IT_TC);
 		
 		/* start next transmission */
 		if (uart->int_tx->write_index <