mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-21 04:37:10 +08:00
[update] spi nss type
This commit is contained in:
parent
dab737f637
commit
3496017c84
@ -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)
|
if (cfg->mode & RT_SPI_NO_CS)
|
||||||
{
|
{
|
||||||
spi_handle->Init.NSS = SPI_NSS_SOFT;
|
spi_handle->Init.NSS = SPI_NSS_HARD_OUTPUT;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user