Remove bogus SPI logic

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2954 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2010-09-30 03:59:51 +00:00
parent e664a928e0
commit 73d21f8508

View File

@ -96,16 +96,12 @@
void weak_function lpc313x_spiinitialize(void) void weak_function lpc313x_spiinitialize(void)
{ {
/* NOTE: Clocking for SPI has already been provided. /* NOTE: Clocking for SPI has already been provided. Pin configuration is performed
* Configurations of SPI pins is performed in lpc313x_spi.c. * on-the-fly, so no additional setup is required.
* Here, we only initialize chip select pins unique to the board
* architecture.
*/ */
gpio_outputhigh(LPC313X_IOCONFIG_SPI, SPINOR_CS);
} }
/**************************************************************************** /************************************************************************************
* Name: lpc313x_spiselect and lpc313x_spistatus * Name: lpc313x_spiselect and lpc313x_spistatus
* *
* Description: * Description:
@ -128,23 +124,12 @@ void weak_function lpc313x_spiinitialize(void)
* mmcsd_spislotinitialize(), for example, will bind the SPI driver to * mmcsd_spislotinitialize(), for example, will bind the SPI driver to
* the SPI MMC/SD driver). * the SPI MMC/SD driver).
* *
****************************************************************************/ ************************************************************************************/
void lpc313x_spiselect(FAR struct spi_dev_s *dev, enum spi_dev_e devid, bool selected) 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"); spidbg("devid: %d CS: %s\n", (int)devid, selected ? "assert" : "de-assert");
#warning "Missing logic"
if (devid == SPIDEV_FLASH)
{
if (selected)
{
gpio_outputlow(LPC313X_IOCONFIG_SPI, SPINOR_CS);
}
else
{
gpio_outputhigh(LPC313X_IOCONFIG_SPI, SPINOR_CS);
}
}
} }
uint8_t lpc313x_spistatus(FAR struct spi_dev_s *dev, enum spi_dev_e devid) uint8_t lpc313x_spistatus(FAR struct spi_dev_s *dev, enum spi_dev_e devid)