Explorar el Código

Add more spi mode.

weety hace 10 años
padre
commit
ebea51e8a8
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      components/drivers/include/drivers/spi.h

+ 5 - 0
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
  */