修复SPI驱动不能使用RT_SPI_MODE_0与RT_SPI_MODE_2的错误。CLKPHA在设置工作模式时已设置,后面出现重复设置。

This commit is contained in:
HEYAHONG 2022-11-11 09:22:17 +08:00 committed by Man, Jianting (Meco)
parent e89b0e7d8a
commit 7e299cd662
1 changed files with 0 additions and 1 deletions

View File

@ -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;