System Clock settings for my project is done twice since after using the FatFs functions, the system clock is getting modified.
To resolve the issue, we have done the setting of the system clock again. Is this valid ? Please provide your response.
void main(void)
{
uint32_t time_epoch;
/*
* Initialize the all hardware IO and system peripherals-
*/
//delay to stabilize the source/clock on power On
ui32SysClock = SysCtlClockFreqSet((SYSCTL_XTAL_16MHZ |
SYSCTL_OSC_MAIN | SYSCTL_USE_PLL |
SYSCTL_CFG_VCO_480),40000000);
FPUEnable();
FPULazyStackingEnable();
PP_Screen(ui32SysClock); // This uses the FatFS functions.... After executing the call ui32SysClock is modified.....
ui32SysClock = SysCtlClockFreqSet((SYSCTL_XTAL_16MHZ |
SYSCTL_OSC_MAIN | SYSCTL_USE_PLL |
SYSCTL_CFG_VCO_480),40000000);