From 651149fcbb4347b8daf7e738f2d85bb7143808c7 Mon Sep 17 00:00:00 2001 From: MurphyZhao Date: Thu, 16 Aug 2018 14:30:19 +0800 Subject: [components/drivers/spi] 增加 sfud flash 设备查找接口 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: MurphyZhao --- components/drivers/include/drivers/spi.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'components/drivers/include') 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)) -- cgit v1.3.1