Skip to content

Conversation

@yashi
Copy link
Contributor

@yashi yashi commented May 11, 2022

The documentation has wrongly stated that the function uart_poll_in() is also a blocking function. The uart_poll_out() is indeed a blocking function but uart_poll_in() has never been since day one.

Make it clear that the uart_poll_in() is a non-blocking function, and uart_poll_out() is a blocking.

This fixes #45468.

Signed-off-by: Yasushi SHOJI [email protected]

@yashi yashi requested a review from nashif as a code owner May 11, 2022 02:47
@yashi yashi force-pushed the fix-uart-poll-in-as-non-blocking branch from cd29eb4 to 1c54c4a Compare May 11, 2022 03:06
@github-actions github-actions bot added the area: API Changes to public APIs label May 11, 2022
The documentation has wrongly stated that the function uart_poll_in() is
also a blocking function.  The uart_poll_out() is indeed a blocking
function but uart_poll_in() has never been since day one.

Make it clear that the uart_poll_in() is a NON-blocking function, and
uart_poll_out() IS a blocking.

This fixes zephyrproject-rtos#45468.

Signed-off-by: Yasushi SHOJI <[email protected]>
@yashi yashi force-pushed the fix-uart-poll-in-as-non-blocking branch from 1c54c4a to c70fdbc Compare May 11, 2022 07:53
@zephyrbot zephyrbot added the area: UART Universal Asynchronous Receiver-Transmitter label May 11, 2022
@galak galak added this to the v3.1.0 milestone May 11, 2022
@mbolivar-nordic mbolivar-nordic merged commit bc35b13 into zephyrproject-rtos:main May 13, 2022
@yashi yashi deleted the fix-uart-poll-in-as-non-blocking branch May 14, 2022 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: API Changes to public APIs area: Documentation area: UART Universal Asynchronous Receiver-Transmitter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Is uart_poll_in() blocking or not?

5 participants