瀏覽代碼

Merge pull request #299 from FrankBoesing/patch-1

Patch for T4B2 (Pin6 -> Pin7)
dds
Paul Stoffregen 5 年之前
父節點
當前提交
57d11dd95a
No account linked to committer's email address
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. +6
    -0
      output_spdif.cpp

+ 6
- 0
output_spdif.cpp 查看文件

@@ -87,7 +87,13 @@ void AudioOutputSPDIF::begin(void)
I2S0_TCSR |= I2S_TCSR_TE | I2S_TCSR_BCE | I2S_TCSR_FRDE | I2S_TCSR_FR;
dma.attachInterrupt(isr);
#elif defined(__IMXRT1052__) || defined(__IMXRT1062__)

#if defined(__IMXRT1052__)
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

dma.TCD->SADDR = SPDIF_tx_buffer;

Loading…
取消
儲存