mirror of
https://github.com/apache/nuttx.git
synced 2026-06-08 01:42:58 +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:
@@ -35,6 +35,7 @@ int board_power_off(int status)
|
|||||||
struct spi_dev_s *spi = up_spiinitialize(0);
|
struct spi_dev_s *spi = up_spiinitialize(0);
|
||||||
|
|
||||||
SPI_SETBITS(spi, 16);
|
SPI_SETBITS(spi, 16);
|
||||||
|
(void)SPI_HWFEATURES(spi, 0);
|
||||||
|
|
||||||
tx = (1 << 6) | (1 << 1);
|
tx = (1 << 6) | (1 << 1);
|
||||||
SPI_SNDBLOCK(spi, &tx, 1);
|
SPI_SNDBLOCK(spi, &tx, 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user