Double buffering with HT and TC interrupts [STM32G0], how to handle them.
I'm trying to build a double buffer (or ping pong buffer) using the HT (Half transfer) and TC (Transfer complete) interrupts. Also, I'm using DMA with circular array and ADC is triggered by a timer at 6 kHz. I have the algorithm below (I'm not showin...