mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-23 04:12:02 +00:00
minor style fixes
This commit is contained in:
parent
e0f586d2d5
commit
b6b0073178
1 changed files with 2 additions and 3 deletions
|
@ -42,8 +42,7 @@ void uart_wait_idle(UartDevice dev, UartVendorStatus status) {
|
|||
}
|
||||
}
|
||||
|
||||
void uart_send(UartDevice dev, const void *buf, size_t len)
|
||||
{
|
||||
void uart_send(UartDevice dev, const void *buf, size_t len) {
|
||||
volatile uart_t *uart = get_uart_device(dev);
|
||||
|
||||
for (size_t i = 0; i < len; i++) {
|
||||
|
@ -61,6 +60,6 @@ void uart_recv(UartDevice dev, void *buf, size_t len) {
|
|||
while (uart->UART_LSR & UART_LSR_RX_FIFO_EMPTY) {
|
||||
/* Wait until the RX FIFO isn't empty */
|
||||
}
|
||||
*((uint8_t *)buf + i) = uart->UART_THR_DLAB;
|
||||
*((uint8_t *)buf + i) = uart->UART_THR_DLAB;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue