Hi,
Thank you for your reply,
I configue DMA_ITRIG_INMUX by adding the following code in main function,
INPUTMUX->DMA_ITRIG_INMUX[4];
Q : Is it mean I selet DMA trigger #4 >> timer CTIMER0 Match 0 DMA request ?
By Setting CTIMER, I refer the sample code - ctimer_simple_match
1. Include the fsl_ctimer.h library,
2. Add the following code in main function, >> But it didn't trigger DMA
#define CTIMER CTIMER0 /* Timer 0 */
#define CTIMER_MAT_OUT kCTIMER_Match_2 /* Match output 2 */
#define BUS_CLK_FREQ CLOCK_GetFreq(kCLOCK_ApbClk)
<in Main function>
ctimer_config_t config;
ctimer_match_config_t matchConfig;
CTIMER_GetDefaultConfig(&config);
CTIMER_Init(CTIMER, &config);
matchConfig.enableCounterReset = true;
matchConfig.enableCounterStop = false;
matchConfig.matchValue = BUS_CLK_FREQ / 2;
matchConfig.outControl = kCTIMER_Output_Toggle;
matchConfig.outPinInitState = true;
matchConfig.enableInterrupt = false;
CTIMER_SetupMatch(CTIMER, CTIMER_MAT_OUT, &matchConfig);
CTIMER_StartTimer(CTIMER);
Q : How to configure the CTIMER, that I can use CTIMER to trigger DMA ?
Q : And problem for CTIMER, what is the different between Match 0 and Match 1?
Thanks.