/* The function is used to Get HCLK clock and the UNIT is in Hz.  */
unsigned long xSysCtlClockGet(void)
/* The function is used to Get HCLK clock and the UNIT is in Hz.  */
unsigned long xSysCtlClockGet(void)
{
	unsigned long ulHCLKSrc;
	ulHCLKSrc = xHWREG(SYSCLK_CLKSEL0) & SYSCLK_CLKSEL0_HCLK_S_M;
	if(ulHCLKSrc == 0)
	{
		return 48000000;
	}
	else if (ulHCLKSrc == 1)
	{
        return 32000;
	}
	else
	{
        return 16000;
	}
}