mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
92 lines
2.2 KiB
Plaintext
92 lines
2.2 KiB
Plaintext
|
menu "Example Configuration"
|
||
|
|
||
|
config STORE_HISTORY
|
||
|
bool "Store command history in flash"
|
||
|
default y
|
||
|
help
|
||
|
Linenoise line editing library provides functions to save and load
|
||
|
command history. If this option is enabled, initalizes a FAT filesystem
|
||
|
and uses it to store command history.
|
||
|
|
||
|
menu "Etherent PHY Device"
|
||
|
choice PHY_MODEL
|
||
|
prompt "Ethernet PHY"
|
||
|
default CONFIG_PHY_TLK110
|
||
|
help
|
||
|
Select the PHY driver to use for the example.
|
||
|
config PHY_TLK110
|
||
|
bool "TI TLK110 PHY"
|
||
|
help
|
||
|
Select this to use the TI TLK110 PHY
|
||
|
config PHY_LAN8720
|
||
|
bool "Microchip LAN8720 PHY"
|
||
|
help
|
||
|
Select this to use the Microchip LAN8720 PHY
|
||
|
endchoice
|
||
|
|
||
|
config PHY_ADDRESS
|
||
|
int "PHY Address (0-31)"
|
||
|
default 31
|
||
|
range 0 31
|
||
|
help
|
||
|
Set the PHY Address (0-31) for the hardware configuration.
|
||
|
|
||
|
choice PHY_CLOCK_MODE
|
||
|
prompt "EMAC clock mode"
|
||
|
default PHY_CLOCK_GPIO0_IN
|
||
|
help
|
||
|
Select external (input on GPIO0) or internal (output on GPIO16 or GPIO17) clock
|
||
|
config PHY_CLOCK_GPIO0_IN
|
||
|
bool "GPIO0 input"
|
||
|
help
|
||
|
Input of 50MHz refclock on GPIO0
|
||
|
config PHY_CLOCK_GPIO16_OUT
|
||
|
bool "GPIO16 output"
|
||
|
help
|
||
|
Output the internal 50MHz APLL clock on GPIO16
|
||
|
config PHY_CLOCK_GPIO17_OUT
|
||
|
bool "GPIO17 output (inverted)"
|
||
|
help
|
||
|
Output the internal 50MHz APLL clock on GPIO17 (inverted signal)
|
||
|
endchoice
|
||
|
|
||
|
config PHY_CLOCK_MODE
|
||
|
int
|
||
|
default 0 if PHY_CLOCK_GPIO0_IN
|
||
|
default 2 if PHY_CLOCK_GPIO16_OUT
|
||
|
default 3 if PHY_CLOCK_GPIO17_OUT
|
||
|
|
||
|
config PHY_USE_POWER_PIN
|
||
|
bool "Use PHY Power (enable/disable) pin"
|
||
|
default y
|
||
|
help
|
||
|
Use a GPIO "power pin" to power the PHY on/off during operation.
|
||
|
|
||
|
if PHY_USE_POWER_PIN
|
||
|
config PHY_POWER_PIN
|
||
|
int "PHY Power GPIO"
|
||
|
default 17
|
||
|
range 0 33
|
||
|
help
|
||
|
GPIO number to use for powering on/off the PHY.
|
||
|
endif
|
||
|
endmenu
|
||
|
|
||
|
menu "Etherent SMI interface"
|
||
|
config PHY_SMI_MDC_PIN
|
||
|
int "SMI MDC Pin"
|
||
|
default 23
|
||
|
range 0 33
|
||
|
help
|
||
|
GPIO number to use for SMI clock output MDC to PHY.
|
||
|
|
||
|
config PHY_SMI_MDIO_PIN
|
||
|
int "SMI MDIO Pin"
|
||
|
default 18
|
||
|
range 0 33
|
||
|
help
|
||
|
GPIO number to use for SMI data pin MDIO to/from PHY.
|
||
|
endmenu
|
||
|
|
||
|
endmenu
|