Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STM32 DAC Driver - Add support to DAC3 #4255

Merged
merged 2 commits into from
Aug 4, 2021

Conversation

daniel-p-carvalho
Copy link
Contributor

Summary

Add support to DAC3 for STM32G4 devices. The nucleo-g431kb:comp configuration was changed to use DAC3CH2 signal on
COMP2 inverting input. The voltage on inverting input can be changed using dac tool.

Impact

Testing

Tested on nucleo-g431kb board.

@daniel-p-carvalho daniel-p-carvalho marked this pull request as draft July 29, 2021 21:01
@daniel-p-carvalho daniel-p-carvalho marked this pull request as ready for review July 30, 2021 13:56

/* Register the DAC driver at "/dev/dac0" */

ret = dac_register("/dev/dac0", g_dac5);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What will happen if CONFIG_STM32_DAC1CH1 and CONFIG_STM32_DAC3CH2 be defined? I think it will fail to register the second "/dev/dac0". I think you need to avoid it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right. I will change the register path of DAC3CH2 to "/dev/dac5".

Thanks

COMP example was changed to use DAC3CH2 signal on COMP INM input.
@daniel-p-carvalho
Copy link
Contributor Author

There is any update about this PR?

Thanks

Copy link
Contributor

@raiden00pl raiden00pl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@raiden00pl raiden00pl merged commit 91264ba into apache:master Aug 4, 2021
@daniel-p-carvalho daniel-p-carvalho deleted the stm32-dac branch July 20, 2022 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants