Merge branch 'refactor/twai_example_default_gpio_change' into 'master'

twai:modify default gpios in twai examples for esp32s3

See merge request espressif/esp-idf!14066
This commit is contained in:
Michael (XIAO Xufeng)
2021-07-02 10:54:50 +00:00
8 changed files with 23 additions and 13 deletions

View File

@@ -25,7 +25,7 @@ idf.py menuconfig
* Under `Example Configuration`, configure the pin assignments using the options `TX GPIO Number` and `RX GPIO Number` according to how the target was connected to the transceiver. By default, `TX GPIO Number` and `RX GPIO Number` are set to the following values: * Under `Example Configuration`, configure the pin assignments using the options `TX GPIO Number` and `RX GPIO Number` according to how the target was connected to the transceiver. By default, `TX GPIO Number` and `RX GPIO Number` are set to the following values:
* On the ESP32, `TX GPIO Number` and `RX GPIO Number` default to `21` and `22` respectively * On the ESP32, `TX GPIO Number` and `RX GPIO Number` default to `21` and `22` respectively
* On the ESP32-S2, `TX GPIO Number` and `RX GPIO Number` default to `20` and `21` respectively * On the ESP32-S2, `TX GPIO Number` and `RX GPIO Number` default to `20` and `21` respectively
* On the ESP32-S3, `TX GPIO Number` and `RX GPIO Number` default to `20` and `21` respectively * On the ESP32-S3, `TX GPIO Number` and `RX GPIO Number` default to `4` and `5` respectively
* On the ESP32-C3, `TX GPIO Number` and `RX GPIO Number` default to `2` and `3` respectively * On the ESP32-C3, `TX GPIO Number` and `RX GPIO Number` default to `2` and `3` respectively
### Build and Flash ### Build and Flash

View File

@@ -3,8 +3,9 @@ menu "Example Configuration"
config EXAMPLE_TX_GPIO_NUM config EXAMPLE_TX_GPIO_NUM
int "TX GPIO number" int "TX GPIO number"
default 2 if IDF_TARGET_ESP32C3 default 2 if IDF_TARGET_ESP32C3
default 20 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3 default 20 if IDF_TARGET_ESP32S2
default 21 if IDF_TARGET_ESP32 default 21 if IDF_TARGET_ESP32
default 4 if IDF_TARGET_ESP32S3
help help
This option selects the GPIO pin used for the TX signal. Connect the This option selects the GPIO pin used for the TX signal. Connect the
TX signal to your transceiver. TX signal to your transceiver.
@@ -12,8 +13,9 @@ menu "Example Configuration"
config EXAMPLE_RX_GPIO_NUM config EXAMPLE_RX_GPIO_NUM
int "RX GPIO number" int "RX GPIO number"
default 3 if IDF_TARGET_ESP32C3 default 3 if IDF_TARGET_ESP32C3
default 21 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3 default 21 if IDF_TARGET_ESP32S2
default 22 if IDF_TARGET_ESP32 default 22 if IDF_TARGET_ESP32
default 5 if IDF_TARGET_ESP32S3
help help
This option selects the GPIO pin used for the RX signal. Connect the This option selects the GPIO pin used for the RX signal. Connect the
RX signal to your transceiver. RX signal to your transceiver.

View File

@@ -55,7 +55,7 @@ idf.py menuconfig
* Under `Example Configuration`, configure the pin assignments using the options `TX GPIO Number` and `RX GPIO Number` according to how the target was connected to the transceiver. By default, `TX GPIO Number` and `RX GPIO Number` are set to the following values: * Under `Example Configuration`, configure the pin assignments using the options `TX GPIO Number` and `RX GPIO Number` according to how the target was connected to the transceiver. By default, `TX GPIO Number` and `RX GPIO Number` are set to the following values:
* On the ESP32, `TX GPIO Number` and `RX GPIO Number` default to `21` and `22` respectively * On the ESP32, `TX GPIO Number` and `RX GPIO Number` default to `21` and `22` respectively
* On the ESP32-S2, `TX GPIO Number` and `RX GPIO Number` default to `20` and `21` respectively * On the ESP32-S2, `TX GPIO Number` and `RX GPIO Number` default to `20` and `21` respectively
* On the ESP32-S3, `TX GPIO Number` and `RX GPIO Number` default to `20` and `21` respectively * On the ESP32-S3, `TX GPIO Number` and `RX GPIO Number` default to `4` and `5` respectively
* On the ESP32-C3, `TX GPIO Number` and `RX GPIO Number` default to `2` and `3` respectively * On the ESP32-C3, `TX GPIO Number` and `RX GPIO Number` default to `2` and `3` respectively

