feature(uart): uart tx done add ticks to wait

This commit is contained in:
XiongYu
2019-01-04 14:50:05 +08:00
parent 74b4a550de
commit ade7165a1a
2 changed files with 24 additions and 8 deletions

View File

@ -444,12 +444,13 @@ 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.
* @param ticks_to_wait Timeout, count in RTOS ticks
*
* @return
* - ESP_OK Success
* - ESP_ERR_INVALID_ARG Parameter error
*/
esp_err_t uart_wait_tx_done(uart_port_t uart_num);
esp_err_t uart_wait_tx_done(uart_port_t uart_num, TickType_t ticks_to_wait);
/**
* @brief Send data to the UART port from a given buffer and length.