fix(driver): Fix the compile issue when STATUS define moved
@@ -41,7 +41,7 @@ typedef struct _os_event_ {
xTaskHandle xUartTaskHandle;
xQueueHandle xQueueUart;
-static STATUS uart_tx_one_char(uint8_t uart, uint8_t TxChar)
+static void uart_tx_one_char(uint8_t uart, uint8_t TxChar)
{
while (true) {
uint32_t fifo_cnt = READ_PERI_REG(UART_STATUS(uart)) & (UART_TXFIFO_CNT << UART_TXFIFO_CNT_S);
@@ -52,7 +52,6 @@ static STATUS uart_tx_one_char(uint8_t uart, uint8_t TxChar)
}
WRITE_PERI_REG(UART_FIFO(uart), TxChar);
- return OK;
}
static void uart1_write_char(char c)
