]> granicus.if.org Git - esp-idf/commit
bugfix(uart): set default tx idle num
authorWangjialin <wangjialin@espressif.com>
Wed, 18 Oct 2017 04:04:59 +0000 (12:04 +0800)
committerWangjialin <wangjialin@espressif.com>
Wed, 25 Oct 2017 05:29:02 +0000 (13:29 +0800)
commit303b9f60db0f51f9148d883a3f4b8d8b94fe8d09
tree65e052a7ef9b0d02e5b46854fdd2c4c922be4d6d
parent2c95a77cf93781f296883d5dbafcdc18e4389656
bugfix(uart): set default tx idle num

Reported from:
https://github.com/espressif/esp-idf/issues/703
https://github.com/espressif/esp-idf/issues/917
In uart driver we didn't change the default value of tx idle num, so there would be a delay after tx FIFO is empty.

1. Add API to set tx idle interval before next data transmission. (The UART hardware can add an interval after tx FIFO is empty).
2. Set default tx idle interval to zero.
3. Add hardware disable in uart driver delete function.
components/driver/include/driver/uart.h
components/driver/uart.c