From ebea51e8a81c9345c2cfe8064d6829076f7d36ac Mon Sep 17 00:00:00 2001 From: weety Date: Fri, 4 Sep 2015 22:47:48 +0800 Subject: [PATCH] Add more spi mode. --- components/drivers/include/drivers/spi.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/drivers/include/drivers/spi.h b/components/drivers/include/drivers/spi.h index cfa4b73ca3..f76b329cab 100644 --- a/components/drivers/include/drivers/spi.h +++ b/components/drivers/include/drivers/spi.h @@ -59,6 +59,11 @@ extern "C"{ #define RT_SPI_MODE_MASK (RT_SPI_CPHA | RT_SPI_CPOL | RT_SPI_MSB) +#define RT_SPI_CS_HIGH (1<<4) /* Chipselect active high */ +#define RT_SPI_NO_CS (1<<5) /* No chipselect */ +#define RT_SPI_3WIRE (1<<6) /* SI/SO pin shared */ +#define RT_SPI_READY (1<<7) /* Slave pulls low to pause */ + /** * SPI message structure */