Browse Source

Fix I2S input pin on IMXRT1062

dds
PaulStoffregen 5 years ago
parent
commit
7a08015521
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      input_i2s.cpp

+ 4
- 0
input_i2s.cpp View File

@@ -67,7 +67,11 @@ void AudioInputI2S::begin(void)
I2S0_TCSR |= I2S_TCSR_TE | I2S_TCSR_BCE; // TX clock enable, because sync'd to TX
#elif defined(__IMXRT1052__) || defined(__IMXRT1062__)

#if defined(__IMXRT1062__)
CORE_PIN8_CONFIG = 3; //1:RX_DATA0
#elif defined(__IMXRT1052__)
CORE_PIN7_CONFIG = 3; //1:RX_DATA0
#endif
IOMUXC_SAI1_RX_DATA0_SELECT_INPUT = 2;
dma.TCD->SADDR = (void *)((uint32_t)&I2S1_RDR0+2);

Loading…
Cancel
Save