mirror of
https://github.com/apache/nuttx.git
synced 2026-08-07 21:47:17 +00: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:
parent
3850b9b70c
commit
00aaceaf2f
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue