summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2020-03-16 15:34:33 +0800
committerGitHub <[email protected]>2020-03-16 15:34:33 +0800
commit822d8f40025f58e25c0fa806ef829b68bbfc44a0 (patch)
treea7d1ebe74f23420dac7b022d2c2a3cf41962aa35 /components
parent32e07e51a7792f07e3802ff6086bc5e8e70765f2 (diff)
parentd906bf5b18332cc2ea689158f758afe74d8bfa18 (diff)
Merge pull request #3456 from zhao0116/spi
spi: support slave mode and master mode runtime config
Diffstat (limited to 'components')
-rw-r--r--components/drivers/include/drivers/spi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/drivers/include/drivers/spi.h b/components/drivers/include/drivers/spi.h
index 04a65421a5..301726fda8 100644
--- a/components/drivers/include/drivers/spi.h
+++ b/components/drivers/include/drivers/spi.h
@@ -43,7 +43,7 @@ extern "C"{
#define RT_SPI_MODE_2 (RT_SPI_CPOL | 0) /* CPOL = 1, CPHA = 0 */
#define RT_SPI_MODE_3 (RT_SPI_CPOL | RT_SPI_CPHA) /* CPOL = 1, CPHA = 1 */
-#define RT_SPI_MODE_MASK (RT_SPI_CPHA | RT_SPI_CPOL | RT_SPI_MSB)
+#define RT_SPI_MODE_MASK (RT_SPI_CPHA | RT_SPI_CPOL | RT_SPI_MSB | RT_SPI_SLAVE)
#define RT_SPI_BUS_MODE_SPI (1<<0)
#define RT_SPI_BUS_MODE_QSPI (1<<1)