Question
Timer input capture into DMA buffer how get position ?
HI, i use CC2 on TIM1 set as input capture measuring pulse period and store in array
/* USER CODE BEGIN TIM1_Init 1 */
LL_DMA_SetPeriphAddress(DMA1, LL_DMA_CHANNEL_3, (uint32_t)&TIM1->CCR2);
LL_DMA_SetMemoryAddress(DMA1, LL_DMA_CHANNEL_3, (uint32_t)speedsDMA);
LL_DMA_SetDataLength(DMA1, LL_DMA_CHANNEL_3, 360);
this work on MCU offload hw mode. How get in main loop actual positions in DMA arrea? Mean as last valid writed CC2 value ?
Ofcourse last is too in CC2 tim reg , but i require calculate gradient , then previous value is too required = how get possition.
