Skip to content

Commit 43dbe80

Browse files
committed
Fix DAC init assertion
Signed-off-by: Marcos Chaparro <[email protected]>
1 parent 6010fce commit 43dbe80

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hwconf/hw_palta.c

+1
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ void hw_palta_setup_dac(void) {
232232
/* DAC channel 1 and 2 Configuration */
233233
DAC_InitStructure.DAC_Trigger = DAC_Trigger_None;
234234
DAC_InitStructure.DAC_WaveGeneration = DAC_WaveGeneration_None;
235+
DAC_InitStructure.DAC_LFSRUnmask_TriangleAmplitude = DAC_TriangleAmplitude_1;
235236
DAC_InitStructure.DAC_OutputBuffer = DAC_OutputBuffer_Disable; // If enabled minimum output voltage is 200mV (!)
236237
DAC_Init(DAC_Channel_1, &DAC_InitStructure);
237238
DAC_Init(DAC_Channel_2, &DAC_InitStructure);

0 commit comments

Comments
 (0)