diff options
| author | weety <[email protected]> | 2015-09-04 22:47:48 +0800 |
|---|---|---|
| committer | weety <[email protected]> | 2015-09-04 22:47:48 +0800 |
| commit | ebea51e8a81c9345c2cfe8064d6829076f7d36ac (patch) | |
| tree | dcdf53b9becd8174268f86740790f087e6490758 /components/drivers/include | |
| parent | 31f24f34608f9e5c66bcf1ea1aecf5c4dea0891d (diff) | |
Add more spi mode.
Diffstat (limited to 'components/drivers/include')
| -rw-r--r-- | components/drivers/include/drivers/spi.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 */ |
