Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

jspngh
Copy link
Contributor

@jspngh jspngh commented Nov 29, 2021

TIM3 and TIM4 work the same way in stm32l4r9 and stm32l4x6.
Since stm32l4x6.yaml contains these _copy and _derive lines, they should also be added to this yaml file.

Note that I've simply verified this empirically, with these lines added I can now use TIM3 and TIM4 to generate a PWM signal,
and that I don't fully comprehend the SVD files yet.

@github-actions
Copy link

Memory map comparison

@jspngh
Copy link
Contributor Author

jspngh commented Nov 29, 2021

Memory map comparison

That's pretty neat, cool github action.

@newAM newAM added the stm32l4 label Nov 29, 2021
Copy link
Member

@adamgreig adamgreig left a comment

Choose a reason for hiding this comment

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

Thanks for this PR!

Ideally I guess TIM3 and TIM4 should not have the high fields copied from TIM2, but this is strictly better than the current setup where they just have a full 32-bit register, so let's get this in now and it could always be improved further later.

bors merge

bors bot added a commit that referenced this pull request Dec 7, 2021
669: devices/stm32l4r9.yaml: patch TIM3 and TIM4 r=adamgreig a=jspngh

TIM3 and TIM4 work the same way in stm32l4r9 and stm32l4x6.
Since `stm32l4x6.yaml` contains these `_copy` and `_derive` lines, they should also be added to this yaml file.

Note that I've simply verified this empirically, with these lines added I can now use TIM3 and TIM4 to generate a PWM signal,
and that I don't fully comprehend the SVD files yet. 

Co-authored-by: Jonas Spanoghe <[email protected]>
@bors
Copy link
Contributor

bors bot commented Dec 7, 2021

Build failed:

@adamgreig
Copy link
Member

Spurious network error

bors retry

@bors bors bot merged commit 4b5df58 into stm32-rs:master Dec 7, 2021
@jspngh jspngh deleted the feature/stm32l4r9_tim34 branch December 7, 2021 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants