multiple SPI with DMA callback
Hey everyone,
I cant seem to get separate callbacks going for my spi peripherals, each using DMA. Their both receiving data and by default seem to respond to HAL_SPI_RxCpltCallback. So whether SPI1 or SPI4's reception completes, HAL_SPI_RxCpltCallback is called for both.
I've tried to change the callback using the DMA handler;
hdma_spi1_rx .XferCpltCallback = ...; but this hasn't helped at all.
Does anyone have any idea how to change the callback to get seperate callbacks for each spi periph?
Thanks in advance!