summaryrefslogtreecommitdiff
path: root/nuttx/Documentation/NuttxPortingGuide.html
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/Documentation/NuttxPortingGuide.html
parent74ec6c524d7290ebae95c7f2cb126668fdbebbd5 (diff)
downloadpx4-nuttx-9ad896685124fb84348254f9bafe4fa5f50d9f7b.tar.gz
px4-nuttx-9ad896685124fb84348254f9bafe4fa5f50d9f7b.tar.bz2
px4-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/Documentation/NuttxPortingGuide.html')
-rw-r--r--nuttx/Documentation/NuttxPortingGuide.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/nuttx/Documentation/NuttxPortingGuide.html b/nuttx/Documentation/NuttxPortingGuide.html
index a9bf7df8d..dec31beea 100644
--- a/nuttx/Documentation/NuttxPortingGuide.html
+++ b/nuttx/Documentation/NuttxPortingGuide.html
@@ -1805,6 +1805,7 @@ extern void up_ledoff(int led);
Each SPI device driver must implement an instance of <code>struct spi_ops_s</code>.
That structure defines a call table with the following methods:
<ul>
+ <p><code>void lock(FAR struct spi_dev_s *dev);</code></p>
<p><code>void select(FAR struct spi_dev_s *dev, enum spi_dev_e devid, boolean selected);</code><br>
<code>uint32 setfrequency(FAR struct spi_dev_s *dev, uint32 frequency);</code><br>
<code>void setmode(FAR struct spi_dev_s *dev, enum spi_mode_e mode);</code><br>