mbv: fix bug in xuartlite
This commit is contained in:
parent
2e640690ba
commit
269a04d5f5
@ -387,8 +387,7 @@ int XUartLite_IsSending(XUartLite *InstancePtr)
|
|||||||
/*
|
/*
|
||||||
* Read the status register to determine if the transmitter is empty
|
* Read the status register to determine if the transmitter is empty
|
||||||
*/
|
*/
|
||||||
StatusRegister = XUartLite_ReadReg(InstancePtr->RegBaseAddress,
|
StatusRegister = XUartLite_GetSR(InstancePtr);
|
||||||
XUL_STATUS_REG_OFFSET);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If the transmitter is not empty then indicate that the UART is still
|
* If the transmitter is not empty then indicate that the UART is still
|
||||||
|
@ -143,8 +143,7 @@ void XUartLite_InterruptHandler(XUartLite *InstancePtr)
|
|||||||
* Read the status register to determine which, coulb be both
|
* Read the status register to determine which, coulb be both
|
||||||
* interrupt is active
|
* interrupt is active
|
||||||
*/
|
*/
|
||||||
IsrStatus = XUartLite_ReadReg(InstancePtr->RegBaseAddress,
|
IsrStatus = XUartLite_GetSR(InstancePtr);
|
||||||
XUL_STATUS_REG_OFFSET);
|
|
||||||
|
|
||||||
if ((IsrStatus & (XUL_SR_RX_FIFO_FULL |
|
if ((IsrStatus & (XUL_SR_RX_FIFO_FULL |
|
||||||
XUL_SR_RX_FIFO_VALID_DATA)) != 0) {
|
XUL_SR_RX_FIFO_VALID_DATA)) != 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user