/* Enable clock specific peripherals. 
Enable source clock pheripheral */
void EnableSourceClk(CLKSRC_Type src_clk)
/* Enable clock specific peripherals. 
Enable source clock pheripheral */
void EnableSourceClk(CLKSRC_Type src_clk)
{
	uint32_t i=0;
	const uint32_t PlainEnable = (0x2 << 3);
	if(src_clk == SRC_OSC32K)
	{
		LPC_CREG->CREG0 &= ~((1<<3)|(1<<2));
		LPC_CREG->CREG0 |= (1<<1)|(1<<0);
	}
	if(src_clk == SRC_ENET_RX_CLK)scu_pinmux(0xC ,0 , PlainEnable, FUNC3);
	if(src_clk == SRC_ENET_TX_CLK)scu_pinmux(0x1 ,19, PlainEnable, FUNC0);
	if(src_clk == SRC_XTAL && (LPC_CGU->XTAL_OSC_CTRL&0x1))
	{
		LPC_CGU->XTAL_OSC_CTRL &= ~(1<<0);
		for(i=0;i<0xFFFF;i++);
	}
}