Page 1 of 1

UART hardware flow control on ESP8266

Posted: Tue Aug 06, 2019 7:38 am
by nabla128k
Hi,
I'd like to ask whether it would be difficult to modify micropython source to enable hw flow control on esp8266 board.
You can see, that the board has hw flow control - e.g. here https://www.esp8266.com/viewtopic.php?f ... 60&start=8
In uart.c (https://github.com/micropython/micropyt ... 266/uart.c) there are some signs of probably turning it off... (at least on RX side):

WRITE_PERI_REG(UART_CONF1(uart_no),
((0x10 & UART_RXFIFO_FULL_THRHD) << UART_RXFIFO_FULL_THRHD_S) |
((0x10 & UART_RX_FLOW_THRHD) << UART_RX_FLOW_THRHD_S) |
UART_RX_FLOW_EN |....
....


Maybe it is possible to just hardcode to enable it and compile micropython for my usage... but I'm not sure if it is so easy...
Anyone can help, hint, please?