Skip to content

Commit ee2cec1

Browse files
authored
Merge pull request #3602 from thread-liu/rt-thread-thread-liu
SPI 设备初始化 NSS 类型判断错误
2 parents db5d101 + 3496017 commit ee2cec1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bsp/stm32/libraries/HAL_Drivers/drv_spi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ static rt_err_t stm32_spi_init(struct stm32_spi *spi_drv, struct rt_spi_configur
137137

138138
if (cfg->mode & RT_SPI_NO_CS)
139139
{
140-
spi_handle->Init.NSS = SPI_NSS_SOFT;
140+
spi_handle->Init.NSS = SPI_NSS_HARD_OUTPUT;
141141
}
142142
else
143143
{

0 commit comments

Comments
 (0)