C5515
CSL3.04
CCS 5.5
I need four I2S. So I am trying to open four instances. The problem is with I2S instance 1. The I2S_open function always returns 0 for instance 1. However, the rest is fine. Is it a CSL bug?
My configuration:
CSL_I2sHandle HW_hI2s1; status = SYS_setEBSR(CSL_EBSR_FIELD_PPMODE, CSL_EBSR_PPMODE_6); // I2S2, GP 12-17, I2S3 status |= SYS_setEBSR(CSL_EBSR_FIELD_SP1MODE, CSL_EBSR_SP1MODE_1); // I2S1, GP 10-11 status |= SYS_setEBSR(CSL_EBSR_FIELD_SP0MODE, CSL_EBSR_SP0MODE_1); // I2S0, GP 4-5 // Open the device with instance 1 (**I2S1**) HW_hI2s1 = I2S_open(I2S_INSTANCE1, DMA_INTERRUPT, I2S_CHAN_STEREO); if(NULL == HW_hI2s1) { LOG_printf(&trace, "I2S_open failed\n"); return(FAIL); }
Where am I wrong?