Skip to content

Commit

Permalink
[bsp][stm32]fix stm32h7 spi transmit fail probelm.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rbb666 authored and mysterywolf committed Jul 2, 2024
1 parent c09d7e1 commit 8487e77
Show file tree
Hide file tree
Showing 8 changed files with 503 additions and 403 deletions.
2 changes: 1 addition & 1 deletion bsp/stm32/libraries/HAL_Drivers/drivers/drv_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ static rt_err_t stm32_spi_init(struct stm32_spi *spi_drv, struct rt_spi_configur
spi_handle->Init.MasterReceiverAutoSusp = SPI_MASTER_RX_AUTOSUSP_DISABLE;
spi_handle->Init.MasterKeepIOState = SPI_MASTER_KEEP_IO_STATE_ENABLE;
spi_handle->Init.IOSwap = SPI_IO_SWAP_DISABLE;
spi_handle->Init.FifoThreshold = SPI_FIFO_THRESHOLD_08DATA;
spi_handle->Init.FifoThreshold = SPI_FIFO_THRESHOLD_01DATA;
#endif

if (HAL_SPI_Init(spi_handle) != HAL_OK)
Expand Down
Loading

0 comments on commit 8487e77

Please sign in to comment.