Skip to content

How to disable DAC output buffer on STM32F072CB? #2305

Closed Answered by fpistm
Bozog asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Bozog
It is configured here:

dacChannelConf.DAC_OutputBuffer = DAC_OUTPUTBUFFER_ENABLE;

So not possible to change the value except if you change it manually.
If you want you can submit a PR to be able to redefine it, something like this:

#if defined(DISABLE_DAC_OUTPUTBUFFER)
    dacChannelConf.DAC_OutputBuffer = DAC_OUTPUTBUFFER_DISABLE;
#else
    dacChannelConf.DAC_OutputBuffer = DAC_OUTPUTBUFFER_ENABLE;
#endif

Then you will be able to disable it by defining the DISABLE_DAC_OUTPUTBUFFER using build_opt.h or the hal_conf_extra.h

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Bozog
Comment options

Answer selected by Bozog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants