2019-12-25 09:32:12 +00:00
|
|
|
menu "Example Configuration"
|
|
|
|
|
|
|
|
config EXAMPLE_USE_SPI1_PINS
|
2020-04-09 05:30:12 +00:00
|
|
|
bool "The example uses SPI1 shared pins for EEPROM connection"
|
2019-12-25 09:32:12 +00:00
|
|
|
default n
|
2020-04-09 05:30:12 +00:00
|
|
|
depends on SPI_FLASH_SHARE_SPI1_BUS
|
2019-12-25 09:32:12 +00:00
|
|
|
help
|
|
|
|
Enable this option will make the EEPROM use SPI1 pins, which is shared with the main
|
|
|
|
flash chip.
|
|
|
|
|
|
|
|
Currently this example hasn't supported SPI1 pins on other chips yet.
|
|
|
|
|
|
|
|
config EXAMPLE_INTR_USED
|
|
|
|
bool "Use the interrupt to detect the eeprom busy"
|
|
|
|
default y
|
|
|
|
depends on !EXAMPLE_USE_SPI1_PINS
|
|
|
|
help
|
|
|
|
Enable this option will allow the example to be blocked while the EEPROM is working
|
|
|
|
in progress, and unblocked by GPIO interrupt. Otherwise the example will keep polling
|
|
|
|
until the EEPROM is idle.
|
|
|
|
|
|
|
|
config EXAMPLE_5V_COMMANDS
|
|
|
|
bool "The EEPROM is supplied by 5V power"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
The Erase_All and Write_All commands of EEPROM are only supported when EEPROM is
|
|
|
|
supplied by 5V power. Enable this to use those two commands.
|
|
|
|
|
|
|
|
But please note that ESP chips don't support 5V IO, you need to add external
|
|
|
|
level-shifting circuits between ESP chip to the EEPROM.
|
|
|
|
|
|
|
|
endmenu
|