esp-idf/examples/peripherals/twai/twai_self_test/main/Kconfig.projbuild
bizhuangyang 21311ece58 twai:modify default gpios in esp32s3
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.
2021-06-21 14:02:14 +08:00

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