Skip to content

Commit

Permalink
Fixing formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-gillespie committed Dec 6, 2024
1 parent ab8a6e0 commit 6d07949
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Libraries/PeriphDrivers/Source/UART/uart_revb.c
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,8 @@ int MXC_UART_RevB_Transaction(mxc_uart_revb_req_t *req)
numToWrite;
req->txCnt += MXC_UART_WriteTXFIFO((mxc_uart_regs_t *)(req->uart),
&req->txData[req->txCnt], numToWrite);
MXC_UART_ClearFlags((mxc_uart_regs_t *)(req->uart), (MXC_F_UART_REVB_INT_FL_TX_HE | MXC_F_UART_REVB_INT_FL_TX_OR));
MXC_UART_ClearFlags((mxc_uart_regs_t *)(req->uart),
(MXC_F_UART_REVB_INT_FL_TX_HE | MXC_F_UART_REVB_INT_FL_TX_OR));
}
}

Expand Down Expand Up @@ -709,7 +710,8 @@ int MXC_UART_RevB_TransactionAsync(mxc_uart_revb_req_t *req)
NVIC_SetPendingIRQ(MXC_UART_GET_IRQ(uart_num));
} else {
/* Else enable the half empty interrupt */
MXC_UART_EnableInt((mxc_uart_regs_t *)(req->uart), (MXC_F_UART_REVB_INT_EN_TX_HE | MXC_F_UART_REVB_INT_EN_TX_OR));
MXC_UART_EnableInt((mxc_uart_regs_t *)(req->uart),
(MXC_F_UART_REVB_INT_EN_TX_HE | MXC_F_UART_REVB_INT_EN_TX_OR));
}
}

Expand Down Expand Up @@ -783,7 +785,8 @@ int MXC_UART_RevB_AsyncCallback(mxc_uart_revb_regs_t *uart, int retVal)

int MXC_UART_RevB_AsyncStopTx(mxc_uart_revb_regs_t *uart)
{
MXC_UART_DisableInt((mxc_uart_regs_t *)uart, (MXC_F_UART_REVB_INT_EN_TX_HE | MXC_F_UART_REVB_INT_EN_TX_OR));
MXC_UART_DisableInt((mxc_uart_regs_t *)uart,
(MXC_F_UART_REVB_INT_EN_TX_HE | MXC_F_UART_REVB_INT_EN_TX_OR));

return E_NO_ERROR;
}
Expand Down Expand Up @@ -838,7 +841,8 @@ int MXC_UART_RevB_AsyncHandler(mxc_uart_revb_regs_t *uart)
numToWrite = MXC_UART_WriteTXFIFO((mxc_uart_regs_t *)(req->uart), &req->txData[req->txCnt],
numToWrite);
req->txCnt += numToWrite;
MXC_UART_ClearFlags(req->uart, (MXC_F_UART_REVB_INT_FL_TX_HE | MXC_F_UART_REVB_INT_FL_TX_OR));
MXC_UART_ClearFlags(req->uart,
(MXC_F_UART_REVB_INT_FL_TX_HE | MXC_F_UART_REVB_INT_FL_TX_OR));
}

req = (mxc_uart_req_t *)AsyncRxRequests[uart_num];
Expand Down

0 comments on commit 6d07949

Please sign in to comment.