diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-07-01 20:55:36 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-07-01 20:55:36 -0600 |
commit | 0592a8115275eed1c42438f880ee49dc79e33bbe (patch) | |
tree | fff9605959c6ced8ddbc843c9210ba3a58e596b8 /nuttx/drivers/spi | |
parent | c006b90a4cd2abf0e698db9f5fd99dd21f146016 (diff) | |
download | px4-nuttx-0592a8115275eed1c42438f880ee49dc79e33bbe.tar.gz px4-nuttx-0592a8115275eed1c42438f880ee49dc79e33bbe.tar.bz2 px4-nuttx-0592a8115275eed1c42438f880ee49dc79e33bbe.zip |
Revise how delays are calculated in SPI bit bang driver so that we may get a little better frequency resolution
Diffstat (limited to 'nuttx/drivers/spi')
-rwxr-xr-x | nuttx/drivers/spi/spi_bitbang.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nuttx/drivers/spi/spi_bitbang.c b/nuttx/drivers/spi/spi_bitbang.c index 76046a56a..42d1fc530 100755 --- a/nuttx/drivers/spi/spi_bitbang.c +++ b/nuttx/drivers/spi/spi_bitbang.c @@ -266,6 +266,7 @@ static uint32_t spi_setfrequency(FAR struct spi_dev_s *dev, uint32_t frequency) actual = priv->low->setfrequency(priv, frequency); spivdbg("frequency=%d holdtime=%d actual=%d\n", frequency, priv->holdtime, actual); + return actual; } /**************************************************************************** |