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
cpu/gd32v: add periph_dac support #19248
Conversation
ca4e9c0
to
507dff2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bors merge |
17045: sys/coding: add XOR based coding module r=benpicco a=benpicco 19248: cpu/gd32v: add periph_dac support r=benpicco a=gschorcht ### Contribution description This PR provides the `periph_dac` support for GD32VF103. ### Testing procedure `tests/periph_dac` should work on `sipeed-longan-nano` port on PA4 and PA5. ### Issues/PRs references 19251: tests/driver_dac_dds: fix output of sine and saw functions r=benpicco a=benpicco Co-authored-by: Benjamin Valentin <benjamin.valentin@ml-pa.com> Co-authored-by: Gunar Schorcht <gunar@schorcht.net>
cpu/gd32v/periph/dac.c
Outdated
assert(dac_config[line].chan < DAC_CHANNEL_NUMOF); | ||
|
||
/* disable the DAC channel */ | ||
DAC->CTL |= ~((dac_config[line].chan) ? DAC_CTL_DEN1_Msk : DAC_CTL_DEN0_Msk); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found a small mistake
DAC->CTL |= ~((dac_config[line].chan) ? DAC_CTL_DEN1_Msk : DAC_CTL_DEN0_Msk); | |
DAC->CTL &= ~((dac_config[line].chan) ? DAC_CTL_DEN1_Msk : DAC_CTL_DEN0_Msk); |
Is it possible to cancel bors only for this PR or will it cancel the whole train?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should do it automatically when you do a push (just squash directly)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
bors cancel |
Canceled. |
507dff2
to
c46382a
Compare
What puzzles me a bit is that it seems to hang reproducibly when a command like The driver itself is quite simple. |
Ah, I found my STM32F4 Discovery board that supports |
BTW, it is quite annoying that this board still uses |
That would be my first guess too. On
ah I guess it's never been updated since we have |
c46382a
to
066b921
Compare
I had to rebase after the merge of PR #19249 to resolve a conflict in doc. |
bors merge |
Build succeeded: |
Contribution description
This PR provides the
periph_dac
support for GD32VF103.Testing procedure
tests/periph_dac
should work onsipeed-longan-nano
port on PA4 and PA5.Issues/PRs references