mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
Revise how delays are calculated in SPI bit bang driver so that we may get a little better frequency resolution
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user