uart_enable_tx_intr() function
Enable UART TX interrupt (TX_FULL & TX_TIMEOUT INTERRUPT)
Arguments
uart_num
UART port number, the max port number is (UART_NUM_MAX -1).
enable
1: enable; 0: disable
thresh
Threshold of TX interrupt, 0 ~ UART_HW_FIFO_LEN(uart_num)
Return value
- ESP_OK Success - ESP_FAIL Parameter error