ctimer_dma_trigger
Overview
This example shows how to use CTimer to trigger DMA transfer by match feature.
DMA requests are generated when the value of Timer Counter (TC) matches match register.
In this example, CTimer match event occurs every 1 second and then trigger DMA transfer.
After DMA transfer two times, that is 2 seconds later, CTimer counter stops and DMA will
not be triggered.
This example do not generate external outputs.
Running the demo
The log below shows example output of the CTimer driver simple match demo in the terminal window:
CTimer trigger DMA memory to memory transfer example begin.
Destination Buffer:
0 0 0 0
CTimer trigger DMA memory to memory transfer example finish.
Destination Buffer:
1 2 3 4
5 6 7 8