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

Added lpuart5 and lpuart7 #170

Merged
merged 1 commit into from
Feb 22, 2025
Merged

Conversation

Erhannis
Copy link
Contributor

I added lpuart5 and lpuart7. I tested it on my Teensy 4.1 and both work. My main concern is that I see in board.rs, all the lpuart except 5 use pins in pins::common, but lpuart5 uses pins in pins::t41, is that a problem? I'm not sure how to fix it.

Cargo.toml Outdated
@@ -66,7 +66,7 @@ members = [
[workspace.dependencies]
imxrt-boot-gen = { version = "0.3.0", features = ["imxrt1060"] }
imxrt-hal = { version = "0.5.3", features = ["imxrt1060"] }
imxrt-iomuxc = { version = "0.2.0", features = ["imxrt1060"] }
imxrt-iomuxc = { version = "0.2.9", features = ["imxrt1060"] }
Copy link
Owner

Choose a reason for hiding this comment

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

Even with this LPUART5 and 7 addition, teensy4-bsp can build its examples with a minimum version of imxrt-iomuxc 0.2.1. Sorry, but I hesitate to force users to adopt a newer version of this package when it doesn't seem necessary.

I removed this from the commit. If you could clarify why we should bump this, I'm happy to reconsider!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Huh. I dunno; imxrt-rs/imxrt-iomuxc#49 says he published the change adding uart5 in version 0.2.9, so I'd thought we'd need to specify that version. Go figure.

Copy link
Owner

@mciantyre mciantyre left a comment

Choose a reason for hiding this comment

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

[...] all the lpuart except 5 use pins in pins::common, but lpuart5 uses pins in pins::t41, is that a problem? I'm not sure how to fix it.

Thanks for highlighting this. I don't think it's a problem. These type aliases are a convenience, and not something users need to use. I added a documentation note in the Lpuart5 type alias that this is available for Teensy 4.1 users.

@mciantyre mciantyre merged commit a1c2dd8 into mciantyre:master Feb 22, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants