summaryrefslogtreecommitdiff
path: root/nuttx/configs/ea3131/src/up_spi.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-09-30 03:59:51 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-09-30 03:59:51 +0000
commitb666f8789bc6eb544691ac482fa922667f3581a2 (patch)
tree04907862ddd390bcdd5c492487b62e2b4b184608 /nuttx/configs/ea3131/src/up_spi.c
parent08a91e9cb4526c3a20a8af895579004d77e5de7e (diff)
downloadpx4-nuttx-b666f8789bc6eb544691ac482fa922667f3581a2.tar.gz
px4-nuttx-b666f8789bc6eb544691ac482fa922667f3581a2.tar.bz2
px4-nuttx-b666f8789bc6eb544691ac482fa922667f3581a2.zip
Remove bogus SPI logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2954 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/ea3131/src/up_spi.c')
-rwxr-xr-xnuttx/configs/ea3131/src/up_spi.c25
1 files changed, 5 insertions, 20 deletions
diff --git a/nuttx/configs/ea3131/src/up_spi.c b/nuttx/configs/ea3131/src/up_spi.c
index a8868ca9f..c2df60a48 100755
--- a/nuttx/configs/ea3131/src/up_spi.c
+++ b/nuttx/configs/ea3131/src/up_spi.c
@@ -96,16 +96,12 @@
void weak_function lpc313x_spiinitialize(void)
{
- /* NOTE: Clocking for SPI has already been provided.
- * Configurations of SPI pins is performed in lpc313x_spi.c.
- * Here, we only initialize chip select pins unique to the board
- * architecture.
+ /* NOTE: Clocking for SPI has already been provided. Pin configuration is performed
+ * on-the-fly, so no additional setup is required.
*/
-
- gpio_outputhigh(LPC313X_IOCONFIG_SPI, SPINOR_CS);
}
-/****************************************************************************
+/************************************************************************************
* Name: lpc313x_spiselect and lpc313x_spistatus
*
* Description:
@@ -128,23 +124,12 @@ void weak_function lpc313x_spiinitialize(void)
* mmcsd_spislotinitialize(), for example, will bind the SPI driver to
* the SPI MMC/SD driver).
*
- ****************************************************************************/
+ ************************************************************************************/
void lpc313x_spiselect(FAR struct spi_dev_s *dev, enum spi_dev_e devid, bool selected)
{
spidbg("devid: %d CS: %s\n", (int)devid, selected ? "assert" : "de-assert");
-
- if (devid == SPIDEV_FLASH)
- {
- if (selected)
- {
- gpio_outputlow(LPC313X_IOCONFIG_SPI, SPINOR_CS);
- }
- else
- {
- gpio_outputhigh(LPC313X_IOCONFIG_SPI, SPINOR_CS);
- }
- }
+#warning "Missing logic"
}
uint8_t lpc313x_spistatus(FAR struct spi_dev_s *dev, enum spi_dev_e devid)