Skip to content

Commit

Permalink
Fix DAC initialization#
Browse files Browse the repository at this point in the history
  • Loading branch information
emilmont committed Feb 18, 2014
1 parent 10297b3 commit a8f17f5
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a8f17f5

Please sign in to comment.