Browse Source

Patch for T4B2 (Pin6 -> Pin7)

dds
Frank 5 years ago
parent
commit
c7ddb8e2d5
No account linked to committer's email address
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      output_spdif.cpp

+ 6
- 0
output_spdif.cpp View File

I2S0_TCSR |= I2S_TCSR_TE | I2S_TCSR_BCE | I2S_TCSR_FRDE | I2S_TCSR_FR; I2S0_TCSR |= I2S_TCSR_TE | I2S_TCSR_BCE | I2S_TCSR_FRDE | I2S_TCSR_FR;
dma.attachInterrupt(isr); dma.attachInterrupt(isr);
#elif defined(__IMXRT1052__) || defined(__IMXRT1062__) #elif defined(__IMXRT1052__) || defined(__IMXRT1062__)

#if defined(__IMXRT1052__)
CORE_PIN6_CONFIG = 3; //1:TX_DATA0 CORE_PIN6_CONFIG = 3; //1:TX_DATA0
#elif defined(__IMXRT1062__)
CORE_PIN7_CONFIG = 3; //1:TX_DATA0
#endif
const int nbytes_mlno = 2 * 4; // 8 Bytes per minor loop const int nbytes_mlno = 2 * 4; // 8 Bytes per minor loop


dma.TCD->SADDR = SPDIF_tx_buffer; dma.TCD->SADDR = SPDIF_tx_buffer;

Loading…
Cancel
Save