Question
Why is setting up SPI to re-transmit by DMA taking too long, 1uS??
First, I would like to know if this code is correct to setup SPI to re-transmit by DMA again.
GPIOA->BSRR = (1<<5); // start
DMA1->IFCR = 0x0FFFFFFF; // reset status
DMA1_Channel3->CCR &= ~( DMA_CCR_EN );
LL_DMA_SetDataLength(DMA1, LL_DMA_CHANNEL_3, ubNbDataToTransmit);
DMA1_Channel3->CCR |= ( DMA_CCR_EN );
GPIOA->BSRR = (1<<21); // reset/end +16when taking the duration of the whole code, it is taking around 1uS as shown below.
CH1 (yellow) = GPIOA5
CH2 (blue) = SPI clk

Why is it taking around 1uS to execute these codes?