浏览代码

Fix AudioOutputAnalogStereo analogReference

dds
PaulStoffregen 8 年前
父节点
当前提交
f71a40bb31
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. +2
    -0
      output_dacs.cpp

+ 2
- 0
output_dacs.cpp 查看文件

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


正在加载...
取消
保存