theCore C++ embedded framework
|
#include <ecl/unity_helpers.hpp>
#include "test_uart.hpp"
#include <atomic>
#include <unity.h>
#include <unity_fixture.h>
Functions | |
static void | test_handler (ecl::bus_channel ch, ecl::bus_event type, size_t total) |
static void | wait_transfer_complete () |
TEST_GROUP (uart_bat) | |
TEST_SETUP (uart_bat) | |
TEST_TEAR_DOWN (uart_bat) | |
TEST (uart_bat, transmit_buf) | |
TEST (uart_bat, transmit_buf_fill_mode) | |
TEST (uart_bat, receive_buf) | |
TEST (uart_bat, listen_mode) | |
Variables | |
static bool | uart_inited |
static volatile std::atomic_bool | transfer_complete |
static volatile std::atomic_bool | tx_complete |
static volatile std::atomic_bool | rx_complete |
static size_t | expected_rx |
static size_t | expected_tx |
|
static |
|
static |
TEST_GROUP | ( | uart_bat | ) |
TEST_SETUP | ( | uart_bat | ) |
TEST_TEAR_DOWN | ( | uart_bat | ) |
TEST | ( | uart_bat | , |
transmit_buf | |||
) |
TEST | ( | uart_bat | , |
transmit_buf_fill_mode | |||
) |
TEST | ( | uart_bat | , |
receive_buf | |||
) |
TEST | ( | uart_bat | , |
listen_mode | |||
) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |