Explorar el Código

LC has no I2S0_TCR1

dds
Frank Bösing hace 3 años
padre
commit
b98ad575b6
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. +1
    -2
      output_pt8211.cpp

+ 1
- 2
output_pt8211.cpp Ver fichero

@@ -600,7 +600,6 @@ void AudioOutputPT8211::begin(void)

// configure transmitter
I2S0_TMR = 0;
I2S0_TCR1 = I2S_TCR1_TFW(0);
I2S0_TCR2 = I2S_TCR2_SYNC(0) | I2S_TCR2_BCP | I2S_TCR2_MSEL(1) | I2S_TCR2_BCD | I2S_TCR2_DIV(16);
I2S0_TCR3 = I2S_TCR3_TCE;
I2S0_TCR4 = I2S_TCR4_FRSZ(1) | I2S_TCR4_SYWD(15) | I2S_TCR4_MF /*| I2S_TCR4_FSE*/ | I2S_TCR4_FSP | I2S_TCR4_FSD;
@@ -609,7 +608,7 @@ void AudioOutputPT8211::begin(void)
// configure pin mux
CORE_PIN22_CONFIG = PORT_PCR_MUX(6); // pin 22, PTC1, I2S0_TXD0
CORE_PIN23_CONFIG = PORT_PCR_MUX(6); // pin 23, PTC2, I2S0_TX_FS (LRCLK)
CORE_PIN9_CONFIG = PORT_PCR_MUX(6); // pin 9, PTC3, I2S0_TX_BCLK //5.6MHz(44117HZ)
CORE_PIN9_CONFIG = PORT_PCR_MUX(6); // pin 9, PTC3, I2S0_TX_BCLK
//CORE_PIN11_CONFIG = PORT_PCR_MUX(6); // pin 11, PTC6, I2S0_MCLK

//configure both DMA channels

Cargando…
Cancelar
Guardar