summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/stm32/stm32_internal.h
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/arm/src/stm32/stm32_internal.h
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/arch/arm/src/stm32/stm32_internal.h')
-rwxr-xr-xnuttx/arch/arm/src/stm32/stm32_internal.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/nuttx/arch/arm/src/stm32/stm32_internal.h b/nuttx/arch/arm/src/stm32/stm32_internal.h
index e5d429be7..58be75b61 100755
--- a/nuttx/arch/arm/src/stm32/stm32_internal.h
+++ b/nuttx/arch/arm/src/stm32/stm32_internal.h
@@ -610,9 +610,6 @@ EXTERN int stm32_ethinitialize(int intf);
* 2. Provide stm32_spi1/2/3select() and stm32_spi1/2/3status() functions in your
* board-specific logic. These functions will perform chip selection and
* status operations using GPIOs in the way your board is configured.
- * The select() methods must call stm32_spitake() when the chip is selected
- * and stm32_spigive() when the chip is deselected. This assures mutually
- * exclusive access to the SPI for the duration while a chip is selected.
* 3. Add a calls to up_spiinitialize() in your low level application
* initialization logic
* 4. The handle returned by up_spiinitialize() may then be used to bind the
@@ -631,20 +628,6 @@ EXTERN ubyte stm32_spi2status(FAR struct spi_dev_s *dev, enum spi_dev_e devid);
EXTERN void stm32_spi3select(FAR struct spi_dev_s *dev, enum spi_dev_e devid, boolean selected);
EXTERN ubyte stm32_spi3status(FAR struct spi_dev_s *dev, enum spi_dev_e devid);
-/************************************************************************************
- * Name: stm32_spitake() and stm32_spigive()
- *
- * Description:
- * The stm32_spi1/2/3select() and stm32_spi1/2/3status() methods must call
- * stm32_spitake() when the chip is selected and stm32_spigive() when the chip is
- * deselected. This assures mutually exclusive access to the SPI for the duration
- * while a chip is selected.
- *
- ************************************************************************************/
-
-EXTERN void stm32_spitake(FAR struct spi_dev_s *dev);
-EXTERN void stm32_spigive(FAR struct spi_dev_s *dev);
-
#undef EXTERN
#if defined(__cplusplus)
}