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

Common data source file for capi_selftest project. Copyright (c) 2025-2026 Analog Devices, Inc. More...

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

Macros

#define IRQ_CTRL_EXTRA   NULL
 
#define TEST_UART_TX_CHUNK   32U
 Write test-framework bytes through the configured CAPI UART.
 
#define UART_CLK_FREQ_HZ   0U
 

Functions

void get_test_framework_config (struct test_framework_config *config, struct capi_uart_handle *uart)
 Fill a test framework configuration for the selected platform.
 

Variables

const struct capi_uart_config uart_config
 CAPI UART configuration used as the test report transport.
 
const char platform_name [] = PLATFORM_NAME
 Short platform label printed by TEST_RUN_START().
 

Detailed Description

Common data source file for capi_selftest project. Copyright (c) 2025-2026 Analog Devices, Inc.

SPDX-License-Identifier: BSD-3-Clause

Macro Definition Documentation

◆ IRQ_CTRL_EXTRA

#define IRQ_CTRL_EXTRA   NULL

◆ TEST_UART_TX_CHUNK

#define TEST_UART_TX_CHUNK   32U

Write test-framework bytes through the configured CAPI UART.

Parameters
context- CAPI UART handle.
data- Bytes to transmit.
length- Number of bytes to transmit.
Returns
0 in case of success, negative error code otherwise.

◆ UART_CLK_FREQ_HZ

#define UART_CLK_FREQ_HZ   0U

Function Documentation

◆ get_test_framework_config()

void get_test_framework_config ( struct test_framework_config * config,
struct capi_uart_handle * uart )

Fill a test framework configuration for the selected platform.

Parameters
config- Destination framework configuration.
uart- UART handle used as the framework write context.

Variable Documentation

◆ platform_name

const char platform_name[] = PLATFORM_NAME

Short platform label printed by TEST_RUN_START().

Short platform label printed in the test run header.

◆ uart_config

const struct capi_uart_config uart_config
Initial value:
= {
.identifier = UART_IDENTIFIER,
.dma_handle = NULL,
.clk_freq_hz = UART_CLK_FREQ_HZ,
.line_config = &uart_line_config,
.extra = &uart_extra,
.ops = UART_OPS,
}
#define UART_OPS
Definition parameters.h:49
struct max_uart_init_param uart_extra
Definition parameters.c:65
#define UART_CLK_FREQ_HZ
Definition common_data.c:92
#define UART_IDENTIFIER
Definition parameters.h:25
#define NULL
Definition wrapper.h:64

CAPI UART configuration used as the test report transport.

Console UART configuration used by the test framework output path.