Skip to content

Trying to understand imxrt-hal vs teensy4_bsp #177

Answered by mciantyre
tacertain asked this question in Q&A
Discussion options

You must be logged in to vote

Besides selecting the function of pin 13, imxrt_hal::board::new() also decides that your only serial UART is using pins 14 and 15.
When imxrt_hal::board makes decisions like this, they may not be in your interest.

Here are some of the ways you can configure your Teensy 4's pins. There's more possibilities shown in this table. These show that pins 14 and 15 could be used for not just serial UART, but also SPDIF audio, PWM, or a quad timer, or a GPT input capture, or a FlexIO, or just a GPIO...

Suppose teensy4_bsp returned to you that specific LPUART peripheral on pins 14 and 15, like imxrt_hal::board::new(). What if you don't want that? You've already designed a carrier PCBA for your audio…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tacertain
Comment options

Answer selected by mciantyre
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants