zephyr/tests/drivers/uart/uart_elementary
Krzysztof Chruściński 70118c06a5 drivers: serial: nrfx_uarte: Deprecate non-legacy shim
Some time ago a new shim for nRF UARTE was added (uart_nrfx_uarte2.c)
which used nrfx_uarte.c driver underneath. It was supposed to support
nrf54x platforms. However, later on legacy driver (uart_nrfx_uarte.c)
was extended to support nrf54x platforms and it takes less code size,
has better performance and more features. Shim uart_nrfx_uarte2 will
no longer be supported. As new shim is the default and there is a
Kconfig to pick the legacy shim (CONFIG_UART_NRFX_UARTE_LEGACY_SHIM=y)
it cannot be deprecated in the normal way. Additional Kconfig option
is created (DEPRECATED_UART_NRFX_UARTE_LEGACY_SHIM) which is enabled
if CONFIG_UART_NRFX_UARTE_LEGACY_SHIM=n and it selects DEPRECATED.
A warning was also added to the CMakeLists.txt.

Patch removes use CONFIG_UART_NRFX_UARTE_LEGACY_SHIM in tests.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2025-01-14 13:23:32 +01:00
..
boards drivers: serial: nrfx_uarte: Deprecate non-legacy shim 2025-01-14 13:23:32 +01:00
socs tests: esp32c3: Add USB variant 2025-01-10 18:57:07 +01:00
src tests: uart_basic_api: uart_elementary: Get baudrate from device tree 2024-12-19 19:56:06 +01:00
CMakeLists.txt
Kconfig tests: uart_basic_api: uart_elementary: Get baudrate from device tree 2024-12-19 19:56:06 +01:00
prj.conf
README.txt tests: uart_elementary: Correct typos 2024-07-15 15:15:36 -04:00
testcase.yaml tests: drivers: uart: Add nrf54l09pdk_nrf54l09_cpuapp target 2025-01-13 20:24:43 +01:00

The purpose of this test is to validate basic UART driver functions,
that are not tested elsewhere.
UART interrupt mode is used for the tests purpose.

Hardware setup required for these tests:
For single uart configuration - UART0 TX connected to RX and CTS to RTS
For dual uart configuratiom - UART0 and UART1 TXs and RXs cross-connected

These test cases cover:
- UART configuration,
- UART error check,
- UART callback setup,
- Dual UART transmission with matched and mismatched configurations