The UART API now supports configure and configure_get functions, however no tests were written for those functions. This commit adds the framework and implementing tests for configure and configure_get for UART API. Fixes (#12872) Signed-off-by: Jennifer Williams <jennifer.m.williams@intel.com>
31 lines
587 B
C
31 lines
587 B
C
/*
|
|
* Copyright (c) 2016 Intel Corporation
|
|
* Copyright (c) 2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @file
|
|
* @brief UART cases header file
|
|
*
|
|
* Header file for UART cases
|
|
*/
|
|
|
|
#ifndef __TEST_UART_H__
|
|
#define __TEST_UART_H__
|
|
|
|
#include <drivers/uart.h>
|
|
#include <ztest.h>
|
|
|
|
#define UART_DEVICE_NAME CONFIG_UART_CONSOLE_ON_DEV_NAME
|
|
|
|
void test_uart_configure(void);
|
|
void test_uart_config_get(void);
|
|
void test_uart_poll_out(void);
|
|
void test_uart_fifo_fill(void);
|
|
void test_uart_fifo_read(void);
|
|
void test_uart_poll_in(void);
|
|
|
|
#endif /* __TEST_UART_H__ */
|