Sending data to SPI via DMA
I'm using STM32F429 and trying to use HAL library to communicate to SPI slave via DMA channel.
I'd like to ask how is resolved problem with for example sending data to SPI via DMA? Is there any kind of synchronization between SPI and DMA to disallow overwritting SPI DATA register by DMA when SPI is sending previous SPI DATA register? In other words - how DMA knows how fast it should move data from source buffer to SPI DATA register to not overwrite its contents?
Is there any synchronization protocol which tells DMA to stop transmitting to SPI DATA register because SPI is currently busy with transmitting previous SPI DATA register?