View File

@@ -3,8 +3,9 @@ menu "Example Configuration"
config EXAMPLE_TX_GPIO_NUM config EXAMPLE_TX_GPIO_NUM
int "TX GPIO number" int "TX GPIO number"
default 2 if IDF_TARGET_ESP32C3 default 2 if IDF_TARGET_ESP32C3
default 20 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3 default 20 if IDF_TARGET_ESP32S2
default 21 if IDF_TARGET_ESP32 default 21 if IDF_TARGET_ESP32
default 4 if IDF_TARGET_ESP32S3
help help
This option selects the GPIO pin used for the TX signal. Connect the This option selects the GPIO pin used for the TX signal. Connect the
TX signal to your transceiver. TX signal to your transceiver.
@@ -12,8 +13,9 @@ menu "Example Configuration"
config EXAMPLE_RX_GPIO_NUM config EXAMPLE_RX_GPIO_NUM
int "RX GPIO number" int "RX GPIO number"
default 3 if IDF_TARGET_ESP32C3 default 3 if IDF_TARGET_ESP32C3
default 21 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3 default 21 if IDF_TARGET_ESP32S2
default 22 if IDF_TARGET_ESP32 default 22 if IDF_TARGET_ESP32
default 5 if IDF_TARGET_ESP32S3
help help
This option selects the GPIO pin used for the RX signal. Connect the This option selects the GPIO pin used for the RX signal. Connect the
RX signal to your transceiver. RX signal to your transceiver.

View File

@@ -3,8 +3,9 @@ menu "Example Configuration"
config EXAMPLE_TX_GPIO_NUM config EXAMPLE_TX_GPIO_NUM
int "TX GPIO number" int "TX GPIO number"
default 2 if IDF_TARGET_ESP32C3 default 2 if IDF_TARGET_ESP32C3
default 20 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3 default 20 if IDF_TARGET_ESP32S2
default 21 if IDF_TARGET_ESP32 default 21 if IDF_TARGET_ESP32
default 4 if IDF_TARGET_ESP32S3
help help
This option selects the GPIO pin used for the TX signal. Connect the This option selects the GPIO pin used for the TX signal. Connect the
TX signal to your transceiver. TX signal to your transceiver.
@@ -12,8 +13,9 @@ menu "Example Configuration"
config EXAMPLE_RX_GPIO_NUM config EXAMPLE_RX_GPIO_NUM
int "RX GPIO number" int "RX GPIO number"
default 3 if IDF_TARGET_ESP32C3 default 3 if IDF_TARGET_ESP32C3
default 21 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3 default 21 if IDF_TARGET_ESP32S2
default 22 if IDF_TARGET_ESP32 default 22 if IDF_TARGET_ESP32
default 5 if IDF_TARGET_ESP32S3
help help
This option selects the GPIO pin used for the RX signal. Connect the This option selects the GPIO pin used for the RX signal. Connect the
RX signal to your transceiver. RX signal to your transceiver.

View File

