the esp32 gives new surprises every day, so I dare ask the question:
since we know we can "swap" pins in ESP8266 ( U0TXD<==>U0RTS(MTDO) , U0RXD<==>U0CTS(MTCK) )
by
Code: Select all
#define FUNC_U0CTS 4
#define FUNC_U0RTS 4
PIN_FUNC_SELECT(PERIPHS_IO_MUX_MTCK_U, FUNC_U0CTS);//CONFIG MTCK PIN FUNC TO U0CTS
PIN_FUNC_SELECT(PERIPHS_IO_MUX_MTDO_U, FUNC_U0RTS);//CONFIG MTDO PIN FUNC TO U0RTS
SET_PERI_REG_MASK(0x3ff00028 , BIT2);//SWAP PIN : U0TXD<==>U0RTS(MTDO) , U0RXD<==>U0CTS(MTCK)
( gpio0, gpio's..)
we have an example, that we config gpio as output and an other as input with ISR on it by falling edge example.
can we route the ouput gpio physical to the input gpio that we need not to wiring the 2 pins?
only a theoretical question
best wishes
rudi