2018-07-04 23:01:03 +00:00
|
|
|
menu "Example Configuration"
|
|
|
|
|
2018-08-23 12:43:07 +00:00
|
|
|
config SDIO_EXAMPLE_OVER_SPI
|
|
|
|
bool "Host use SPI bus to communicate with slave"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
If this is set, the host tries using SPI bus to communicate with slave.
|
|
|
|
Otherwise, the standarad SD bus is used.
|
|
|
|
|
2019-01-25 16:10:53 +00:00
|
|
|
config SDIO_EXAMPLE_4BIT
|
|
|
|
bool "Host tries using 4-bit mode to communicate with slave"
|
|
|
|
default n
|
2018-08-23 12:43:07 +00:00
|
|
|
depends on !SDIO_EXAMPLE_OVER_SPI
|
2019-01-25 16:10:53 +00:00
|
|
|
help
|
|
|
|
If this is set, the host tries using 4-bit mode to communicate with
|
|
|
|
slave. If failed, the communication falls back to 1-bit mode.
|
|
|
|
|
|
|
|
If this is not set, the host uses 1-bit mode. However, CMD1 is still
|
|
|
|
mandatory for interrupts.
|
|
|
|
|
|
|
|
Note that 4-bit mode is not compatible (by default) if the slave is
|
|
|
|
using 3.3V flash which requires a pull-down on the MTDI pin.
|
|
|
|
|
|
|
|
config SDIO_EXAMPLE_HIGHSPEED
|
|
|
|
bool "Host tries using HS mode to communicate with slave"
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
If this is set, the host tries using high-speed mode to communicate
|
|
|
|
with slave. If the slave doesn't support high-speed mode, the
|
|
|
|
communication falls back to default-speed mode. If this is not set,
|
|
|
|
the host uses DS mode.
|
|
|
|
|
|
|
|
If the example does not work, please try disabling the HS mode.
|
|
|
|
|
|
|
|
choice EXAMPLE_SLAVE
|
|
|
|
prompt "Id of Slave used in Espressif master-slave board."
|
|
|
|
default EXAMPLE_SLAVE_NONE
|
|
|
|
help
|
|
|
|
If Espressif master-slave board is used, select which slave is used.
|
|
|
|
|
|
|
|
config EXAMPLE_SLAVE_NONE
|
|
|
|
bool "Not using Espressif master-slave board."
|
|
|
|
config EXAMPLE_SLAVE_B1
|
|
|
|
bool "Using slave B1"
|
|
|
|
config EXAMPLE_SLAVE_B2
|
|
|
|
bool "Using slave B2"
|
|
|
|
config EXAMPLE_SLAVE_B3
|
|
|
|
bool "Using slave B3"
|
|
|
|
endchoice
|
2018-07-04 23:01:03 +00:00
|
|
|
|
2018-08-23 12:43:07 +00:00
|
|
|
config EXAMPLE_SLAVE_PWR_NEGTIVE_ACTIVE
|
|
|
|
bool "Slave power control pin is negtive active, otherwise postive active"
|
|
|
|
depends on !EXAMPLE_SLAVE_NONE
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
Slave power control pin is negtive active, otherwise postive active
|
|
|
|
|
2018-07-04 23:01:03 +00:00
|
|
|
endmenu
|