mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
dd81b56fb6
Updated examples to be able to build for C5 and P4. Added Ethernet support for static_ip example.
99 lines
3.0 KiB
Plaintext
99 lines
3.0 KiB
Plaintext
menu "Example Configuration"
|
|
# Hidden variable to get configuration of Component for Ethernet Initialization
|
|
config EXAMPLE_USE_ETH
|
|
bool
|
|
default y if ETHERNET_INTERNAL_SUPPORT || ETHERNET_SPI_SUPPORT
|
|
default n
|
|
|
|
config EXAMPLE_STATIC_IP_ADDR
|
|
string "Static IP address"
|
|
default "192.168.4.2"
|
|
help
|
|
Set static IP address.
|
|
|
|
config EXAMPLE_STATIC_NETMASK_ADDR
|
|
string "Static netmask address"
|
|
default "255.255.255.0"
|
|
help
|
|
Set static netmask address.
|
|
|
|
config EXAMPLE_STATIC_GW_ADDR
|
|
string "Static gateway address"
|
|
default "192.168.4.1"
|
|
help
|
|
Set static gateway address.
|
|
|
|
choice EXAMPLE_STATIC_DNS_SERVER
|
|
prompt "Choose DNS server"
|
|
default EXAMPLE_STATIC_DNS_AUTO
|
|
help
|
|
Select auto to make gateway address as DNS server or manual to input your DNS server
|
|
config EXAMPLE_STATIC_DNS_AUTO
|
|
bool "Use gateway address as DNS server"
|
|
help
|
|
Set DNS server the same as gateway address
|
|
|
|
config EXAMPLE_STATIC_DNS_MANUAL
|
|
bool "Set manual value as DNS server"
|
|
help
|
|
Set DNS server with you want
|
|
endchoice
|
|
|
|
config EXAMPLE_STATIC_DNS_SERVER_MAIN
|
|
string "Main DNS server address"
|
|
default "192.168.4.1"
|
|
depends on EXAMPLE_STATIC_DNS_MANUAL
|
|
help
|
|
Set main DNS server address.
|
|
|
|
config EXAMPLE_STATIC_DNS_SERVER_BACKUP
|
|
string "Backup DNS server address"
|
|
default "192.168.4.1"
|
|
depends on EXAMPLE_STATIC_DNS_MANUAL
|
|
help
|
|
Set backup DNS server address. It can be same with the main DNS server address or leave empty.
|
|
|
|
config EXAMPLE_STATIC_DNS_RESOLVE_TEST
|
|
bool "Enable DNS resolve test"
|
|
default n
|
|
help
|
|
Enable it and configure EXAMPLE_STATIC_RESOLVE_DOMAIN to resolve DNS domain name
|
|
|
|
config EXAMPLE_STATIC_RESOLVE_DOMAIN
|
|
string "Domain name to resolve"
|
|
default "www.espressif.com"
|
|
depends on EXAMPLE_STATIC_DNS_RESOLVE_TEST
|
|
help
|
|
Set domain name for DNS test
|
|
endmenu
|
|
|
|
menu "WiFi Example Configuration"
|
|
config EXAMPLE_USE_WIFI
|
|
depends on SOC_WIFI_SUPPORTED
|
|
bool "Use WiFi"
|
|
default y
|
|
help
|
|
Select to use WiFi as network interface in the example.
|
|
|
|
if EXAMPLE_USE_WIFI
|
|
config EXAMPLE_WIFI_SSID
|
|
string "WiFi SSID"
|
|
default "myssid"
|
|
help
|
|
SSID (network name) for the example to connect to.
|
|
|
|
config EXAMPLE_WIFI_PASSWORD
|
|
string "WiFi Password"
|
|
default "mypassword"
|
|
help
|
|
WiFi password (WPA or WPA2) for the example to use.
|
|
|
|
config EXAMPLE_MAXIMUM_RETRY
|
|
int "Maximum retry"
|
|
default 5
|
|
help
|
|
Set the Maximum retry to avoid station reconnecting to the AP unlimited when the AP is really
|
|
inexistent.
|
|
endif # EXAMPLE_WIFI
|
|
endmenu
|