zephyr/tests/drivers/uart/uart_mix_fifo_poll
Gerard Marull-Paretas 31f0610edc tests: drivers: uart: use pinctrl for nrf board overlay
nRF boards now require usage of pinctrl, migrate them.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-03-21 15:09:28 +01:00
..
boards tests: drivers: uart: use pinctrl for nrf board overlay 2022-03-21 15:09:28 +01:00
src tests: drivers: uart: mix_poll: Test const buffers 2022-02-02 12:47:46 +01:00
CMakeLists.txt cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
prj.conf kconfig: Rename the ZTEST stack size option to align with the rest 2022-02-22 08:23:05 -05:00
README.txt
testcase.yaml tests: drivers: uart: mix_poll: Test const buffers 2022-02-02 12:47:46 +01:00

The purpose of this test is to validate that uart_poll_out call is resilient to
being interrupted by another uart API call. That includes uart_poll_out called
from higher priority context, uart_fifo_fill called from UART interrupt context
and uart_tx called from higher priority context. Preemptions shall not lead to
any bytes being dropped.

This test is establishing 3 context from which uart_poll_out is called:
- main thread
- higher priority thread
- k_timer timeout context

From each context stream of data is being sent. Bytes in streams are encoded as
following: 4 MSB bits contains stream ID, 4 LSB bits are incremented.

Test requires that two pairs of pins are shortened: TX with RX and CTS with RTS.
UART receives loopback data and validates if for each stream (identified by ID)
data is consistent.