コード例 #1
0
/* Initialize for I2S */
void Chip_I2S_Init(LPC_I2S_Type *pI2S)
{
	if (clksEnabled == 0) {
		Chip_Clock_Enable(CLK_APB1_I2S);
	}
	clksEnabled++;

	IP_I2S_Init(pI2S);
}
コード例 #2
0
ファイル: i2s_17xx_40xx.c プロジェクト: edarring/lpcopen
/* Initialize the I2S interface */
void Chip_I2S_Init(LPC_I2S_T *pI2S)
{
	Chip_Clock_EnablePeriphClock(SYSCTL_CLOCK_I2S);
	IP_I2S_Init(pI2S);
}