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

Readd TIM21/TIM22 to l0xx series #659

Merged
merged 3 commits into from Dec 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 6 additions & 4 deletions peripherals/tim/tim21.yaml
Expand Up @@ -2,10 +2,6 @@

"TIM2?":
CR1:
CKD:
Div1: [0, "t_DTS = t_CK_INT"]
Div2: [1, "t_DTS = 2 × t_CK_INT"]
Div4: [2, "t_DTS = 4 × t_CK_INT"]
Comment on lines -5 to -8
Copy link
Contributor Author

Choose a reason for hiding this comment

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

As mentioned in the commit comment, this is already present in tim_basic.yaml. tim21.yaml is only used in tim_l0 currently so I don't think this should cause any issues.

CMS:
EdgeAligned: [0, "The counter counts up or down depending on the direction bit"]
CenterAligned1: [1, "The counter counts up and down alternatively. Output compare interrupt flags are set only when the counter is counting down."]
Expand Down Expand Up @@ -162,3 +158,9 @@
COMP1_OUT: [2, "TIM2x ETR input connected to COMP1_OUT"]
LSE: [3, "TIM2x ETR input connected to LSE clock"]

# TI2_RMP is only available on TIM21
TIM21:
OR:
TI2_RMP:
GPIO: [0, "TIM2x TI2 input connected to GPIO"]
COMP2_OUT: [1, "TIM2x TI2 input connected to COMP2_OUT"]
7 changes: 2 additions & 5 deletions peripherals/tim/tim_l0.yaml
Expand Up @@ -30,8 +30,5 @@
LSE: [5, "TIM2 ETR input is connected to LSE"]
HSI: [3, "TIM2 ETR input is connected to HSI16 when HSI16OUTEN bit is set"]

"TIM21":
OR:
TI2_RMP:
GPIO: [0, "TIM2x TI2 input connected to GPIO"]
COMP2_OUT: [1, "TIM2x TI2 input connected to COMP2_OUT"]
adamgreig marked this conversation as resolved.
Show resolved Hide resolved
_include:
- ./tim21.yaml