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:
Gregory Nutt 2016-01-23 16:17:42 -06:00
parent 3850b9b70c
commit 00aaceaf2f

View File

@ -35,6 +35,7 @@ int board_power_off(int status)
struct spi_dev_s *spi = up_spiinitialize(0);
SPI_SETBITS(spi, 16);
(void)SPI_HWFEATURES(spi, 0);
tx = (1 << 6) | (1 << 1);
SPI_SNDBLOCK(spi, &tx, 1);