Przeglądaj źródła

LC has no I2S0_TCR1

dds
Frank Bösing 3 lat temu
rodzic
commit
b98ad575b6
1 zmienionych plików z 1 dodań i 2 usunięć
  1. +1
    -2
      output_pt8211.cpp

+ 1
- 2
output_pt8211.cpp Wyświetl plik

@@ -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

Ładowanie…
Anuluj
Zapisz