Code refactor -> TIM2 counter

The postTrigger sampling is controlled by TIM2 because the DMA
redirection was too slow and some samples were lost because of this.
Now the DMA has only one mode which is the circular sampling.