Make bit-order SPI H/W feature configurable for better error detection

This commit is contained in:
Gregory Nutt
2016-08-08 11:54:13 -06:00
parent c3cfd37791
commit 6df28bc74e
9 changed files with 44 additions and 9 deletions
+5 -2
View File
@@ -232,13 +232,16 @@
# endif
# ifdef CONFIG_SPI_CS_CONTROL
# define HWFEAT_FORCE_CS_CONTROL_MASK (7 << 1)
# define HWFEAT_FORCE_CS_INACTIVE_AFTER_TRANSFER (1 << 1)
# define HWFEAT_FORCE_CS_ACTIVE_AFTER_TRANSFER (1 << 2)
# define HWFEAT_ESCAPE_LASTXFER (1 << 3)
# endif
# define HWFEAT_MSBFIRST (0 << 4)
# define HWFEAT_LSBFIRST (1 << 4)
# ifdef CONFIG_SPI_BITORDER
# define HWFEAT_MSBFIRST (0 << 4)
# define HWFEAT_LSBFIRST (1 << 4)
# endif
#else
/* Any attempt to select hardware features with CONFIG_SPI_HWFEATURES