4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-18 17:53:31 +08:00

Merge pull request #3602 from thread-liu/rt-thread-thread-liu

SPI 设备初始化 NSS 类型判断错误
This commit is contained in:
Bernard Xiong 2020-05-16 14:05:40 +08:00 committed by GitHub
commit ee2cec13b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -137,7 +137,7 @@ static rt_err_t stm32_spi_init(struct stm32_spi *spi_drv, struct rt_spi_configur
if (cfg->mode & RT_SPI_NO_CS)
{
spi_handle->Init.NSS = SPI_NSS_SOFT;
spi_handle->Init.NSS = SPI_NSS_HARD_OUTPUT;
}
else
{