Hi,
How to use FTM DMA?
EDMA channels request have FTM1_CHANNEL_0 eg.
who can get me an example? thank you!
Hi 海斌蔡,
Unfortunately, we don't have such FTM example, the FTM driver does not support DMA transfers, you would need to enable the DMA in the corresponding CnSC register. The configuration that you highlighted basically sets the DMAMUX when the EDMA_DRV_Init() function is called and the DMA driver is initialized. Then, you would need to configure a transfer as described in the EDMA SDK documentation based on your use case:
.../S32DS_ARM_v2018.R1/S32DS/S32SDK_S32K1xx_RTM_3.0.0/doc/html_S32K144/Start_here.html
S32K144 / Modules / EDMA driver
There is a EDMA SDK example in the S32DS you can refer to.
BR, Daniel