Browse Source

Merge pull request #305 from FrankBoesing/patch-2

PT8211: Fix Teensy 3.x
dds
Paul Stoffregen 5 years ago
parent
commit
d1f6bdcd76
No account linked to committer's email address
1 changed files with 7 additions and 2 deletions
  1. +7
    -2
      output_pt8211.cpp

+ 7
- 2
output_pt8211.cpp View File

dma.TCD->CSR = DMA_TCD_CSR_INTHALF | DMA_TCD_CSR_INTMAJOR; dma.TCD->CSR = DMA_TCD_CSR_INTHALF | DMA_TCD_CSR_INTMAJOR;


dma.triggerAtHardwareEvent(DMAMUX_SOURCE_I2S0_TX); dma.triggerAtHardwareEvent(DMAMUX_SOURCE_I2S0_TX);
update_responsibility = update_setup();
dma.attachInterrupt(isr);
dma.enable();
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;

return;
#elif defined(__IMXRT1052__) || defined(__IMXRT1062__) #elif defined(__IMXRT1052__) || defined(__IMXRT1062__)


#if defined(__IMXRT1052__) #if defined(__IMXRT1052__)


I2S1_RCSR |= I2S_RCSR_RE; I2S1_RCSR |= I2S_RCSR_RE;
I2S1_TCSR |= I2S_TCSR_TE | I2S_TCSR_BCE | I2S_TCSR_FRDE; I2S1_TCSR |= I2S_TCSR_TE | I2S_TCSR_BCE | I2S_TCSR_FRDE;
#endif
update_responsibility = update_setup(); update_responsibility = update_setup();
dma.attachInterrupt(isr); dma.attachInterrupt(isr);
dma.enable(); dma.enable();
return;
#endif
} }


void AudioOutputPT8211::isr(void) void AudioOutputPT8211::isr(void)

Loading…
Cancel
Save