未验证 提交 a9a004f5 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #4111 from eYoung8475/master

[bsp][gd32450z-eval]fixed spi driver bug
...@@ -130,7 +130,7 @@ static rt_err_t configure(struct rt_spi_device* device, ...@@ -130,7 +130,7 @@ static rt_err_t configure(struct rt_spi_device* device,
} }
} /* baudrate */ } /* baudrate */
switch(configuration->mode) switch(configuration->mode & RT_SPI_MODE_3)
{ {
case RT_SPI_MODE_0: case RT_SPI_MODE_0:
spi_init_struct.clock_polarity_phase = SPI_CK_PL_LOW_PH_1EDGE; spi_init_struct.clock_polarity_phase = SPI_CK_PL_LOW_PH_1EDGE;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册