fix(driver): Fix the compile issue when STATUS define moved

This commit is contained in:
Wu Jian Gang
2018-05-24 15:50:19 +08:00
parent 82474c8f63
commit 5ff597c90c

View File

@ -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)