@@ -3,8 +3,9 @@ menu "Example Configuration"
config EXAMPLE_TX_GPIO_NUM config EXAMPLE_TX_GPIO_NUM
int "TX GPIO number" int "TX GPIO number"
default 2 if IDF_TARGET_ESP32C3 default 2 if IDF_TARGET_ESP32C3
default 20 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3 default 20 if IDF_TARGET_ESP32S2
default 21 if IDF_TARGET_ESP32 default 21 if IDF_TARGET_ESP32
default 4 if IDF_TARGET_ESP32S3
help help
This option selects the GPIO pin used for the TX signal. Connect the This option selects the GPIO pin used for the TX signal. Connect the
TX signal to your transceiver. TX signal to your transceiver.
@@ -12,8 +13,9 @@ menu "Example Configuration"
config EXAMPLE_RX_GPIO_NUM config EXAMPLE_RX_GPIO_NUM
int "RX GPIO number" int "RX GPIO number"
default 3 if IDF_TARGET_ESP32C3 default 3 if IDF_TARGET_ESP32C3
default 21 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3 default 21 if IDF_TARGET_ESP32S2
default 22 if IDF_TARGET_ESP32 default 22 if IDF_TARGET_ESP32
default 5 if IDF_TARGET_ESP32S3
help help
This option selects the GPIO pin used for the RX signal. Connect the This option selects the GPIO pin used for the RX signal. Connect the
RX signal to your transceiver. RX signal to your transceiver.

View File

@@ -25,7 +25,7 @@ idf.py menuconfig
* Under `Example Configuration`, configure the pin assignments using the options `TX GPIO Number` and `RX GPIO Number` according to how the target was connected to the transceiver. By default, `TX GPIO Number` and `RX GPIO Number` are set to the following values: * Under `Example Configuration`, configure the pin assignments using the options `TX GPIO Number` and `RX GPIO Number` according to how the target was connected to the transceiver. By default, `TX GPIO Number` and `RX GPIO Number` are set to the following values:
* On the ESP32, `TX GPIO Number` and `RX GPIO Number` default to `21` and `22` respectively * On the ESP32, `TX GPIO Number` and `RX GPIO Number` default to `21` and `22` respectively
* On the ESP32-S2, `TX GPIO Number` and `RX GPIO Number` default to `20` and `21` respectively * On the ESP32-S2, `TX GPIO Number` and `RX GPIO Number` default to `20` and `21` respectively
* On the ESP32-S3, `TX GPIO Number` and `RX GPIO Number` default to `20` and `21` respectively * On the ESP32-S3, `TX GPIO Number` and `RX GPIO Number` default to `4` and `5` respectively
* On the ESP32-C3, `TX GPIO Number` and `RX GPIO Number` default to `2` and `3` respectively * On the ESP32-C3, `TX GPIO Number` and `RX GPIO Number` default to `2` and `3` respectively
### Build and Flash ### Build and Flash

View File

@@ -3,8 +3,9 @@ menu "Example Configuration"
config EXAMPLE_TX_GPIO_NUM config EXAMPLE_TX_GPIO_NUM
int "TX GPIO number" int "TX GPIO number"
default 2 if IDF_TARGET_ESP32C3 default 2 if IDF_TARGET_ESP32C3
default 20 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3 default 20 if IDF_TARGET_ESP32S2
default 21 if IDF_TARGET_ESP32 default 21 if IDF_TARGET_ESP32
default 4 if IDF_TARGET_ESP32S3
help help
This option selects the GPIO pin used for the TX signal. Connect the This option selects the GPIO pin used for the TX signal. Connect the
TX signal to your transceiver. TX signal to your transceiver.
@@ -12,8 +13,9 @@ menu "Example Configuration"
config EXAMPLE_RX_GPIO_NUM config EXAMPLE_RX_GPIO_NUM
int "RX GPIO number" int "RX GPIO number"
default 3 if IDF_TARGET_ESP32C3 default 3 if IDF_TARGET_ESP32C3
default 21 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3 default 21 if IDF_TARGET_ESP32S2
default 22 if IDF_TARGET_ESP32 default 22 if IDF_TARGET_ESP32
default 5 if IDF_TARGET_ESP32S3
help help
This option selects the GPIO pin used for the RX signal. Connect the This option selects the GPIO pin used for the RX signal. Connect the
RX signal to your transceiver. RX signal to your transceiver.