Skip to content

Commit 680c543

Browse files
DarioGHubhasenradball
authored andcommitted
Fix DTR offset value (esp8266#8586)
Correct value from uart_registers.h mask > #define UART_DTRN (BIT(29))
1 parent b173558 commit 680c543

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
@@ -255,7 +255,7 @@ extern volatile uint32_t* const esp8266_gpioToFn[16];
255255
//UART STATUS Registers Bits
256256
#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.)
257257
#define USRTS 30 //RTS PIN Level
258-
#define USDTR 39 //DTR PIN Level
258+
#define USDTR 29 //DTR PIN Level
259259
#define USTXC 16 //TX FIFO COUNT (8bit)
260260
#define USRXD 15 //RX PIN Level
261261
#define USCTS 14 //CTS PIN Level

0 commit comments

Comments
 (0)