| #define SAI1 | #define SAI1 | ||||
| //#define SAI2 | //#define SAI2 | ||||
| //TODO: Copy these to imrtx.h: | |||||
| #define CCM_ANALOG_PLL_AUDIO_LOCK ((uint32_t)(1<<31)) | |||||
| #define I2S_TCR2_BCP ((uint32_t)1<<25) | |||||
| #define I2S_RCR2_BCP ((uint32_t)1<<25) | |||||
| #define I2S_TCR4_FCONT ((uint32_t)1<<28) // FIFO Continue on Error | |||||
| #define I2S_RCR4_FCONT ((uint32_t)1<<28) // FIFO Continue on Error | |||||
| #define I2S_TCR4_FSP ((uint32_t)1<< 1) | |||||
| #define I2S_RCR4_FSP ((uint32_t)1<< 1) | |||||
| typedef struct | typedef struct | ||||
| { | { | ||||
| uint32_t CSR; | uint32_t CSR; | ||||
| CORE_PIN9_CONFIG = PORT_PCR_MUX(6); // pin 9, PTC3, I2S0_TX_BCLK | CORE_PIN9_CONFIG = PORT_PCR_MUX(6); // pin 9, PTC3, I2S0_TX_BCLK | ||||
| CORE_PIN11_CONFIG = PORT_PCR_MUX(6); // pin 11, PTC6, I2S0_MCLK | CORE_PIN11_CONFIG = PORT_PCR_MUX(6); // pin 11, PTC6, I2S0_MCLK | ||||
| } | } | ||||
| #endif | |||||
| #endif |