Skip to content

Commit

Permalink
ESP32: Fix with pigweed config options to support multiple esp32 vari…
Browse files Browse the repository at this point in the history
…ants (#8830)
  • Loading branch information
sweetymhaiske authored and pull[bot] committed Aug 24, 2021
1 parent 68b84c6 commit 3248421
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 13 deletions.
12 changes: 8 additions & 4 deletions examples/all-clusters-app/esp32/main/Kconfig.projbuild
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,12 @@ menu "Demo"
endmenu

menu "PW RPC Debug channel"
depends on ENABLE_PW_RPC
config EXAMPLE_UART_PORT_NUM
int "UART port number"
range 0 2 if IDF_TARGET_ESP32
default 0 if IDF_TARGET_ESP32
range 0 1 if IDF_TARGET_ESP32C3
default 0
help
UART communication port number for the example.
See UART documentation for available port numbers.
Expand All @@ -121,17 +123,19 @@ menu "PW RPC Debug channel"
config EXAMPLE_UART_RXD
int "UART RXD pin number"
range 0 34 if IDF_TARGET_ESP32
default 3
range 0 19 if IDF_TARGET_ESP32C3
default 5
help
GPIO number for UART RX pin. See UART documentation for more information
about available pin numbers for UART.

config EXAMPLE_UART_TXD
int "UART TXD pin number"
range 0 34 if IDF_TARGET_ESP32
default 1
range 0 19 if IDF_TARGET_ESP32C3
default 4
help
GPIO number for UART TX pin. See UART documentation for more information
about available pin numbers for UART.

endmenu
endmenu
10 changes: 7 additions & 3 deletions examples/ipv6only-app/esp32/main/Kconfig.projbuild
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
menu "PW RPC Example Configuration"

depends on ENABLE_PW_RPC
config EXAMPLE_UART_PORT_NUM
int "UART port number"
range 0 2 if IDF_TARGET_ESP32
default 0 if IDF_TARGET_ESP32
range 0 1 if IDF_TARGET_ESP32C3
default 0
help
UART communication port number for the example.
See UART documentation for available port numbers.
Expand All @@ -18,15 +20,17 @@ menu "PW RPC Example Configuration"
config EXAMPLE_UART_RXD
int "UART RXD pin number"
range 0 34 if IDF_TARGET_ESP32
default 3
range 0 19 if IDF_TARGET_ESP32C3
default 5
help
GPIO number for UART RX pin. See UART documentation for more information
about available pin numbers for UART.

config EXAMPLE_UART_TXD
int "UART TXD pin number"
range 0 34 if IDF_TARGET_ESP32
default 1
range 0 19 if IDF_TARGET_ESP32C3
default 4
help
GPIO number for UART TX pin. See UART documentation for more information
about available pin numbers for UART.
Expand Down
9 changes: 6 additions & 3 deletions examples/lock-app/esp32/main/Kconfig.projbuild
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ depends on ENABLE_PW_RPC
config EXAMPLE_UART_PORT_NUM
int "UART port number"
range 0 2 if IDF_TARGET_ESP32
default 0 if IDF_TARGET_ESP32
range 0 1 if IDF_TARGET_ESP32C3
default 0
help
UART communication port number for the example.
See UART documentation for available port numbers.
Expand All @@ -83,15 +84,17 @@ depends on ENABLE_PW_RPC
config EXAMPLE_UART_RXD
int "UART RXD pin number"
range 0 34 if IDF_TARGET_ESP32
default 3
range 0 19 if IDF_TARGET_ESP32C3
default 5
help
GPIO number for UART RX pin. See UART documentation for more information
about available pin numbers for UART.

config EXAMPLE_UART_TXD
int "UART TXD pin number"
range 0 34 if IDF_TARGET_ESP32
default 1
range 0 19 if IDF_TARGET_ESP32C3
default 4
help
GPIO number for UART TX pin. See UART documentation for more information
about available pin numbers for UART.
Expand Down
10 changes: 7 additions & 3 deletions examples/pigweed-app/esp32/main/Kconfig.projbuild
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
menu "PW RPC Example Configuration"

depends on ENABLE_PW_RPC
config EXAMPLE_UART_PORT_NUM
int "UART port number"
range 0 2 if IDF_TARGET_ESP32
default 0 if IDF_TARGET_ESP32
range 0 1 if IDF_TARGET_ESP32C3
default 0
help
UART communication port number for the example.
See UART documentation for available port numbers.
Expand All @@ -18,15 +20,17 @@ menu "PW RPC Example Configuration"
config EXAMPLE_UART_RXD
int "UART RXD pin number"
range 0 34 if IDF_TARGET_ESP32
default 3
range 0 19 if IDF_TARGET_ESP32C3
default 5
help
GPIO number for UART RX pin. See UART documentation for more information
about available pin numbers for UART.

config EXAMPLE_UART_TXD
int "UART TXD pin number"
range 0 34 if IDF_TARGET_ESP32
default 1
range 0 19 if IDF_TARGET_ESP32C3
default 4
help
GPIO number for UART TX pin. See UART documentation for more information
about available pin numbers for UART.
Expand Down

0 comments on commit 3248421

Please sign in to comment.