UART hardware flow control on ESP8266

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
nabla128k
Posts: 1
Joined: Tue Aug 06, 2019 7:25 am

UART hardware flow control on ESP8266

Post by nabla128k » Tue Aug 06, 2019 7:38 am

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?

Post Reply