minor style fixes

This commit is contained in:
Resaec 2018-04-28 00:55:28 +02:00
parent e0f586d2d5
commit b6b0073178

View file

@ -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;
}
}