-
Hi, not sure if I'm being stupid, but I can't find any easy way to disable the DAC output buffer on my STM32F072CB |
Beta Was this translation helpful? Give feedback.
Answered by
fpistm
Mar 18, 2024
Replies: 1 comment 1 reply
-
Hi @Bozog So not possible to change the value except if you change it manually. #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 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Bozog
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @Bozog
It is configured here:
Arduino_Core_STM32/libraries/SrcWrapper/src/stm32/analog.cpp
Line 412 in 641f3d8
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:
Then you will be able to disable it by defining the
DISABLE_DAC_OUTPUTBUFFER
usingbuild_opt.h
or thehal_conf_extra.h