Hi there,
what i can set about the "fllStableDelay"
CLOCK_BootToFeeMode(g_defaultClockConfigRun.mcgConfig.oscsel, g_defaultClockConfigRun.mcgConfig.frdiv,
g_defaultClockConfigRun.mcgConfig.dmx32, g_defaultClockConfigRun.mcgConfig.drs,fllStableDelay);
Thanks in advance!
-Jack
已解决! 转到解答。
Hello Jack,
This pointer to function passes a delay function that will be executed after FLL is configured, this is done to make sure that FLL is stable after/during clock transition. If you do not want to execute any delay function, you can pass NULL pointer.
On the other hand, if you want to execute one delay function, you can use the CLOCK_FllStableDelay function as reference. This function waits for 1 ms aproximately.
static void CLOCK_FllStableDelay(void)
{
/*
Should wait at least 1ms. Because in these modes, the core clock is 100MHz
at most, so this function could obtain the 1ms delay.
*/
volatile uint32_t i = 30000U;
while (i--)
{
__NOP();
}
}
I hope this can help you!
Best Regards,
Isaac
Hello Jack,
This pointer to function passes a delay function that will be executed after FLL is configured, this is done to make sure that FLL is stable after/during clock transition. If you do not want to execute any delay function, you can pass NULL pointer.
On the other hand, if you want to execute one delay function, you can use the CLOCK_FllStableDelay function as reference. This function waits for 1 ms aproximately.
static void CLOCK_FllStableDelay(void)
{
/*
Should wait at least 1ms. Because in these modes, the core clock is 100MHz
at most, so this function could obtain the 1ms delay.
*/
volatile uint32_t i = 30000U;
while (i--)
{
__NOP();
}
}
I hope this can help you!
Best Regards,
Isaac