Browse Source

Fix simultaneous quad input & output on Teensy 3.6 with CPU > 120 MHz

dds
PaulStoffregen 7 years ago
parent
commit
2c3b38404b
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      output_i2s_quad.cpp

+ 2
- 1
output_i2s_quad.cpp View File

@@ -78,7 +78,8 @@ void AudioOutputI2SQuad::begin(void)
update_responsibility = update_setup();
dma.enable();

I2S0_TCSR |= I2S_TCSR_TE | I2S_TCSR_BCE | I2S_TCSR_FRDE | I2S_TCSR_FR;
I2S0_TCSR = I2S_TCSR_SR;
I2S0_TCSR = I2S_TCSR_TE | I2S_TCSR_BCE | I2S_TCSR_FRDE;
dma.attachInterrupt(isr);
#endif
}

Loading…
Cancel
Save