diff --git a/mbv/hal/uart/xuartlite.c b/mbv/hal/uart/xuartlite.c index 877ac9e..f7e1acf 100644 --- a/mbv/hal/uart/xuartlite.c +++ b/mbv/hal/uart/xuartlite.c @@ -387,8 +387,7 @@ int XUartLite_IsSending(XUartLite *InstancePtr) /* * Read the status register to determine if the transmitter is empty */ - StatusRegister = XUartLite_ReadReg(InstancePtr->RegBaseAddress, - XUL_STATUS_REG_OFFSET); + StatusRegister = XUartLite_GetSR(InstancePtr); /* * If the transmitter is not empty then indicate that the UART is still diff --git a/mbv/hal/uart/xuartlite_intr.c b/mbv/hal/uart/xuartlite_intr.c index f11d9cb..e29adca 100644 --- a/mbv/hal/uart/xuartlite_intr.c +++ b/mbv/hal/uart/xuartlite_intr.c @@ -143,8 +143,7 @@ void XUartLite_InterruptHandler(XUartLite *InstancePtr) * Read the status register to determine which, coulb be both * interrupt is active */ - IsrStatus = XUartLite_ReadReg(InstancePtr->RegBaseAddress, - XUL_STATUS_REG_OFFSET); + IsrStatus = XUartLite_GetSR(InstancePtr); if ((IsrStatus & (XUL_SR_RX_FIFO_FULL | XUL_SR_RX_FIFO_VALID_DATA)) != 0) {