chip/npcx/uart.c: Format with clang-format
BRANCH=none
TEST=none
@@ -209,7 +209,8 @@ static void uart_ec_interrupt(void)
}
if (uartn_tx_ready(NPCX_UART_PORT0)) {
if (altpad_tx_pos < altpad_tx_len)
- uartn_write_char(NPCX_UART_PORT0,
+ uartn_write_char(
+ NPCX_UART_PORT0,
altpad_tx_buf[altpad_tx_pos++]);
else
uart_tx_stop();
@@ -319,8 +320,8 @@ int uart_alt_pad_write_read(uint8_t *tx, int tx_len, uint8_t *rx, int rx_len,
uint32_t start = __hw_clock_source_read();
int ret = 0;
- if ((get_time().val - last_default_pad_rx_time.val)
- < block_alt_timeout_us)
+ if ((get_time().val - last_default_pad_rx_time.val) <
+ block_alt_timeout_us)
return -EC_ERROR_BUSY;
cflush();
@@ -381,7 +382,6 @@ out:
#endif
void uart_init(void)
{
-
uartn_init(CONSOLE_UART);
init_done = 1;
}
