What's the fastest timer and gpio-toggle I should be able to set on the M4 on an Imx8MM?
The fastest seems to be 704 khz. In my ISR, I change the state. The fastest I can toggle my gpio seems to be about 460 ns. That seems slow. The core clock states to be 4Mhz. Is there a dedicated clock that controls gpio?
My timer init is below:
gpt_config_t gptConfig; uint32_t gptFreq;
CLOCK_SetRootMux(kCLOCK_RootGpt1, kCLOCK_GptRootmuxSysPll1Div2); /* Set GPT1 source to SYSTEM PLL1 DIV2 400MHZ */ CLOCK_SetRootDivider(kCLOCK_RootGpt1, 1U, 4U); /* Set root clock to 400MHZ / 4 = 100MHZ */