summaryrefslogtreecommitdiff
path: root/nuttx/drivers/spi
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-07-01 08:11:54 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-07-01 08:11:54 -0600
commit55f91130376b9580a9720a641e80d4049a19d639 (patch)
treea2e85a84f3c1b8f5bdf4f8121e24846f79a43831 /nuttx/drivers/spi
parent39c19d9c4ef7c134a59bfacb671032df6e3156f2 (diff)
downloadnuttx-55f91130376b9580a9720a641e80d4049a19d639.tar.gz
nuttx-55f91130376b9580a9720a641e80d4049a19d639.tar.bz2
nuttx-55f91130376b9580a9720a641e80d4049a19d639.zip
Created new directories to hold SPI-related files
Diffstat (limited to 'nuttx/drivers/spi')
-rw-r--r--nuttx/drivers/spi/Kconfig40
1 files changed, 40 insertions, 0 deletions
diff --git a/nuttx/drivers/spi/Kconfig b/nuttx/drivers/spi/Kconfig
new file mode 100644
index 000000000..645f4017b
--- /dev/null
+++ b/nuttx/drivers/spi/Kconfig
@@ -0,0 +1,40 @@
+#
+# For a description of the syntax of this configuration file,
+# see misc/tools/kconfig-language.txt.
+#
+
+config SPI
+ bool "SPI Driver Support"
+ default n
+ ---help---
+ This selection enables selection of common SPI options. This option
+ should be enabled by all platforms that support SPI interfaces.
+ See include/nuttx/spi/spi.h for further SPI driver information.
+
+if SPI
+config SPI_OWNBUS
+ bool "SPI single device"
+ default n
+ ---help---
+ Set if there is only one active device on the SPI bus. No locking or
+ SPI configuration will be performed. It is not necessary for clients to
+ lock, re-configure, etc..
+
+config SPI_EXCHANGE
+ bool "SPI exchange"
+ default y
+ ---help---
+ Driver supports a single exchange method (vs a recvblock() and
+ sndblock() methods).
+
+config SPI_CMDDATA
+ bool "SPI CMD/DATA"
+ default n
+ ---help---
+ Devices on the SPI bus require out-of-band support to distinguish
+ command transfers from data transfers. Such devices will often support
+ either 9-bit SPI (yech) or 8-bit SPI and a GPIO output that selects
+ between command and data.
+
+endif
+