summaryrefslogtreecommitdiff
path: root/nuttx/arch/z80/src/ez80/ez80_spi.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-10-20 14:05:56 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-10-20 14:05:56 +0000
commit9ad896685124fb84348254f9bafe4fa5f50d9f7b (patch)
tree48cdf1a94f9920fa25e7ad4744cd5befe6edcc60 /nuttx/arch/z80/src/ez80/ez80_spi.c
parent74ec6c524d7290ebae95c7f2cb126668fdbebbd5 (diff)
downloadnuttx-9ad896685124fb84348254f9bafe4fa5f50d9f7b.tar.gz
nuttx-9ad896685124fb84348254f9bafe4fa5f50d9f7b.tar.bz2
nuttx-9ad896685124fb84348254f9bafe4fa5f50d9f7b.zip
Extend SPI interface to better handle multiple devices on same SPI bus
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2162 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/z80/src/ez80/ez80_spi.c')
-rwxr-xr-xnuttx/arch/z80/src/ez80/ez80_spi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/nuttx/arch/z80/src/ez80/ez80_spi.c b/nuttx/arch/z80/src/ez80/ez80_spi.c
index 8e34de10e..d051f074f 100755
--- a/nuttx/arch/z80/src/ez80/ez80_spi.c
+++ b/nuttx/arch/z80/src/ez80/ez80_spi.c
@@ -77,6 +77,7 @@ static void spi_recvblock(FAR struct spi_dev_s *dev, FAR ubyte *buffer, size_t
static const struct spi_ops_s g_spiops =
{
+ 0, /* lock() method not yet implemented */
ez80_spiselect, /* Provided externally by board logic */
spi_setfrequency,
spi_setmode,
@@ -85,6 +86,7 @@ static const struct spi_ops_s g_spiops =
spi_send,
spi_sndblock,
spi_recvblock,
+ 0 /* registercallback not yet implemented */
};
/* This supports is only a single SPI bus/port. If you port this to an