From 0fb393e9a1a5db480f7366aa128f3db985033a69 Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Thu, 3 Aug 2023 22:59:39 -0400 Subject: [PATCH] [bsp][stm32][drv_spi.c] remove meaningless settings --- bsp/stm32/libraries/HAL_Drivers/drv_spi.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/bsp/stm32/libraries/HAL_Drivers/drv_spi.c b/bsp/stm32/libraries/HAL_Drivers/drv_spi.c index da85f183b6..66fede75f5 100644 --- a/bsp/stm32/libraries/HAL_Drivers/drv_spi.c +++ b/bsp/stm32/libraries/HAL_Drivers/drv_spi.c @@ -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) {