diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-07-02 12:37:20 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-07-02 12:37:20 -0600 |
commit | cae1325e2b7a87ca6fb94b96ef01d524aebb3e0f (patch) | |
tree | 21644da424deb0fafd1403c1aa3082c38d60a438 /nuttx/drivers/spi | |
parent | a75f54db7710ae569cbb8bbb2141a08d9f5df1e2 (diff) | |
download | px4-nuttx-cae1325e2b7a87ca6fb94b96ef01d524aebb3e0f.tar.gz px4-nuttx-cae1325e2b7a87ca6fb94b96ef01d524aebb3e0f.tar.bz2 px4-nuttx-cae1325e2b7a87ca6fb94b96ef01d524aebb3e0f.zip |
Correct port direction for Arduino MISO signal
Diffstat (limited to 'nuttx/drivers/spi')
-rwxr-xr-x | nuttx/drivers/spi/spi_bitbang.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nuttx/drivers/spi/spi_bitbang.c b/nuttx/drivers/spi/spi_bitbang.c index 42d1fc530..b720266ee 100755 --- a/nuttx/drivers/spi/spi_bitbang.c +++ b/nuttx/drivers/spi/spi_bitbang.c @@ -238,6 +238,8 @@ static void spi_select(FAR struct spi_dev_s *dev, enum spi_dev_e devid, bool selected) { FAR struct spi_bitbang_s *priv = (FAR struct spi_bitbang_s *)dev; + + spivdbg("devid=%d selected=%d\n", devid, selected); DEBUGASSERT(priv && priv->low->select); priv->low->select(priv, devid, selected); } @@ -287,6 +289,7 @@ static uint32_t spi_setfrequency(FAR struct spi_dev_s *dev, uint32_t frequency) static void spi_setmode(FAR struct spi_dev_s *dev, enum spi_mode_e mode) { FAR struct spi_bitbang_s *priv = (FAR struct spi_bitbang_s *)dev; + DEBUGASSERT(priv && priv->low->setmode); priv->low->setmode(priv, mode); spivdbg("mode=%d exchange=%p\n", mode, priv->exchange); |