Add a general bit-bang SPI upper-half driver

This commit is contained in:
Gregory Nutt
2013-07-01 12:23:26 -06:00
parent 09faaccc02
commit 8b68ea2f94
11 changed files with 934 additions and 23 deletions
+2 -1
View File
@@ -1,7 +1,7 @@
############################################################################
# drivers/Makefile
#
# Copyright (C) 2007-2012 Gregory Nutt. All rights reserved.
# Copyright (C) 2007-2013 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org>
#
# Redistribution and use in source and binary forms, with or without
@@ -62,6 +62,7 @@ include power$(DELIM)Make.defs
include sensors$(DELIM)Make.defs
include sercomm$(DELIM)Make.defs
include serial$(DELIM)Make.defs
include spi$(DELIM)Make.defs
include syslog$(DELIM)Make.defs
include usbdev$(DELIM)Make.defs
include usbhost$(DELIM)Make.defs
+1 -1
View File
@@ -33,7 +33,7 @@
#
############################################################################
# Don't build anything if there is no NX support for input devices
# Don't build anything if there is no support for input devices
ifeq ($(CONFIG_INPUT),y)
+9 -10
View File
@@ -3,22 +3,15 @@
# 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..
lock, re-configure, etc.
config SPI_EXCHANGE
bool "SPI exchange"
@@ -36,5 +29,11 @@ config SPI_CMDDATA
either 9-bit SPI (yech) or 8-bit SPI and a GPIO output that selects
between command and data.
endif
config SPI_BITBANG
bool "SPI bit-bang device"
default n
---help---
Enable support for a generic SPI bit-bang device.
See include/nuttx/spi/spi_bitbang.h for further information.
endif
+544
View File
File diff suppressed because it is too large Load Diff