mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
21311ece58
GPIO 20 is used for USB JTAG in esp32s3. So change the default gpios for twai in twai examples so that twai can be used without disturbing JTAG.
24 lines
754 B
Plaintext
24 lines
754 B
Plaintext
menu "Example Configuration"
|
|
|
|
config EXAMPLE_TX_GPIO_NUM
|
|
int "TX GPIO number"
|
|
default 2 if IDF_TARGET_ESP32C3
|
|
default 20 if IDF_TARGET_ESP32S2
|
|
default 21 if IDF_TARGET_ESP32
|
|
default 4 if IDF_TARGET_ESP32S3
|
|
help
|
|
This option selects the GPIO pin used for the TX signal. Connect the
|
|
TX signal to your transceiver.
|
|
|
|
config EXAMPLE_RX_GPIO_NUM
|
|
int "RX GPIO number"
|
|
default 3 if IDF_TARGET_ESP32C3
|
|
default 21 if IDF_TARGET_ESP32S2
|
|
default 22 if IDF_TARGET_ESP32
|
|
default 5 if IDF_TARGET_ESP32S3
|
|
help
|
|
This option selects the GPIO pin used for the RX signal. Connect the
|
|
RX signal to your transceiver.
|
|
|
|
endmenu
|