cpu/stm32_common/periph: only initialize defined PWM pins#6350
Closed
aabadie wants to merge 1 commit intoRIOT-OS:masterfrom
Closed
cpu/stm32_common/periph: only initialize defined PWM pins#6350aabadie wants to merge 1 commit intoRIOT-OS:masterfrom
aabadie wants to merge 1 commit intoRIOT-OS:masterfrom
Conversation
318e41a to
af2c16b
Compare
Contributor
Author
|
Just pushed an update that skip |
af2c16b to
48bc927
Compare
Contributor
Author
|
@haukepetersen, this is a simple fix. It just miss a review (that should be fast). |
Contributor
|
This fix does not suffice -> it will lead to a configuration of non-continuous (logical) channels, and that should not happen. The fix should be, to include a mapping from logical channels (e.g. 0 to 1) to the actual timer channels (e.g. 1 and 3). This would be my approach: #6393 |
Contributor
Author
|
Agreed, this was the quick (and dirty?) solution. Looking at other cpu implementation I saw the same logic available for the samd21 so I thought it would be ok. We can close this one if #6393 is the way to go. |
Contributor
Author
|
then I'll have a few opened (and coming) PRs to update... |
Member
|
Closing in favour of #6393 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This fixes an issue when PWMs are defined with some of the first channels undefined (
GPIO_UNDEF).Config example in
periph_conf.h:When running the
tests/periph_pwmon a nucleo, I had a kernel panic:The fix simply consists in ignoring the undefined pins at initialization.