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: net: Select UART_INTERRUPT_DRIVEN with UART RCP communication #85090

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lmajewski
Copy link
Collaborator

The Openthread communication with RCP via UART (with HDLC protocol) is performed with serial driver using interrupts. As it was tested with echo_client sample program, the
CONFIG_SHELL_BACKEND_SERIAL_API_INTERRUPT_DRIVEN is defined by default for it. This config selects aforementioned UART_INTERRUPT_DRIVEN.

Problem starts when somebody wants to integrated the driver as a standalone one (without echo_client) as a part of user application. In this situation the UART_INTERRUPT_DRIVEN is not defined by default and there is no serial communication between RCP and HOST devices.

@zephyrbot zephyrbot added the size: XS A PR changing only a single line of code label Feb 3, 2025
@lmajewski lmajewski force-pushed the openthread-rcp-UART_INTERRUPT_DRIVEN-fix branch from ab86267 to f4e3560 Compare February 3, 2025 21:14
@lmajewski
Copy link
Collaborator Author

@xavraz @dleach02 @JA-NXP @decsny @mmahadevan108
Gentle request for review :-)

@lmajewski lmajewski self-assigned this Feb 6, 2025
…ation

The Openthread communication with RCP via UART (with HDLC protocol) is
performed with serial driver using interrupts. As it was tested with
echo_client sample program, the
CONFIG_SHELL_BACKEND_SERIAL_API_INTERRUPT_DRIVEN is defined by default for
it. This config selects aforementioned UART_INTERRUPT_DRIVEN.

Problem starts when somebody wants to integrated the driver as a standalone
one (without echo_client) as a part of user application.
In this situation the UART_INTERRUPT_DRIVEN is not defined by default and
there is no serial communication between RCP and HOST devices.

Signed-off-by: Lukasz Majewski <lukma@denx.de>
@lmajewski lmajewski force-pushed the openthread-rcp-UART_INTERRUPT_DRIVEN-fix branch from f4e3560 to b0aed4c Compare February 8, 2025 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: XS A PR changing only a single line of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants