Skip to content

Commit a8f17f5

Browse files
committed
Fix DAC initialization#
1 parent 10297b3 commit a8f17f5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_L152RE/analogout_api.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ void analogout_init(dac_t *obj, PinName pin) {
6363
// Configure and enable DAC channel
6464
DAC_InitStructure.DAC_Trigger = DAC_Trigger_None;
6565
DAC_InitStructure.DAC_WaveGeneration = DAC_WaveGeneration_None;
66+
DAC_InitStructure.DAC_LFSRUnmask_TriangleAmplitude = DAC_LFSRUnmask_Bit0;
6667
DAC_InitStructure.DAC_OutputBuffer = DAC_OutputBuffer_Disable;
6768

6869
if (obj->channel == PA_4) {

0 commit comments

Comments
 (0)