-
Notifications
You must be signed in to change notification settings - Fork 1.4k
imxrt106x serial registration fixes when no dev console defined #17117
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
base: master
Are you sure you want to change the base?
imxrt106x serial registration fixes when no dev console defined #17117
Conversation
|
Hi @dirksavage88 please fix this long line: |
| /**************************************************************************** | ||
| * arch/arm/src/imxrt/hardware/rt106x/imxrt106x_pinmux.h | ||
| * | ||
| * SPDX-License-Identifier: Apache-2.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @dirksavage88 Why did you remove SPDX-License-Identifier ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file was originally copied from the px4 fork of Nuttx. The fork is behind upstream nuttx releases, so I am not surprised if this was an artifact of that.
Here is the px4 forked version for reference
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dirksavage88 Ok, but in NuttX it's necessary. See other files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is added back in no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added it back in @simbit18. This removed license identifier was from an old commit. I've since squashed the commit history so it does not show in the history
I've fixed these long comments |
* Explicit registration of ttys0 when no console defined * Fixes overwriting registration of lpuart1 on ttys1 when no console on ttys0 * Change regstration logic to check for console assignment * See issue 17116 Signed-off-by: dirksavage88 <[email protected]>
09194ed to
c941c8a
Compare
Summary
Addresses inconsistencies in serial uart registration when no DEV_CONSOLE is defined/assigned (See #17116). The registration order is implicitly based on DEV_CONSOLE definition, and it results in lpuart1 registration on ttys0 and ttys1 with no dev console defined.
Impact
Minor impact to users using imxrt106x boards: will impact those who do not have a dev console enabled.
Testing
Compiled on ubuntu 24.04. Tested on Teensy 4.1 derivative board when no dev console defined, but need to test with a dev console on each successive lpuart to make sure the registration order is correct. This derivative board has all 8 lpuarts pins broken out, whereas the teensy4.1 nsh board only has several uarts defined.
build.zip
TODO: test on actual teensy 4.1