STM32H7 optimized SPI driver for use in DMA mode
Good day everyone.
I am working on the STM32H7 MCU and using the HAL library for controlling an SPI in DMA mode that has to exchange data with an external device in real-time. I'm working at the maximum possible CPU frequency and using the -O2 optimization, and still, there is a 3.5 microseconds delay between the call of SPI_TransmitReceive_DMA and the SPI transfer start, and then, after the SPI transmission start there is around 1.5 microseconds delay before the function returns.
Does anyone have an optimized for performance SPI driver for use in DMA mode?
I'm trying to avoid writing everything from scratch, so any input on this matter would be greatly appreciated!
