Update uart.c
added read of register ISR to clear interrupt source of UART16550.
This commit is contained in:
parent
343d1ab482
commit
72cb3849eb
@ -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…
Reference in New Issue
Block a user