mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-08-05 22:11:04 +08:00
fix(driver): Fix the compile issue when STATUS define moved
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user