summaryrefslogtreecommitdiff
path: root/components/drivers/include
diff options
context:
space:
mode:
authorMurphyZhao <[email protected]>2018-08-16 14:30:19 +0800
committerMurphyZhao <[email protected]>2018-08-16 14:48:46 +0800
commit651149fcbb4347b8daf7e738f2d85bb7143808c7 (patch)
tree9c5329900d3140743951512a04160c49e4b1419d /components/drivers/include
parentd06f9ac9df5002836d6b239529951023895ad840 (diff)
[components/drivers/spi] 增加 sfud flash 设备查找接口
Signed-off-by: MurphyZhao <[email protected]>
Diffstat (limited to 'components/drivers/include')
-rw-r--r--components/drivers/include/drivers/spi.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/drivers/include/drivers/spi.h b/components/drivers/include/drivers/spi.h
index f76b329cab..0fbaabe5dd 100644
--- a/components/drivers/include/drivers/spi.h
+++ b/components/drivers/include/drivers/spi.h
@@ -36,8 +36,8 @@ extern "C"{
#define RT_SPI_CPOL (1<<1) /* bit[1]:CPOL, clock polarity */
/**
* At CPOL=0 the base value of the clock is zero
- * - For CPHA=0, data are captured on the clock's rising edge (low��high transition)
- * and data are propagated on a falling edge (high��low clock transition).
+ * - For CPHA=0, data are captured on the clock's rising edge (low->high transition)
+ * and data are propagated on a falling edge (high->low clock transition).
* - For CPHA=1, data are captured on the clock's falling edge and data are
* propagated on a rising edge.
* At CPOL=1 the base value of the clock is one (inversion of CPOL=0)
@@ -118,6 +118,7 @@ struct rt_spi_device
struct rt_spi_bus *bus;
struct rt_spi_configuration config;
+ void *user_data;
};
#define SPI_DEVICE(dev) ((struct rt_spi_device *)(dev))