Browse Source

Fix I2S output when also using I2S input with CPU > 120 MHz

dds
PaulStoffregen 8 years ago
parent
commit
834028d889
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      output_i2s.cpp

+ 2
- 1
output_i2s.cpp View File

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



Loading…
Cancel
Save