Skip to content

Commit cd25343

Browse files
Bozogfpistm
authored andcommitted
Adding an option to disable DAC output buffer
1 parent 641f3d8 commit cd25343

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libraries/SrcWrapper/src/stm32/analog.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,11 @@ void dac_write_value(PinName pin, uint32_t value, uint8_t do_init)
409409
}
410410

411411
dacChannelConf.DAC_Trigger = DAC_TRIGGER_NONE;
412+
#if defined(DISABLE_DAC_OUTPUTBUFFER)
413+
dacChannelConf.DAC_OutputBuffer = DAC_OUTPUTBUFFER_DISABLE;
414+
#else
412415
dacChannelConf.DAC_OutputBuffer = DAC_OUTPUTBUFFER_ENABLE;
416+
#endif
413417
#if defined(DAC_OUTPUTSWITCH_ENABLE)
414418
dacChannelConf.DAC_OutputSwitch = DAC_OUTPUTSWITCH_ENABLE;
415419
#endif

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy