Browse Source

Remove extra imxrt defines

dds
PaulStoffregen 5 years ago
parent
commit
4cd45ef9ba
1 changed files with 1 additions and 9 deletions
  1. +1
    -9
      output_i2s.cpp

+ 1
- 9
output_i2s.cpp View File

#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

Loading…
Cancel
Save