mirror of
https://github.com/apache/nuttx.git
synced 2026-03-27 02:29:15 +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:
@@ -313,6 +313,7 @@ void cc1101_access_begin(FAR struct cc1101_dev_s * dev)
|
||||
SPI_SELECT(dev->spi, SPIDEV_WIRELESS, true);
|
||||
SPI_SETMODE(dev->spi, SPIDEV_MODE0); /* CPOL=0, CPHA=0 */
|
||||
SPI_SETBITS(dev->spi, 8);
|
||||
(void)SPI_HWFEATURES(dev->spi, 0);
|
||||
}
|
||||
|
||||
void cc1101_access_end(FAR struct cc1101_dev_s * dev)
|
||||
|
||||
Reference in New Issue
Block a user