mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-19 09:23:30 +08:00
[bsp][stm32][drv_spi.c] remove meaningless settings
This commit is contained in:
parent
a2fae26d32
commit
0fb393e9a1
@ -108,8 +108,6 @@ static rt_err_t stm32_spi_init(struct stm32_spi *spi_drv, struct rt_spi_configur
|
||||
if (cfg->data_width == 8)
|
||||
{
|
||||
spi_handle->Init.DataSize = SPI_DATASIZE_8BIT;
|
||||
spi_handle->TxXferSize = 8;
|
||||
spi_handle->RxXferSize = 8;
|
||||
}
|
||||
else if (cfg->data_width == 16)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user