Skip to content

Commit

Permalink
[bsp][stm32][drv_spi.c] remove meaningless settings
Browse files Browse the repository at this point in the history
  • Loading branch information
mysterywolf committed Aug 4, 2023
1 parent a2fae26 commit 0fb393e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions bsp/stm32/libraries/HAL_Drivers/drv_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 0fb393e

Please sign in to comment.