bugfix(uart): Open uart_wait_tx_done() function and avoid using tx_buffer in uart1

This commit is contained in:
XiongYu
2018-12-07 15:33:44 +08:00
parent b0f7ff508d
commit d1ab0c20dd
2 changed files with 33 additions and 7 deletions

View File

@ -440,6 +440,17 @@ esp_err_t uart_driver_install(uart_port_t uart_num, int rx_buffer_size, int tx_b
*/
esp_err_t uart_driver_delete(uart_port_t uart_num);
/**
* @brief Waiting for the last byte of data to be sent
*
* @param uart_num Uart port number.
*
* @return
* - ESP_OK Success
* - ESP_ERR_INVALID_ARG Parameter error
*/
esp_err_t uart_wait_tx_done(uart_port_t uart_num);
/**
* @brief Send data to the UART port from a given buffer and length.
*