Update uart.c
added read of register ISR to clear interrupt source of UART16550.
This commit is contained in:
parent
343d1ab482
commit
72cb3849eb
1 changed files with 1 additions and 0 deletions
|
@ -136,6 +136,7 @@ uartstart()
|
||||||
while(1){
|
while(1){
|
||||||
if(uart_tx_w == uart_tx_r){
|
if(uart_tx_w == uart_tx_r){
|
||||||
// transmit buffer is empty.
|
// transmit buffer is empty.
|
||||||
|
ReadReg(ISR);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue