Skip to content

Readd TIM21/TIM22 to l0xx series #659

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

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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions peripherals/tim/tim21.yaml
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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"]
_include:
- ./tim21.yaml
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy