cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to split HAL_SPI_TransmitReceive_DMA function in this situation?

KDG
Associate III

Hello

 

I am trying to do spi_dma communication using the HAL_SPI_TransmitReceive_DMA function.


When I use HAL_SPI_TransmitReceive_DMA in a situation where I use the same dma stream, same amount of data to send and receive, but different addresses to send and receive,


Is there any part of the code in the HAL_SPI_TransmitReceive_DMA function that only needs to be set once?
If so, is it possible to separate the actual behavior code of the HAL_SPI_TransmitReceive_DMA function and the code that only needs to be set once from HAL_SPI_TransmitReceive_DMA to execute HAL_SPI_TransmitReceive_DMA?

 

 

0 REPLIES 0