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

drivers: serial: uart_mcux_lpuart: add DTR, DSR, and DCD signals #87416

Merged
merged 1 commit into from
Mar 24, 2025

Conversation

DerekSnell
Copy link
Contributor

Add support for additional line control signals. Improved configuring uart_config_flow_control options.

Removed macro UART_LINE_CTRL_ENABLE because some line control signals in the LPUART do not depend on FSL_FEATURE_LPUART_HAS_MODEM_SUPPORT. Added LPUART_HAS_MODEM instead.

@DerekSnell DerekSnell added area: UART Universal Asynchronous Receiver-Transmitter platform: NXP Drivers NXP Semiconductors, drivers labels Mar 20, 2025
EmilioCBen
EmilioCBen previously approved these changes Mar 20, 2025
dcpleung
dcpleung previously approved these changes Mar 20, 2025
decsny
decsny previously requested changes Mar 20, 2025
Copy link
Member

@decsny decsny left a comment

Choose a reason for hiding this comment

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

good addition but the code is so messy, so for maintenance reasons I can't accept it in current state, there are many opportunities for cleanup which I put in the review

@DerekSnell DerekSnell dismissed stale reviews from dcpleung and EmilioCBen via d3c2854 March 20, 2025 17:15
@DerekSnell DerekSnell force-pushed the LPUART_line_control branch 2 times, most recently from d3c2854 to 7af5b29 Compare March 20, 2025 21:16
@DerekSnell
Copy link
Contributor Author

good addition but the code is so messy, so for maintenance reasons I can't accept it in current state, there are many opportunities for cleanup which I put in the review

Thank you @decsny for your feedback. My code was messy, and your suggestions do improve the readability. Please let me know how this looks to you know. Thanks

Copy link
Member

@decsny decsny left a comment

Choose a reason for hiding this comment

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

this is much nicer and more reviewable too, thank you for doing that cleanup, I just have a couple minor nits left but they are not blocking

@decsny decsny dismissed their stale review March 20, 2025 22:51

much better

Add support for additional line control signals.  Improved configuring
uart_config_flow_control options.

Signed-off-by: Derek Snell <derek.snell@nxp.com>
@DerekSnell DerekSnell force-pushed the LPUART_line_control branch from 7af5b29 to 7916b21 Compare March 21, 2025 13:06
@DerekSnell
Copy link
Contributor Author

@abhinavnxp and @nirav-agrawal , FYI

Since you are using HW flow control with modules and the line control APIs in LPUART, be aware of this update to the driver. Feel free to test out this update. Best regards

@kartben kartben merged commit b259b18 into zephyrproject-rtos:main Mar 24, 2025
21 checks passed
@DerekSnell DerekSnell deleted the LPUART_line_control branch March 24, 2025 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: UART Universal Asynchronous Receiver-Transmitter platform: NXP Drivers NXP Semiconductors, drivers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants