mirror of
https://github.com/apache/nuttx.git
synced 2025-12-16 09:45:18 +08:00
All SPI-based device drivers needs to call SPI_HWFEATURES() with zero in order to co-exist with drivers that use H/W features
This commit is contained in:
@@ -288,6 +288,7 @@ static void ee25xx_lock(FAR struct spi_dev_s *dev)
|
||||
|
||||
SPI_SETMODE(dev, CONFIG_EE25XX_SPIMODE);
|
||||
SPI_SETBITS(dev, 8);
|
||||
(void)SPI_HWFEATURES(dev, 0);
|
||||
(void)SPI_SETFREQUENCY(dev, 10000000); /* This is the default speed */
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user