修复SPI驱动不能使用RT_SPI_MODE_0与RT_SPI_MODE_2的错误。CLKPHA在设置工作模式时已设置,后面出现重复设置。
This commit is contained in:
parent
e89b0e7d8a
commit
7e299cd662
|
@ -149,7 +149,6 @@ static rt_err_t configure(struct rt_spi_device* device, struct rt_spi_configurat
|
|||
/* SPI configuration */
|
||||
SPI_InitStructure.DataDirection = SPI_DIR_DOUBLELINE_FULLDUPLEX;
|
||||
SPI_InitStructure.SpiMode = SPI_MODE_MASTER;
|
||||
SPI_InitStructure.CLKPHA = SPI_CLKPHA_SECOND_EDGE;
|
||||
SPI_InitStructure.NSS = SPI_NSS_SOFT;
|
||||
SPI_InitStructure.CRCPoly = 7;
|
||||
|
||||
|
|
Loading…
Reference in New Issue