Fix DAC initialization#

pull/173/head mbed_lib_rev78
Emilio Monti 2014-02-18 13:59:58 +00:00
parent 10297b352c
commit a8f17f5426
1 changed files with 1 additions and 0 deletions

View File

@ -63,6 +63,7 @@ void analogout_init(dac_t *obj, PinName pin) {
// Configure and enable DAC channel
DAC_InitStructure.DAC_Trigger = DAC_Trigger_None;
DAC_InitStructure.DAC_WaveGeneration = DAC_WaveGeneration_None;
DAC_InitStructure.DAC_LFSRUnmask_TriangleAmplitude = DAC_LFSRUnmask_Bit0;
DAC_InitStructure.DAC_OutputBuffer = DAC_OutputBuffer_Disable;
if (obj->channel == PA_4) {