|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
Host-side self-test ladder + console helpers shared with main.c. More...
#include <stdint.h>#include "tx_api.h"Go to the source code of this file.
Enumerations | |
| enum | cdc_config_t : uint32_t { k_cdc_thread_stack = 4096U , k_cdc_host_stack = 8192U , k_cdc_usbx_pool_bytes = 32768U , k_cdc_idle_ticks = 50U , k_cdc_boot_wait_ticks = 500U , k_cdc_retry_ticks = 3000U , k_cdc_baud = 115200U , k_cdc_print_cap = 160U , k_cdc_dev_priority = 8U , k_cdc_host_priority = 24U } |
| Compile-time settings: threads, pool, console, cadence. More... | |
| enum | cdc_geom_t : uint32_t { k_cdc_mps = 64U , k_cdc_payload = 60U , k_cdc_rounds = 8U , k_cdc_echo_buf = 64U , k_cdc_dev_addr = 1U , k_cdc_ep_in_num = 1U , k_cdc_ep_out_num = 2U , k_cdc_pipe_in = 1U , k_cdc_pipe_out = 2U , k_cdc_no_mismatch = 0xFFFFFFFFU , k_cdc_pat_round_mul = 97U , k_cdc_pat_idx_mul = 7U , k_cdc_pat_bias = 0x5AU , k_cdc_byte_mask = 0xFFU } |
| Echo payload + bulk-pipe + pattern constants. More... | |
Functions | |
| VOID | cdc_host_worker (ULONG arg) |
| Host-side worker: retry the full pass until it succeeds. | |
Host-side self-test ladder + console helpers shared with main.c.
Companion translation unit for the usb_selftest_cdc HIL example. It carries the host-side polled CDC enumerate + bulk-echo ladder, the SCI8 console formatters those routines print through, and the per-round echo pattern. main.c keeps the device-side USBX worker, the board bring-up, and the entry point, and only reaches into this unit through cdc_host_worker (the ThreadX entry it spawns in tx_application_define).
The enums declared here (cdc_config_t, cdc_geom_t) are the constants shared between the two units; the host-private constants live entirely in the companion .c.
Definition in file usb_selftest_cdc_steps.h.
| enum cdc_config_t : uint32_t |
Compile-time settings: threads, pool, console, cadence.
Definition at line 35 of file usb_selftest_cdc_steps.h.
| enum cdc_geom_t : uint32_t |
Echo payload + bulk-pipe + pattern constants.
Definition at line 52 of file usb_selftest_cdc_steps.h.
| VOID cdc_host_worker | ( | ULONG | arg | ) |
Host-side worker: retry the full pass until it succeeds.
Waits for the device side to attach, then loops the host pass with a retry pause until every echo round verifies; afterwards parks so the verdict stays on the wire. Spawned by tx_application_define in main.c as the host ThreadX entry.
| [in] | arg | ThreadX entry argument (unused). |
Definition at line 787 of file usb_selftest_cdc_steps.c.
References cdc_host_pass(), k_cdc_boot_wait_ticks, k_cdc_idle_ticks, k_cdc_retry_ticks, k_ra8_ok, and tx_thread_sleep.
Referenced by tx_application_define().