Skip to content

Commit 9845deb

Browse files
xsrfdevyte
andauthored
Document USTX in USS/UxS not working as expected (#7265)
Documentation that bit USTX in UART status register USS(u) / U0S / U1S is not mirroring TX level as expected but always reads 0, see issue #7256 Co-authored-by: Develo <deveyes@gmail.com>
1 parent bf718c3 commit 9845deb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp8266/esp8266_peri.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ extern volatile uint32_t* const esp8266_gpioToFn[16];
250250
#define UIFF 0 //RX FIFO Full
251251

252252
//UART STATUS Registers Bits
253-
#define USTX 31 //TX PIN Level
253+
#define USTX 31 //TX PIN Level (Doesn't seem to work, always reads as 0 for both uarts. HW bug? Possible workaround: Enable loopback UxC0 |= 1<<UCLBE and read USRXD, see https://github.com/esp8266/Arduino/issues/7256 for discussion.)
254254
#define USRTS 30 //RTS PIN Level
255255
#define USDTR 39 //DTR PIN Level
256256
#define USTXC 16 //TX FIFO COUNT (8bit)

0 commit comments

Comments
 (0)