/* This function is used to get cpu clock.  */
void SystemClock_Get(wm_sys_clk *sysclk)
/* This function is used to get cpu clock.  */
void SystemClock_Get(wm_sys_clk *sysclk)
{
	clk_div_reg clk_div;
	clk_div.w = READ_REG(RCC->CLK_DIV);
	sysclk->cpuclk = W805_PLL_CLK_MHZ/(clk_div.b.CPU);
	sysclk->wlanclk = W805_PLL_CLK_MHZ/(clk_div.b.WLAN);
	sysclk->apbclk = sysclk->cpuclk / clk_div.b.BUS2;
}