|
HF Interface Wrapper 0.1.0-dev
Embedded C++ hardware abstraction layer
|
Comprehensive UART testing suite for ESP32-C6 DevKit-M-1 (noexcept) More...
#include "TestFramework.h"#include "base/BaseUart.h"#include "mcu/esp32/EspGpio.h"#include "mcu/esp32/EspUart.h"#include "mcu/esp32/utils/EspTypes_UART.h"#include "driver/uart.h"#include "soc/uart_reg.h"Variables | |
| static const char * | TAG = "UART_Test" |
| static TestResults | g_test_results |
| static constexpr hf_u8_t | TEST_UART_PORT_1 = 1 |
| static constexpr hf_u32_t | TEST_BAUD_RATE = 115200 |
| static constexpr hf_u8_t | TEST_TX_PIN = 5 |
| static constexpr hf_u8_t | TEST_RX_PIN = 4 |
| static constexpr hf_u8_t | TEST_RTS_PIN = 6 |
| static constexpr hf_u8_t | TEST_CTS_PIN = 7 |
| static const uint8_t | TEST_PATTERN = 0x0A |
| static constexpr hf_u16_t | TEST_BUFFER_SIZE = 256 |
| static bool | g_event_callback_triggered = false |
| static bool | g_break_callback_triggered = false |
| static TaskHandle_t | g_user_event_task_handle = nullptr |
| static bool | g_pattern_detected = false |
| static int | g_pattern_position = -1 |
| static bool | g_stop_event_task = false |
| static constexpr bool | ENABLE_CORE_TESTS = true |
| static constexpr bool | ENABLE_BASIC_TESTS = true |
| static constexpr bool | ENABLE_ADVANCED_TESTS |
| static constexpr bool | ENABLE_CALLBACK_TESTS |
| static constexpr bool | ENABLE_ESP_SPECIFIC_TESTS = true |
| static constexpr bool | ENABLE_EVENT_TESTS = true |
| static constexpr bool | ENABLE_CLEANUP_TESTS = true |
Comprehensive UART testing suite for ESP32-C6 DevKit-M-1 (noexcept)
This file contains a dedicated, comprehensive test suite for the EspUart class targeting ESP32-C6 with ESP-IDF v5.5+. It provides thorough testing of all UART functionalities including basic operations, async communication, flow control, advanced features, callbacks, and hardware-specific capabilities.
All functions are noexcept - no exception handling used.
| void app_main | ( | void | ) |
|
noexcept |
|
noexcept |
Flush UART buffers before each test to ensure clean test isolation.
| uart | UART instance to flush |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
staticnoexcept |
|
noexcept |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
static |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |