no-OS
Loading...
Searching...
No Matches
test_uart.c File Reference

CAPI UART external-loopback tests. More...

#include <stdint.h>
#include <string.h>
#include "parameters.h"
#include "test_framework.h"
#include "test_uart.h"
Include dependency graph for test_uart.c:

Functions

int test_uart (void)
 Run all UART test cases available on the mapped platform.
 

Detailed Description

CAPI UART external-loopback tests.

Exercises the CAPI UART API on ONE controller wired in EXTERNAL loopback: its TX pin is physically strapped to its own RX pin on the board. Internal (local) loopback is deliberately NOT used – line_config.loopback stays false – so every case moves real bytes over a real wire and back.

This is a second, spare UART, never the console: the framework's report transport is a different instance entirely (uart_config), and reconfiguring that one mid-run would silence the log.

Hardware assumption: one UART with TX looped back to RX externally.

Copyright (c) 2026 Analog Devices, Inc. SPDX-License-Identifier: BSD-3-Clause

Function Documentation

◆ test_uart()

int test_uart ( void )

Run all UART test cases available on the mapped platform.

Returns
0 if all executed cases passed, first non-zero test error otherwise.