Kconfig.projbuild 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. menu "Example Configuration"
  2. config EXAMPLE_SDIO_OVER_SPI
  3. bool "Host use SPI bus to communicate with slave"
  4. default n
  5. help
  6. If this is set, the host tries using SPI bus to communicate with slave.
  7. Otherwise, the standarad SD bus is used.
  8. config EXAMPLE_SDIO_4BIT
  9. bool "Host tries using 4-bit mode to communicate with slave"
  10. default n
  11. depends on !EXAMPLE_SDIO_OVER_SPI
  12. help
  13. If this is set, the host tries using 4-bit mode to communicate with
  14. slave. If failed, the communication falls back to 1-bit mode.
  15. If this is not set, the host uses 1-bit mode. However, CMD1 is still
  16. mandatory for interrupts.
  17. Note that 4-bit mode is not compatible (by default) if the slave is
  18. using 3.3V flash which requires a pull-down on the MTDI pin.
  19. config EXAMPLE_SDIO_HIGHSPEED
  20. bool "Host tries using HS mode to communicate with slave"
  21. default y
  22. help
  23. If this is set, the host tries using high-speed mode to communicate
  24. with slave. If the slave doesn't support high-speed mode, the
  25. communication falls back to default-speed mode. If this is not set,
  26. the host uses DS mode.
  27. If the example does not work, please try disabling the HS mode.
  28. config EXAMPLE_NO_INTR_LINE
  29. bool "The host is not connected to the interrupt line (DAT1) of slave"
  30. default n
  31. help
  32. If this is set, the host example will not check the interrupt line but poll slave
  33. registers to see whether the slave has interrupts for the host.
  34. Working without the interrupt line may increase the CPU load of the host, and do harm
  35. to the response speed to slave events, though can save 1 GPIO for other purposes in
  36. non-4-bit mode.
  37. choice EXAMPLE_SLAVE
  38. prompt "GPIO to control slave EN in Espressif master-slave board."
  39. default EXAMPLE_SLAVE_NONE
  40. help
  41. If Espressif master-slave board is used, select the correct GPIO to control slave's EN.
  42. config EXAMPLE_SLAVE_NONE
  43. bool "Not using Espressif master-slave board."
  44. config EXAMPLE_SLAVE_B1
  45. bool "Using slave B1"
  46. endchoice
  47. config EXAMPLE_SLAVE_PWR_NEGTIVE_ACTIVE
  48. bool "Slave power control pin is negtive active, otherwise postive active"
  49. depends on !EXAMPLE_SLAVE_NONE
  50. default n
  51. help
  52. Slave power control pin is negtive active, otherwise postive active
  53. endmenu