Kaynağa Gözat

Fix AudioOutputAnalogStereo analogReference

dds
PaulStoffregen 8 yıl önce
ebeveyn
işleme
f71a40bb31
1 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  1. +2
    -0
      output_dacs.cpp

+ 2
- 0
output_dacs.cpp Dosyayı Görüntüle

@@ -92,8 +92,10 @@ void AudioOutputAnalogStereo::analogReference(int ref)
// TODO: this should ramp gradually to the new DC level
if (ref == INTERNAL) {
DAC0_C0 &= ~DAC_C0_DACRFS; // 1.2V
DAC1_C0 &= ~DAC_C0_DACRFS;
} else {
DAC0_C0 |= DAC_C0_DACRFS; // 3.3V
DAC1_C0 |= DAC_C0_DACRFS;
}
}


Yükleniyor…
İptal
Kaydet