From 2806b1b2b1937c43a66c4924958c22bef9323b44 Mon Sep 17 00:00:00 2001 From: MAY Date: Wed, 4 Mar 2026 17:37:15 +0100 Subject: [PATCH 01/11] HOST SIM: Add missing uninitialize macro in simulator host header --- common/core/inc/ux_hcd_sim_host.h | 123 +++++++++++++++--------------- 1 file changed, 62 insertions(+), 61 deletions(-) diff --git a/common/core/inc/ux_hcd_sim_host.h b/common/core/inc/ux_hcd_sim_host.h index f61dbff27..95c9ae6dd 100644 --- a/common/core/inc/ux_hcd_sim_host.h +++ b/common/core/inc/ux_hcd_sim_host.h @@ -1,18 +1,18 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation - * + * Copyright (c) 2024 Microsoft Corporation + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ /**************************************************************************/ /**************************************************************************/ -/** */ -/** USBX Component */ +/** */ +/** USBX Component */ /** */ /** Host Simulator Controller Driver */ /** */ @@ -20,26 +20,26 @@ /**************************************************************************/ -/**************************************************************************/ -/* */ -/* COMPONENT DEFINITION RELEASE */ -/* */ -/* ux_hcd_sim_host.h PORTABLE C */ +/**************************************************************************/ +/* */ +/* COMPONENT DEFINITION RELEASE */ +/* */ +/* ux_hcd_sim_host.h PORTABLE C */ /* 6.1.10 */ /* AUTHOR */ /* */ /* Chaoqiong Xiao, Microsoft Corporation */ /* */ /* DESCRIPTION */ -/* */ +/* */ /* This file contains all the header and extern functions used by the */ -/* USBX host simulator. It is designed to work ONLY with the USBX */ -/* device (slave) simulator. */ -/* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ +/* USBX host simulator. It is designed to work ONLY with the USBX */ +/* device (slave) simulator. */ +/* */ +/* RELEASE HISTORY */ +/* */ +/* DATE NAME DESCRIPTION */ +/* */ /* 05-19-2020 Chaoqiong Xiao Initial Version 6.0 */ /* 09-30-2020 Chaoqiong Xiao Modified comment(s), */ /* added controller disable, */ @@ -66,23 +66,23 @@ #ifndef UX_HCD_SIM_HOST_H #define UX_HCD_SIM_HOST_H -/* Determine if a C++ compiler is being used. If so, ensure that standard - C is used to process the API information. */ +/* Determine if a C++ compiler is being used. If so, ensure that standard + C is used to process the API information. */ -#ifdef __cplusplus +#ifdef __cplusplus -/* Yes, C++ compiler is present. Use standard C. */ -extern "C" { +/* Yes, C++ compiler is present. Use standard C. */ +extern "C" { -#endif +#endif /* Define simulator host generic definitions. */ #define UX_HCD_SIM_HOST_CONTROLLER 99 #define UX_HCD_SIM_HOST_MAX_PAYLOAD 4096 -#define UX_HCD_SIM_HOST_FRAME_DELAY 4 -#define UX_HCD_SIM_HOST_PERIODIC_ENTRY_NB 32 +#define UX_HCD_SIM_HOST_FRAME_DELAY 4 +#define UX_HCD_SIM_HOST_PERIODIC_ENTRY_NB 32 #define UX_HCD_SIM_HOST_PERIODIC_ENTRY_MASK 0x1f #define UX_HCD_SIM_HOST_AVAILABLE_BANDWIDTH 6000 @@ -116,19 +116,19 @@ typedef struct UX_HCD_SIM_HOST_STRUCT ULONG ux_hcd_sim_host_hcor; UINT ux_hcd_sim_host_nb_root_hubs; ULONG ux_hcd_sim_host_port_status[1]; - struct UX_HCD_SIM_HOST_ED_STRUCT + struct UX_HCD_SIM_HOST_ED_STRUCT *ux_hcd_sim_host_ed_list; - struct UX_HCD_SIM_HOST_TD_STRUCT + struct UX_HCD_SIM_HOST_TD_STRUCT *ux_hcd_sim_host_td_list; - struct UX_HCD_SIM_HOST_ISO_TD_STRUCT + struct UX_HCD_SIM_HOST_ISO_TD_STRUCT *ux_hcd_sim_host_iso_td_list; - struct UX_HCD_SIM_HOST_ED_STRUCT + struct UX_HCD_SIM_HOST_ED_STRUCT *ux_hcd_sim_host_asynch_head_ed; - struct UX_HCD_SIM_HOST_ED_STRUCT + struct UX_HCD_SIM_HOST_ED_STRUCT *ux_hcd_sim_host_asynch_current_ed; - struct UX_HCD_SIM_HOST_ED_STRUCT + struct UX_HCD_SIM_HOST_ED_STRUCT *ux_hcd_sim_host_iso_head_ed; - struct UX_HCD_SIM_HOST_ED_STRUCT + struct UX_HCD_SIM_HOST_ED_STRUCT *ux_hcd_sim_host_interrupt_ed_list[32]; UINT ux_hcd_sim_host_queue_empty; UINT ux_hcd_sim_host_periodic_scheduler_active; @@ -145,19 +145,19 @@ typedef struct UX_HCD_SIM_HOST_STRUCT typedef struct UX_HCD_SIM_HOST_ED_STRUCT { - struct UX_HCD_SIM_HOST_TD_STRUCT + struct UX_HCD_SIM_HOST_TD_STRUCT *ux_sim_host_ed_tail_td; - struct UX_HCD_SIM_HOST_TD_STRUCT + struct UX_HCD_SIM_HOST_TD_STRUCT *ux_sim_host_ed_head_td; - struct UX_HCD_SIM_HOST_ED_STRUCT + struct UX_HCD_SIM_HOST_ED_STRUCT *ux_sim_host_ed_next_ed; - struct UX_HCD_SIM_HOST_ED_STRUCT + struct UX_HCD_SIM_HOST_ED_STRUCT *ux_sim_host_ed_previous_ed; ULONG ux_sim_host_ed_status; - struct UX_ENDPOINT_STRUCT + struct UX_ENDPOINT_STRUCT *ux_sim_host_ed_endpoint; - ULONG ux_sim_host_ed_toggle; - ULONG ux_sim_host_ed_frame; + ULONG ux_sim_host_ed_toggle; + ULONG ux_sim_host_ed_frame; } UX_HCD_SIM_HOST_ED; @@ -171,17 +171,17 @@ typedef struct UX_HCD_SIM_HOST_ED_STRUCT /* Define simulator host TD structure. */ typedef struct UX_HCD_SIM_HOST_TD_STRUCT -{ +{ UCHAR * ux_sim_host_td_buffer; ULONG ux_sim_host_td_length; - struct UX_HCD_SIM_HOST_TD_STRUCT + struct UX_HCD_SIM_HOST_TD_STRUCT *ux_sim_host_td_next_td; - struct UX_TRANSFER_STRUCT + struct UX_TRANSFER_STRUCT *ux_sim_host_td_transfer_request; - struct UX_HCD_SIM_HOST_TD_STRUCT + struct UX_HCD_SIM_HOST_TD_STRUCT *ux_sim_host_td_next_td_transfer_request; - struct UX_HCD_SIM_HOST_ED_STRUCT + struct UX_HCD_SIM_HOST_ED_STRUCT *ux_sim_host_td_ed; ULONG ux_sim_host_td_actual_length; ULONG ux_sim_host_td_status; @@ -192,12 +192,12 @@ typedef struct UX_HCD_SIM_HOST_TD_STRUCT /* Define simulator host TD bitmap. */ -#define UX_HCD_SIM_HOST_TD_SETUP_PHASE 0x00010000 -#define UX_HCD_SIM_HOST_TD_DATA_PHASE 0x00020000 -#define UX_HCD_SIM_HOST_TD_STATUS_PHASE 0x00040000 +#define UX_HCD_SIM_HOST_TD_SETUP_PHASE 0x00010000 +#define UX_HCD_SIM_HOST_TD_DATA_PHASE 0x00020000 +#define UX_HCD_SIM_HOST_TD_STATUS_PHASE 0x00040000 #define UX_HCD_SIM_HOST_TD_OUT 0x00000800 #define UX_HCD_SIM_HOST_TD_IN 0x00001000 -#define UX_HCD_SIM_HOST_TD_ACK_PENDING 0x00002000 +#define UX_HCD_SIM_HOST_TD_ACK_PENDING 0x00002000 #define UX_HCD_SIM_HOST_TD_TOGGLE_FROM_ED 0x80000000 @@ -208,13 +208,13 @@ typedef struct UX_HCD_SIM_HOST_ISO_TD_STRUCT UCHAR * ux_sim_host_iso_td_buffer; ULONG ux_sim_host_iso_td_length; - struct UX_HCD_SIM_HOST_ISO_TD_STRUCT + struct UX_HCD_SIM_HOST_ISO_TD_STRUCT *ux_sim_host_iso_td_next_td; - struct UX_TRANSFER_STRUCT + struct UX_TRANSFER_STRUCT *ux_sim_host_iso_td_transfer_request; - struct UX_HCD_SIM_HOST_ISO_TD_STRUCT + struct UX_HCD_SIM_HOST_ISO_TD_STRUCT *ux_sim_host_iso_td_next_td_transfer_request; - struct UX_HCD_SIM_HOST_ED_STRUCT + struct UX_HCD_SIM_HOST_ED_STRUCT *ux_sim_host_iso_td_ed; ULONG ux_sim_host_iso_td_actual_length; ULONG ux_sim_host_iso_td_status; @@ -228,7 +228,7 @@ VOID _ux_hcd_sim_host_asynch_queue_process(UX_HCD_SIM_HOST *hcd_sim_host); VOID _ux_hcd_sim_host_asynch_schedule(UX_HCD_SIM_HOST *hcd_sim_host); UINT _ux_hcd_sim_host_asynchronous_endpoint_create(UX_HCD_SIM_HOST *hcd_sim_host, UX_ENDPOINT *endpoint); UINT _ux_hcd_sim_host_asynchronous_endpoint_destroy(UX_HCD_SIM_HOST *hcd_sim_host, UX_ENDPOINT *endpoint); -UX_HCD_SIM_HOST_ED +UX_HCD_SIM_HOST_ED *_ux_hcd_sim_host_ed_obtain(UX_HCD_SIM_HOST *hcd_sim_host); VOID _ux_hcd_sim_host_ed_td_clean(UX_HCD_SIM_HOST_ED *ed); UINT _ux_hcd_sim_host_endpoint_reset(UX_HCD_SIM_HOST *hcd_sim_host, UX_ENDPOINT *endpoint); @@ -242,15 +242,15 @@ UINT _ux_hcd_sim_host_interrupt_endpoint_create(UX_HCD_SIM_HOST *hcd_sim_host VOID _ux_hcd_sim_host_iso_queue_process(UX_HCD_SIM_HOST *hcd_sim_host); VOID _ux_hcd_sim_host_iso_schedule(UX_HCD_SIM_HOST *hcd_sim_host); UINT _ux_hcd_sim_host_isochronous_endpoint_create(UX_HCD_SIM_HOST *hcd_sim_host, UX_ENDPOINT *endpoint); -UX_HCD_SIM_HOST_ISO_TD +UX_HCD_SIM_HOST_ISO_TD *_ux_hcd_sim_host_isochronous_td_obtain(UX_HCD_SIM_HOST *hcd_sim_host); -UX_HCD_SIM_HOST_ED +UX_HCD_SIM_HOST_ED *_ux_hcd_sim_host_least_traffic_list_get(UX_HCD_SIM_HOST *hcd_sim_host); UINT _ux_hcd_sim_host_periodic_endpoint_destroy(UX_HCD_SIM_HOST *hcd_sim_host, UX_ENDPOINT *endpoint); VOID _ux_hcd_sim_host_periodic_schedule(UX_HCD_SIM_HOST *hcd_sim_host); UINT _ux_hcd_sim_host_periodic_tree_create(UX_HCD_SIM_HOST *hcd_sim_host); ULONG _ux_hcd_sim_host_port_status_get(UX_HCD_SIM_HOST *hcd_sim_host, ULONG port_index); -UX_HCD_SIM_HOST_TD +UX_HCD_SIM_HOST_TD *_ux_hcd_sim_host_regular_td_obtain(UX_HCD_SIM_HOST *hcd_sim_host); UINT _ux_hcd_sim_host_request_bulk_transfer(UX_HCD_SIM_HOST *hcd_sim_host, UX_TRANSFER *transfer_request); UINT _ux_hcd_sim_host_request_control_transfer(UX_HCD_SIM_HOST *hcd_sim_host, UX_TRANSFER *transfer_request); @@ -267,11 +267,12 @@ UINT _ux_hcd_sim_host_transfer_run(UX_HCD_SIM_HOST *hcd_sim_host, UX_TRANSFER /* Define Device Simulator Class API prototypes. */ #define ux_hcd_sim_host_initialize _ux_hcd_sim_host_initialize -/* Determine if a C++ compiler is being used. If so, complete the standard - C conditional started above. */ +#define ux_hcd_sim_host_uninitialize _ux_hcd_sim_host_uninitialize + +/* Determine if a C++ compiler is being used. If so, complete the standard + C conditional started above. */ #ifdef __cplusplus -} +} #endif #endif - From 0b95590b1854a9f38be39a96876067ba3e47db8f Mon Sep 17 00:00:00 2001 From: MAY Date: Wed, 25 Mar 2026 22:00:44 +0100 Subject: [PATCH 02/11] Add default value protection for line coding parameters in serial Host classes Add preprocessor guards to allow customization of default line coding parameters. Summary of Changes: - Wrapped default line coding constants (RATE, STOP_BIT, PARITY, DATA_BIT) with #ifndef guards in CDC ACM, GSER, and Prolific host class headers - This allows users to define custom default values before including these headers in (ux_user.h) - Updated Prolific activation code to use DEFAULT constants instead of hardcoded values for consistency and better maintainability Files Modified: - common/usbx_host_classes/inc/ux_host_class_cdc_acm.h - common/usbx_host_classes/inc/ux_host_class_gser.h - common/usbx_host_classes/inc/ux_host_class_prolific.h - common/usbx_host_classes/src/ux_host_class_prolific_activate.c --- .../usbx_host_classes/inc/ux_host_class_cdc_acm.h | 11 +++++++++++ common/usbx_host_classes/inc/ux_host_class_gser.h | 13 +++++++++++++ .../usbx_host_classes/inc/ux_host_class_prolific.h | 13 +++++++++++++ .../src/ux_host_class_prolific_activate.c | 4 ++-- 4 files changed, 39 insertions(+), 2 deletions(-) diff --git a/common/usbx_host_classes/inc/ux_host_class_cdc_acm.h b/common/usbx_host_classes/inc/ux_host_class_cdc_acm.h index 24b8fb4e7..b8c392f48 100644 --- a/common/usbx_host_classes/inc/ux_host_class_cdc_acm.h +++ b/common/usbx_host_classes/inc/ux_host_class_cdc_acm.h @@ -135,10 +135,21 @@ extern "C" { /* Define CDC ACM default values. */ +#ifndef UX_HOST_CLASS_CDC_ACM_LINE_CODING_DEFAULT_RATE #define UX_HOST_CLASS_CDC_ACM_LINE_CODING_DEFAULT_RATE 9600 +#endif + +#ifndef UX_HOST_CLASS_CDC_ACM_LINE_CODING_DEFAULT_STOP_BIT #define UX_HOST_CLASS_CDC_ACM_LINE_CODING_DEFAULT_STOP_BIT 0 +#endif + +#ifndef UX_HOST_CLASS_CDC_ACM_LINE_CODING_DEFAULT_PARITY #define UX_HOST_CLASS_CDC_ACM_LINE_CODING_DEFAULT_PARITY 0 +#endif + +#ifndef UX_HOST_CLASS_CDC_ACM_LINE_CODING_DEFAULT_DATA_BIT #define UX_HOST_CLASS_CDC_ACM_LINE_CODING_DEFAULT_DATA_BIT 8 +#endif /* Define CDC ACM line coding definitions. */ diff --git a/common/usbx_host_classes/inc/ux_host_class_gser.h b/common/usbx_host_classes/inc/ux_host_class_gser.h index 9332dbfed..8096ff41f 100644 --- a/common/usbx_host_classes/inc/ux_host_class_gser.h +++ b/common/usbx_host_classes/inc/ux_host_class_gser.h @@ -115,8 +115,21 @@ extern "C" { /* Define CDC ACM default values. */ +#ifndef UX_HOST_CLASS_GSER_LINE_CODING_DEFAULT_RATE #define UX_HOST_CLASS_GSER_LINE_CODING_DEFAULT_RATE 9600 +#endif + +#ifndef UX_HOST_CLASS_GSER_LINE_CODING_DEFAULT_STOP_BIT +#define UX_HOST_CLASS_GSER_LINE_CODING_DEFAULT_STOP_BIT 0 +#endif + +#ifndef UX_HOST_CLASS_GSER_LINE_CODING_DEFAULT_PARITY +#define UX_HOST_CLASS_GSER_LINE_CODING_DEFAULT_PARITY 0 +#endif + +#ifndef UX_HOST_CLASS_GSER_LINE_CODING_DEFAULT_DATA_BIT #define UX_HOST_CLASS_GSER_LINE_CODING_DEFAULT_DATA_BIT 8 +#endif /* Define CDC ACM line coding definitions. */ diff --git a/common/usbx_host_classes/inc/ux_host_class_prolific.h b/common/usbx_host_classes/inc/ux_host_class_prolific.h index 94b516ffb..eb6c9cbe7 100644 --- a/common/usbx_host_classes/inc/ux_host_class_prolific.h +++ b/common/usbx_host_classes/inc/ux_host_class_prolific.h @@ -144,8 +144,21 @@ extern "C" { /* Define PROLIFIC default values. */ +#ifndef UX_HOST_CLASS_PROLIFIC_LINE_CODING_DEFAULT_RATE #define UX_HOST_CLASS_PROLIFIC_LINE_CODING_DEFAULT_RATE 19200 +#endif + +#ifndef UX_HOST_CLASS_PROLIFIC_LINE_CODING_DEFAULT_STOP_BIT +#define UX_HOST_CLASS_PROLIFIC_LINE_CODING_DEFAULT_STOP_BIT 0 +#endif + +#ifndef UX_HOST_CLASS_PROLIFIC_LINE_CODING_DEFAULT_PARITY +#define UX_HOST_CLASS_PROLIFIC_LINE_CODING_DEFAULT_PARITY 0 +#endif + +#ifndef UX_HOST_CLASS_PROLIFIC_LINE_CODING_DEFAULT_DATA_BIT #define UX_HOST_CLASS_PROLIFIC_LINE_CODING_DEFAULT_DATA_BIT 8 +#endif /* Define PROLIFIC line coding definitions. */ diff --git a/common/usbx_host_classes/src/ux_host_class_prolific_activate.c b/common/usbx_host_classes/src/ux_host_class_prolific_activate.c index e2afb35f6..862af1e82 100644 --- a/common/usbx_host_classes/src/ux_host_class_prolific_activate.c +++ b/common/usbx_host_classes/src/ux_host_class_prolific_activate.c @@ -125,8 +125,8 @@ UINT status; if (status == UX_SUCCESS) { line_coding.ux_host_class_prolific_line_coding_dter = UX_HOST_CLASS_PROLIFIC_LINE_CODING_DEFAULT_RATE; - line_coding.ux_host_class_prolific_line_coding_stop_bit = UX_HOST_CLASS_PROLIFIC_LINE_CODING_STOP_BIT_0; - line_coding.ux_host_class_prolific_line_coding_parity = UX_HOST_CLASS_PROLIFIC_LINE_CODING_PARITY_NONE; + line_coding.ux_host_class_prolific_line_coding_stop_bit = UX_HOST_CLASS_PROLIFIC_LINE_CODING_DEFAULT_STOP_BIT; + line_coding.ux_host_class_prolific_line_coding_parity = UX_HOST_CLASS_PROLIFIC_LINE_CODING_DEFAULT_PARITY; line_coding.ux_host_class_prolific_line_coding_data_bits = UX_HOST_CLASS_PROLIFIC_LINE_CODING_DEFAULT_DATA_BIT; status = _ux_host_class_prolific_ioctl(prolific, UX_HOST_CLASS_PROLIFIC_IOCTL_SET_LINE_CODING, (VOID *) &line_coding); } From 0fbb14573df8b9f791e64efa0a43d4e71f6195d1 Mon Sep 17 00:00:00 2001 From: MAY <81168645+ayedm1@users.noreply.github.com> Date: Tue, 2 Jun 2026 22:06:52 +0200 Subject: [PATCH 03/11] Removed unimplemented and stale API prototypes (#259) This commit cleans up header declarations by removing API and test prototypes that have no corresponding implementation in the repository. Impact: - No runtime behavior change. - Compile/link surface is cleaner and more accurate for users and tests. --- common/core/inc/ux_api.h | 7 ------- common/usbx_pictbridge/inc/ux_pictbridge.h | 3 --- test/regression/ux_device_class_dummy.h | 1 - test/regression/ux_test.h | 1 - 4 files changed, 12 deletions(-) diff --git a/common/core/inc/ux_api.h b/common/core/inc/ux_api.h index c6fa5aad5..a9daa956b 100644 --- a/common/core/inc/ux_api.h +++ b/common/core/inc/ux_api.h @@ -2745,7 +2745,6 @@ typedef struct UX_HOST_CLASS_DPUMP_STRUCT #define ux_device_stack_transfer_run _ux_device_stack_transfer_run #define ux_hcd_ehci_initialize _ux_hcd_ehci_initialize -#define ux_hcd_isp1161_initialize _ux_hcd_isp1161_initialize #define ux_hcd_ohci_initialize _ux_hcd_ohci_initialize #define ux_hcd_sim_host_initialize _ux_hcd_sim_host_initialize #define ux_dcd_sim_slave_initialize _ux_dcd_sim_slave_initialize @@ -2769,7 +2768,6 @@ UINT uxe_system_initialize(VOID *non_cached_memory_pool_start, ULONG non_cach /* Define USBX Host API prototypes. */ UINT ux_hcd_ehci_initialize(UX_HCD *hcd); -UINT ux_hcd_isp1161_initialize(UX_HCD *hcd); UINT ux_hcd_ohci_initialize(UX_HCD *hcd); UINT ux_hcd_sim_host_initialize(UX_HCD *hcd); @@ -2805,13 +2803,9 @@ UINT ux_host_stack_transfer_run(UX_TRANSFER *transfer_request); /* Define USBX Device API prototypes. */ -UINT ux_dcd_at91_initialize(ULONG dcd_io); -UINT ux_dcd_isp1181_initialize(ULONG dcd_io, ULONG dcd_irq, ULONG dcd_vbus_address); -UINT ux_dcd_ml6965_initialize(ULONG dcd_io, ULONG dcd_irq, ULONG dcd_vbus_address); UINT ux_dcd_sim_slave_initialize(VOID); UINT ux_device_class_storage_entry(UX_SLAVE_CLASS_COMMAND *command); -VOID ux_device_class_storage_thread(ULONG); UINT ux_device_stack_alternate_setting_get(ULONG interface_value); UINT ux_device_stack_alternate_setting_set(ULONG interface_value, ULONG alternate_setting_value); UINT ux_device_stack_class_register(UCHAR *class_name, @@ -2839,7 +2833,6 @@ UINT ux_device_stack_interface_set(UCHAR * device_framework, ULONG device_fra ULONG alternate_setting_value); UINT ux_device_stack_interface_start(UX_SLAVE_INTERFACE *ux_interface); UINT ux_device_stack_transfer_request(UX_SLAVE_TRANSFER *transfer_request, ULONG slave_length, ULONG host_length); -UINT ux_device_stack_transfer_request_abort(UX_SLAVE_TRANSFER *transfer_request, ULONG completion_code); UINT ux_device_stack_microsoft_extension_register(ULONG vendor_request, UINT (*vendor_request_function)(ULONG, ULONG, ULONG, ULONG, UCHAR *, ULONG *)); diff --git a/common/usbx_pictbridge/inc/ux_pictbridge.h b/common/usbx_pictbridge/inc/ux_pictbridge.h index 188aa6047..ef43b3641 100644 --- a/common/usbx_pictbridge/inc/ux_pictbridge.h +++ b/common/usbx_pictbridge/inc/ux_pictbridge.h @@ -963,9 +963,6 @@ UINT _ux_pictbridge_object_tag_line_add(UCHAR *pima_object_buffer, UCHAR **pima_object_buffer_updated, ULONG *object_length_updated); -UINT _ux_pictbridge_input_object_create(UX_PICTBRIDGE *pictbridge, ULONG input_function); - - /* Define external strings and xml tag lines. */ extern UCHAR _ux_pictbridge_volume_description[]; diff --git a/test/regression/ux_device_class_dummy.h b/test/regression/ux_device_class_dummy.h index 924d49b4b..79087d6cc 100644 --- a/test/regression/ux_device_class_dummy.h +++ b/test/regression/ux_device_class_dummy.h @@ -48,6 +48,5 @@ UX_SLAVE_TRANSFER *_ux_device_class_dummy_get_transfer_request(UX_DEVICE_CLASS_D ULONG _ux_device_class_dummy_get_max_packet_size(UX_DEVICE_CLASS_DUMMY *dummy, UCHAR endpoint_address); UINT _ux_device_class_dummy_transfer(UX_DEVICE_CLASS_DUMMY *dummy, UCHAR endpoint_address, UCHAR *buffer, ULONG length, ULONG *actual_length); -UINT _ux_device_class_dummy_abort(UX_DEVICE_CLASS_DUMMY *dummy, UCHAR endpoint_address); #endif diff --git a/test/regression/ux_test.h b/test/regression/ux_test.h index a496aa231..6fa632f22 100644 --- a/test/regression/ux_test.h +++ b/test/regression/ux_test.h @@ -426,7 +426,6 @@ VOID ux_test_turn_off_expedient(UCHAR *); VOID ux_test_turn_on_expedient(UCHAR *); UCHAR ux_test_is_expedient_on(); VOID ux_test_set_expedient(UCHAR); -ULONG ux_test_calc_total_memory_allocated(ULONG memory_alignment, ULONG memory_cache_flag, ULONG memory_size_requested); UCHAR ux_test_check_actions_empty(); UINT ux_test_wait_for_empty_actions(); UINT ux_test_get_num_actions_left(); From c048e1ce16f90ab4c670238d0ebbc487faac9118 Mon Sep 17 00:00:00 2001 From: SeanHowsonAdvCo Date: Thu, 4 Jun 2026 14:51:26 +0100 Subject: [PATCH 04/11] Implemented a bugfix for control transfer requests parsing (#218) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * No longer using request_value to get request type. * Removal of shift. * Fix GET/SET_DESCRIPTOR routing for class-defined descriptor types When a host sends GET_DESCRIPTOR or SET_DESCRIPTOR with bmRequestType set to STANDARD but requests a class-defined descriptor type (e.g. HID Report 0x22 or Physical 0x23), the request must be routed to the class layer rather than handled as a standard USB request. Per USB HID 1.11 section 7.1.1, HID stacks legitimately issue GET_DESCRIPTOR with bmRequestType=STANDARD | INTERFACE | IN for class descriptors. The previous fix (checking request_type != STANDARD) broke this path: (0x81 & 0x60) == 0x00 was seen as standard and the request would be stalled. The new condition explicitly checks: 1. request is GET_DESCRIPTOR or SET_DESCRIPTOR 2. bmRequestType type field is STANDARD 3. bDescriptorType (high byte of wValue) is in the USB-IF class-reserved range 0x21..0x2F Requests with bmRequestType already set to CLASS or VENDOR, and standard descriptors (bDescriptorType < 0x21, e.g. BOS 0x0F) or vendor descriptors (>= 0x40), are left unchanged and follow their normal dispatch path. Also fix (UINT) to (ULONG) cast, matching the declared type of request_type. Suggested-by: ABOUSTM --------- Co-authored-by: Frédéric Desbiens Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../ux_device_stack_control_request_process.c | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/common/core/src/ux_device_stack_control_request_process.c b/common/core/src/ux_device_stack_control_request_process.c index 013c3452e..eb1535560 100644 --- a/common/core/src/ux_device_stack_control_request_process.c +++ b/common/core/src/ux_device_stack_control_request_process.c @@ -109,13 +109,22 @@ ULONG application_data_length; request_index = _ux_utility_short_get(transfer_request -> ux_slave_transfer_request_setup + UX_SETUP_INDEX); request_length = _ux_utility_short_get(transfer_request -> ux_slave_transfer_request_setup + UX_SETUP_LENGTH); - /* Filter for GET_DESCRIPTOR/SET_DESCRIPTOR commands. If the descriptor to be returned is not a standard descriptor, - treat the command as a CLASS command. */ - if ((request == UX_GET_DESCRIPTOR || request == UX_SET_DESCRIPTOR) && (((request_value >> 8) & UX_REQUEST_TYPE) != UX_REQUEST_TYPE_STANDARD)) + /* Per USB HID 1.11 section 7.1.1, GET_DESCRIPTOR/SET_DESCRIPTOR for a + class-defined descriptor type (e.g. HID Report 0x22, Physical 0x23) + may arrive with bmRequestType set to STANDARD rather than CLASS. + Detect this via the high byte of wValue (bDescriptorType): USB-IF + allocates 0x21..0x2F to class-defined descriptors, so re-route any + such request to the class layer. Standard descriptors (< 0x21, + including BOS 0x0F) and vendor descriptors (>= 0x40) are left + unchanged. */ + if ((request == UX_GET_DESCRIPTOR || request == UX_SET_DESCRIPTOR) && + ((request_type & UX_REQUEST_TYPE) == UX_REQUEST_TYPE_STANDARD) && + (((request_value >> 8) & 0xFFu) >= 0x21u) && + (((request_value >> 8) & 0xFFu) <= 0x2Fu)) { /* This request is to be handled by the class layer. */ - request_type &= (UINT)~UX_REQUEST_TYPE; + request_type &= (ULONG)~UX_REQUEST_TYPE; request_type |= UX_REQUEST_TYPE_CLASS; } From 35927220c0165c06dc90e6c9aa7a8eb9b5806065 Mon Sep 17 00:00:00 2001 From: MAY <81168645+ayedm1@users.noreply.github.com> Date: Thu, 4 Jun 2026 21:25:54 +0200 Subject: [PATCH 05/11] Added optional device HID protocol change callback and host HID protocol get/set API (#244) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This pull request adds host-side HID API functions to get and set the HID protocol (boot vs. report mode), and introduces an optional device-sidecallback invoked when the protocol changes. New features - Added host-side APIs ux_host_class_hid_protocol_set() and ux_host_class_hid_protocol_get() with error-checking wrappers (_uxe_ variants). - Added optional device-side callback ux_device_class_hid_set_protocol_callback, invoked when the host changes the active protocol. - Added a comprehensive test to verify the new protocol callback functionality. Bug fixes (host-side protocol get/set) 1. DMA buffer safety (protocol_get): The received byte is now written into a cache-safe allocated buffer instead of the caller's USHORT* directly. Stack memory is not DMA-safe on cache-incoherent embedded targets, and writing 1 byte into a USHORT* yields incorrect results on big-endianplatforms. Follows the same pattern as ux_host_class_hid_idle_get. 2. Missing device protection semaphore (both functions): In RTOS mode, ux_device_protection_semaphore is now acquired before submitting the transfer, in addition to the HID instance semaphore. All other HID control transfer functions (idle_get, idle_set) take both semaphores; omitting it allowed concurrent callers to corrupt the shared transfer_request fields. 3. Missing standalone locking (both functions): Added proper UX_HOST_STANDALONE support using UX_DISABLE/UX_RESTORE to atomically check and setUX_HOST_CLASS_HID_FLAG_LOCK and UX_DEVICE_FLAG_LOCK, and set UX_TRANSFER_FLAG_AUTO_DEVICE_UNLOCK + UX_TRANSFER_STATE_RESET on the transfer request before initiating. Follows the idle_get inline standalone pattern. Co-authored-by: Frédéric Desbiens Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../inc/ux_device_class_hid.h | 5 + .../src/ux_device_class_hid_control_request.c | 16 +- .../src/ux_device_class_hid_initialize.c | 2 + common/usbx_host_classes/CMakeLists.txt | 2 + .../usbx_host_classes/inc/ux_host_class_hid.h | 19 +- .../src/ux_host_class_hid_protocol_get.c | 208 ++++++++ .../src/ux_host_class_hid_protocol_set.c | 182 +++++++ test/cmake/usbx/regression/CMakeLists.txt | 1 + ...ice_class_hid_set_protocol_callback_test.c | 465 ++++++++++++++++++ test/regression/usbxtestcontrol.c | 2 + 10 files changed, 895 insertions(+), 7 deletions(-) create mode 100644 common/usbx_host_classes/src/ux_host_class_hid_protocol_get.c create mode 100644 common/usbx_host_classes/src/ux_host_class_hid_protocol_set.c create mode 100644 test/regression/usbx_ux_device_class_hid_set_protocol_callback_test.c diff --git a/common/usbx_device_classes/inc/ux_device_class_hid.h b/common/usbx_device_classes/inc/ux_device_class_hid.h index add018e50..f5a48f4a7 100644 --- a/common/usbx_device_classes/inc/ux_device_class_hid.h +++ b/common/usbx_device_classes/inc/ux_device_class_hid.h @@ -215,6 +215,7 @@ typedef struct UX_SLAVE_CLASS_HID_STRUCT UINT ux_device_class_hid_state; UINT (*ux_device_class_hid_callback)(struct UX_SLAVE_CLASS_HID_STRUCT *hid, UX_SLAVE_CLASS_HID_EVENT *); UINT (*ux_device_class_hid_get_callback)(struct UX_SLAVE_CLASS_HID_STRUCT *hid, UX_SLAVE_CLASS_HID_EVENT *); + VOID (*ux_device_class_hid_set_protocol_callback)(struct UX_SLAVE_CLASS_HID_STRUCT *hid, ULONG protocol); VOID (*ux_slave_class_hid_instance_activate)(VOID *); VOID (*ux_slave_class_hid_instance_deactivate)(VOID *); UCHAR *ux_device_class_hid_report_address; @@ -331,6 +332,10 @@ typedef struct UX_SLAVE_CLASS_HID_PARAMETER_STRUCT ULONG ux_device_class_hid_parameter_report_length; UINT (*ux_device_class_hid_parameter_callback)(struct UX_SLAVE_CLASS_HID_STRUCT *hid, UX_SLAVE_CLASS_HID_EVENT *); UINT (*ux_device_class_hid_parameter_get_callback)(struct UX_SLAVE_CLASS_HID_STRUCT *hid, UX_SLAVE_CLASS_HID_EVENT *); + + /* Optional callback invoked when protocol changes (boot/report). */ + VOID (*ux_device_class_hid_parameter_set_protocol_callback)(struct UX_SLAVE_CLASS_HID_STRUCT *hid, ULONG protocol); + #if defined(UX_DEVICE_CLASS_HID_FLEXIBLE_EVENTS_QUEUE) ULONG ux_device_class_hid_parameter_event_max_number; ULONG ux_device_class_hid_parameter_event_max_length; diff --git a/common/usbx_device_classes/src/ux_device_class_hid_control_request.c b/common/usbx_device_classes/src/ux_device_class_hid_control_request.c index 5569ba1b5..ccc47e874 100644 --- a/common/usbx_device_classes/src/ux_device_class_hid_control_request.c +++ b/common/usbx_device_classes/src/ux_device_class_hid_control_request.c @@ -178,15 +178,28 @@ UX_SLAVE_CLASS_HID *hid; case UX_DEVICE_CLASS_HID_COMMAND_GET_PROTOCOL: - /* Send the protocol. */ + /* Send the protocol to host. */ *transfer_request -> ux_slave_transfer_request_data_pointer = (UCHAR)hid -> ux_device_class_hid_protocol; _ux_device_stack_transfer_request(transfer_request, 1, request_length); break; case UX_DEVICE_CLASS_HID_COMMAND_SET_PROTOCOL: + /* Check protocol must be 0 (Boot) or 1 (Report). */ + if ((request_value != UX_DEVICE_CLASS_HID_PROTOCOL_BOOT) && + (request_value != UX_DEVICE_CLASS_HID_PROTOCOL_REPORT)) + { + /* Invalid value: not handled. */ + return(UX_ERROR); + } + /* Accept the protocol. */ hid -> ux_device_class_hid_protocol = request_value; + + /* If there is a callback defined by the application, send the protocol to it. */ + if (hid -> ux_device_class_hid_set_protocol_callback != UX_NULL) + hid -> ux_device_class_hid_set_protocol_callback(hid, request_value); + break; default: @@ -198,4 +211,3 @@ UX_SLAVE_CLASS_HID *hid; /* It's handled. */ return(UX_SUCCESS); } - diff --git a/common/usbx_device_classes/src/ux_device_class_hid_initialize.c b/common/usbx_device_classes/src/ux_device_class_hid_initialize.c index 94d7f0161..5b6e4f029 100644 --- a/common/usbx_device_classes/src/ux_device_class_hid_initialize.c +++ b/common/usbx_device_classes/src/ux_device_class_hid_initialize.c @@ -9,6 +9,7 @@ * SPDX-License-Identifier: MIT **************************************************************************/ + /**************************************************************************/ /**************************************************************************/ /** */ @@ -166,6 +167,7 @@ UCHAR *buffer; /* Store the callback function. */ hid -> ux_device_class_hid_callback = hid_parameter -> ux_device_class_hid_parameter_callback; hid -> ux_device_class_hid_get_callback = hid_parameter -> ux_device_class_hid_parameter_get_callback; + hid -> ux_device_class_hid_set_protocol_callback = hid_parameter -> ux_device_class_hid_parameter_set_protocol_callback; #if defined(UX_DEVICE_CLASS_HID_FLEXIBLE_EVENTS_QUEUE) diff --git a/common/usbx_host_classes/CMakeLists.txt b/common/usbx_host_classes/CMakeLists.txt index 474208992..11083a22a 100644 --- a/common/usbx_host_classes/CMakeLists.txt +++ b/common/usbx_host_classes/CMakeLists.txt @@ -93,6 +93,8 @@ target_sources(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/src/ux_host_class_hid_idle_get.c ${CMAKE_CURRENT_LIST_DIR}/src/ux_host_class_hid_idle_set.c ${CMAKE_CURRENT_LIST_DIR}/src/ux_host_class_hid_idle_set_run.c + ${CMAKE_CURRENT_LIST_DIR}/src/ux_host_class_hid_protocol_set.c + ${CMAKE_CURRENT_LIST_DIR}/src/ux_host_class_hid_protocol_get.c ${CMAKE_CURRENT_LIST_DIR}/src/ux_host_class_hid_instance_clean.c ${CMAKE_CURRENT_LIST_DIR}/src/ux_host_class_hid_interrupt_endpoint_search.c ${CMAKE_CURRENT_LIST_DIR}/src/ux_host_class_hid_item_data_get.c diff --git a/common/usbx_host_classes/inc/ux_host_class_hid.h b/common/usbx_host_classes/inc/ux_host_class_hid.h index b10f60554..94cf26110 100644 --- a/common/usbx_host_classes/inc/ux_host_class_hid.h +++ b/common/usbx_host_classes/inc/ux_host_class_hid.h @@ -15,7 +15,7 @@ /** */ /** USBX Component */ /** */ -/** HID Class */ +/** Host HID Class */ /** */ /**************************************************************************/ /**************************************************************************/ @@ -548,7 +548,7 @@ extern "C" { #define UX_HOST_CLASS_HID_CONSUMER_ALTERNATE_AUDIO_DECREMENT 0x173 #define UX_HOST_CLASS_HID_CONSUMER_APPLICATION_LAUNCH_BUTTONS 0x174 #define UX_HOST_CLASS_HID_CONSUMER_AL_LAUNCH_BUTTON_CONFIGURATION 0x180 -#define UX_HOST_CLASS_HID_CONSUMER_AL_PROGRAMMABLE_BUTTON 0x181 +#define UX_HOST_CLASS_HID_CONSUMER_AL_PROGRAMMABLE_BUTTON 0x181 #define UX_HOST_CLASS_HID_CONSUMER_AL_CONSUMER_CONTROL_CONFIGURATION 0x182 #define UX_HOST_CLASS_HID_CONSUMER_AL_WORD_PROCESSOR 0x183 #define UX_HOST_CLASS_HID_CONSUMER_AL_TEXT_EDITOR 0x184 @@ -764,6 +764,10 @@ extern "C" { #define UX_HOST_CLASS_HID_REPORT_TRANSFER_TIMEOUT 10000 #endif +/* HID protocol values. */ +#define UX_HOST_CLASS_HID_PROTOCOL_BOOT 0x00 +#define UX_HOST_CLASS_HID_PROTOCOL_REPORT 0x01 + /* Define HID Class descriptor. */ typedef struct UX_HID_DESCRIPTOR_STRUCT @@ -1077,7 +1081,8 @@ VOID _ux_host_class_hid_transfer_request_completed(UX_TRANSFER *transfer_requ UINT _ux_host_class_hid_tasks_run(UX_HOST_CLASS *hid_class); UINT _ux_host_class_hid_idle_set_run(UX_HOST_CLASS_HID *hid, USHORT idle_time, USHORT report_id); UINT _ux_host_class_hid_report_set_run(UX_HOST_CLASS_HID *hid, UX_HOST_CLASS_HID_CLIENT_REPORT *client_report); - +UINT _ux_host_class_hid_protocol_set(UX_HOST_CLASS_HID *hid, USHORT protocol); +UINT _ux_host_class_hid_protocol_get(UX_HOST_CLASS_HID *hid, USHORT *protocol); UINT _uxe_host_class_hid_client_register(UCHAR *hid_client_name, UINT (*hid_client_handler)(struct UX_HOST_CLASS_HID_CLIENT_COMMAND_STRUCT *)); @@ -1095,7 +1100,8 @@ UINT _uxe_host_class_hid_report_set(UX_HOST_CLASS_HID *hid, UX_HOST_CLASS_HID UINT _uxe_host_class_hid_idle_set_run(UX_HOST_CLASS_HID *hid, USHORT idle_time, USHORT report_id); UINT _uxe_host_class_hid_report_set_run(UX_HOST_CLASS_HID *hid, UX_HOST_CLASS_HID_CLIENT_REPORT *client_report); - +UINT _uxe_host_class_hid_protocol_set(UX_HOST_CLASS_HID *hid, USHORT protocol); +UINT _uxe_host_class_hid_protocol_get(UX_HOST_CLASS_HID *hid, USHORT *protocol); /* Define HID Class API prototypes. */ @@ -1122,6 +1128,8 @@ UINT _uxe_host_class_hid_report_set_run(UX_HOST_CLASS_HID *hid, UX_HOST_CLASS #define ux_host_class_hid_report_id_get _uxe_host_class_hid_report_id_get #define ux_host_class_hid_report_get _uxe_host_class_hid_report_get #define ux_host_class_hid_report_set _uxe_host_class_hid_report_set +#define ux_host_class_hid_protocol_set _uxe_host_class_hid_protocol_set +#define ux_host_class_hid_protocol_get _uxe_host_class_hid_protocol_get #else @@ -1137,6 +1145,8 @@ UINT _uxe_host_class_hid_report_set_run(UX_HOST_CLASS_HID *hid, UX_HOST_CLASS #define ux_host_class_hid_report_id_get _ux_host_class_hid_report_id_get #define ux_host_class_hid_report_get _ux_host_class_hid_report_get #define ux_host_class_hid_report_set _ux_host_class_hid_report_set +#define ux_host_class_hid_protocol_set _ux_host_class_hid_protocol_set +#define ux_host_class_hid_protocol_get _ux_host_class_hid_protocol_get #endif @@ -1148,4 +1158,3 @@ UINT _uxe_host_class_hid_report_set_run(UX_HOST_CLASS_HID *hid, UX_HOST_CLASS #endif #endif - diff --git a/common/usbx_host_classes/src/ux_host_class_hid_protocol_get.c b/common/usbx_host_classes/src/ux_host_class_hid_protocol_get.c new file mode 100644 index 000000000..c5369feb9 --- /dev/null +++ b/common/usbx_host_classes/src/ux_host_class_hid_protocol_get.c @@ -0,0 +1,208 @@ +/*************************************************************************** + * Copyright (c) 2025-present Eclipse ThreadX Contributors + * + * This program and the accompanying materials are made available under the + * terms of the MIT License which is available at + * https://opensource.org/licenses/MIT. + * + * SPDX-License-Identifier: MIT + **************************************************************************/ + + +/**************************************************************************/ +/**************************************************************************/ +/** */ +/** USBX Component */ +/** */ +/** Host HID Class */ +/** */ +/**************************************************************************/ +/**************************************************************************/ + +/* Include necessary system files. */ + +#define UX_SOURCE_CODE + +#include "ux_api.h" +#include "ux_host_class_hid.h" +#include "ux_host_stack.h" + +/**************************************************************************/ +/* */ +/* FUNCTION RELEASE */ +/* */ +/* _ux_host_class_hid_protocol_get PORTABLE C */ +/* */ +/* DESCRIPTION */ +/* */ +/* This function performs a GET_PROTOCOL to the HID device to read */ +/* current protocol (BOOT=0 or REPORT=1). */ +/* */ +/* INPUT */ +/* */ +/* hid Pointer to HID class */ +/* protocol Destination for protocol */ +/* */ +/* OUTPUT */ +/* */ +/* Completion Status */ +/* */ +/* CALLED BY */ +/* */ +/* Application */ +/* */ +/* RELEASE HISTORY */ +/* */ +/* DATE NAME DESCRIPTION */ +/* */ +/**************************************************************************/ +UINT _ux_host_class_hid_protocol_get(UX_HOST_CLASS_HID *hid, USHORT *protocol) +{ +#if defined(UX_HOST_STANDALONE) +UX_INTERRUPT_SAVE_AREA +#endif +UX_ENDPOINT *control_endpoint; +UX_TRANSFER *transfer_request; +UCHAR *protocol_byte; +UINT status; + + /* Ensure the instance is valid. */ + if (_ux_host_stack_class_instance_verify(_ux_system_host_class_hid_name, (VOID *) hid) != UX_SUCCESS) + { + + /* If trace is enabled, insert this event into the trace buffer. */ + UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_HOST_CLASS_INSTANCE_UNKNOWN, hid, 0, 0, UX_TRACE_ERRORS, 0, 0) + +#if defined(UX_HOST_STANDALONE) + hid -> ux_host_class_hid_status = UX_HOST_CLASS_INSTANCE_UNKNOWN; +#endif + + return(UX_HOST_CLASS_INSTANCE_UNKNOWN); + } + + /* Initialize output to a known value. */ + *protocol = 0; + + /* Get the default control endpoint transfer request pointer. */ + control_endpoint = &hid -> ux_host_class_hid_device -> ux_device_control_endpoint; + transfer_request = &control_endpoint -> ux_endpoint_transfer_request; + + /* Protect thread reentry to this instance. */ +#if defined(UX_HOST_STANDALONE) + UX_DISABLE + if (hid -> ux_host_class_hid_flags & UX_HOST_CLASS_HID_FLAG_LOCK) + { + UX_RESTORE + return(UX_BUSY); + } + hid -> ux_host_class_hid_flags |= UX_HOST_CLASS_HID_FLAG_LOCK; + UX_RESTORE +#else + status = _ux_host_semaphore_get(&hid -> ux_host_class_hid_semaphore, UX_WAIT_FOREVER); + if (status != UX_SUCCESS) + return(status); +#endif + + /* Need to allocate a cache-safe buffer for the DMA transfer. */ + protocol_byte = _ux_utility_memory_allocate(UX_SAFE_ALIGN, UX_CACHE_SAFE_MEMORY, 1); + if (protocol_byte == UX_NULL) + { + + /* Unprotect thread reentry to this instance. */ +#if defined(UX_HOST_STANDALONE) + _ux_host_class_hid_unlock(hid); +#else + _ux_host_semaphore_put(&hid -> ux_host_class_hid_semaphore); +#endif + return(UX_MEMORY_INSUFFICIENT); + } + + /* Protect the control endpoint. It will be unprotected in the transfer request function. */ +#if defined(UX_HOST_STANDALONE) + UX_DISABLE + if (hid -> ux_host_class_hid_device -> ux_device_flags & UX_DEVICE_FLAG_LOCK) + { + _ux_utility_memory_free(protocol_byte); + _ux_host_class_hid_unlock(hid); + UX_RESTORE + return(UX_BUSY); + } + hid -> ux_host_class_hid_device -> ux_device_flags |= UX_DEVICE_FLAG_LOCK; + transfer_request -> ux_transfer_request_flags |= UX_TRANSFER_FLAG_AUTO_DEVICE_UNLOCK; + UX_TRANSFER_STATE_RESET(transfer_request); + UX_RESTORE +#else + status = _ux_host_semaphore_get(&hid -> ux_host_class_hid_device -> ux_device_protection_semaphore, UX_WAIT_FOREVER); + if (status != UX_SUCCESS) + { + _ux_utility_memory_free(protocol_byte); + _ux_host_semaphore_put(&hid -> ux_host_class_hid_semaphore); + return(status); + } +#endif + + /* Create a transfer request for the GET_PROTOCOL request. */ + transfer_request -> ux_transfer_request_data_pointer = protocol_byte; + transfer_request -> ux_transfer_request_requested_length = 1; + transfer_request -> ux_transfer_request_function = UX_HOST_CLASS_HID_GET_PROTOCOL; + transfer_request -> ux_transfer_request_type = UX_REQUEST_IN | UX_REQUEST_TYPE_CLASS | UX_REQUEST_TARGET_INTERFACE; + transfer_request -> ux_transfer_request_value = 0; + transfer_request -> ux_transfer_request_index = hid -> ux_host_class_hid_interface -> ux_interface_descriptor.bInterfaceNumber; + + /* Send request to HCD layer. */ + status = _ux_host_stack_transfer_request(transfer_request); + +#if defined(UX_HOST_STANDALONE) + if (!(transfer_request -> ux_transfer_request_flags & UX_TRANSFER_FLAG_AUTO_WAIT)) + { + hid -> ux_host_class_hid_allocated = protocol_byte; + return(status); + } +#endif + + /* Check for correct transfer and for the entire protocol byte returned. */ + if (status == UX_SUCCESS && transfer_request -> ux_transfer_request_actual_length == 1) + *protocol = (USHORT) *protocol_byte; + + /* Free the allocated buffer. */ + _ux_utility_memory_free(protocol_byte); + + /* Unprotect thread reentry to this instance. */ +#if defined(UX_HOST_STANDALONE) + _ux_host_class_hid_unlock(hid); +#else + _ux_host_semaphore_put(&hid -> ux_host_class_hid_semaphore); +#endif + + return(status); +} + +/**************************************************************************/ +/* */ +/* FUNCTION RELEASE */ +/* */ +/* _uxe_host_class_hid_protocol_get PORTABLE C */ +/* */ +/* DESCRIPTION */ +/* */ +/* This function checks errors in HID protocol get function call. */ +/* */ +/* INPUT */ +/* */ +/* hid Pointer to HID class */ +/* protocol Destination for protocol */ +/* */ +/* OUTPUT */ +/* */ +/* Status */ +/* */ +/**************************************************************************/ +UINT _uxe_host_class_hid_protocol_get(UX_HOST_CLASS_HID *hid, USHORT *protocol) +{ + /* Sanity check. */ + if (hid == UX_NULL || protocol == UX_NULL) + return(UX_INVALID_PARAMETER); + + /* Invoke protocol get function. */ + return(_ux_host_class_hid_protocol_get(hid, protocol)); +} diff --git a/common/usbx_host_classes/src/ux_host_class_hid_protocol_set.c b/common/usbx_host_classes/src/ux_host_class_hid_protocol_set.c new file mode 100644 index 000000000..bb4634982 --- /dev/null +++ b/common/usbx_host_classes/src/ux_host_class_hid_protocol_set.c @@ -0,0 +1,182 @@ +/*************************************************************************** + * Copyright (c) 2025-present Eclipse ThreadX Contributors + * + * This program and the accompanying materials are made available under the + * terms of the MIT License which is available at + * https://opensource.org/licenses/MIT. + * + * SPDX-License-Identifier: MIT + **************************************************************************/ + + +/**************************************************************************/ +/**************************************************************************/ +/** */ +/** USBX Component */ +/** */ +/** Host HID Class */ +/** */ +/**************************************************************************/ +/**************************************************************************/ + +/* Include necessary system files. */ + +#define UX_SOURCE_CODE + +#include "ux_api.h" +#include "ux_host_class_hid.h" +#include "ux_host_stack.h" + +/**************************************************************************/ +/* */ +/* FUNCTION RELEASE */ +/* */ +/* _ux_host_class_hid_protocol_set PORTABLE C */ +/* */ +/* DESCRIPTION */ +/* */ +/* This function performs a SET_PROTOCOL to the HID device to switch */ +/* between BOOT (0) and REPORT (1) protocols. */ +/* */ +/* INPUT */ +/* */ +/* hid Pointer to HID class */ +/* protocol Protocol (BOOT/REPORT) */ +/* */ +/* OUTPUT */ +/* */ +/* Completion Status */ +/* */ +/* CALLED BY */ +/* */ +/* Application */ +/* */ +/* RELEASE HISTORY */ +/* */ +/* DATE NAME DESCRIPTION */ +/* */ +/**************************************************************************/ +UINT _ux_host_class_hid_protocol_set(UX_HOST_CLASS_HID *hid, USHORT protocol) +{ +#if defined(UX_HOST_STANDALONE) +UX_INTERRUPT_SAVE_AREA +#endif +UX_ENDPOINT *control_endpoint; +UX_TRANSFER *transfer_request; +UINT status; + + /* Ensure the instance is valid. */ + if (_ux_host_stack_class_instance_verify(_ux_system_host_class_hid_name, (VOID *) hid) != UX_SUCCESS) + { + + /* If trace is enabled, insert this event into the trace buffer. */ + UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_HOST_CLASS_INSTANCE_UNKNOWN, hid, 0, 0, UX_TRACE_ERRORS, 0, 0) + +#if defined(UX_HOST_STANDALONE) + hid -> ux_host_class_hid_status = UX_HOST_CLASS_INSTANCE_UNKNOWN; +#endif + return(UX_HOST_CLASS_INSTANCE_UNKNOWN); + } + + /* Get the default control endpoint transfer request pointer. */ + control_endpoint = &hid -> ux_host_class_hid_device -> ux_device_control_endpoint; + transfer_request = &control_endpoint -> ux_endpoint_transfer_request; + + /* Protect thread reentry to this instance. */ +#if defined(UX_HOST_STANDALONE) + UX_DISABLE + if (hid -> ux_host_class_hid_flags & UX_HOST_CLASS_HID_FLAG_LOCK) + { + UX_RESTORE + return(UX_BUSY); + } + hid -> ux_host_class_hid_flags |= UX_HOST_CLASS_HID_FLAG_LOCK; + UX_RESTORE +#else + status = _ux_host_semaphore_get(&hid -> ux_host_class_hid_semaphore, UX_WAIT_FOREVER); + if (status != UX_SUCCESS) + return(status); + + /* Protect the control endpoint semaphore here. It will be unprotected in the + transfer request function. */ + status = _ux_host_semaphore_get(&hid -> ux_host_class_hid_device -> ux_device_protection_semaphore, UX_WAIT_FOREVER); + if (status != UX_SUCCESS) + { + _ux_host_semaphore_put(&hid -> ux_host_class_hid_semaphore); + return(status); + } +#endif + +#if defined(UX_HOST_STANDALONE) + /* Protect the control endpoint. It will be unprotected in the transfer request function. */ + UX_DISABLE + if (hid -> ux_host_class_hid_device -> ux_device_flags & UX_DEVICE_FLAG_LOCK) + { + _ux_host_class_hid_unlock(hid); + UX_RESTORE + return(UX_BUSY); + } + hid -> ux_host_class_hid_device -> ux_device_flags |= UX_DEVICE_FLAG_LOCK; + transfer_request -> ux_transfer_request_flags |= UX_TRANSFER_FLAG_AUTO_DEVICE_UNLOCK; + UX_TRANSFER_STATE_RESET(transfer_request); + UX_RESTORE +#endif + + /* Create a transfer request for the SET_PROTOCOL request. */ + transfer_request -> ux_transfer_request_data_pointer = UX_NULL; + transfer_request -> ux_transfer_request_requested_length = 0; + transfer_request -> ux_transfer_request_function = UX_HOST_CLASS_HID_SET_PROTOCOL; + transfer_request -> ux_transfer_request_type = UX_REQUEST_OUT | UX_REQUEST_TYPE_CLASS | UX_REQUEST_TARGET_INTERFACE; + transfer_request -> ux_transfer_request_value = (UINT)protocol; + transfer_request -> ux_transfer_request_index = hid -> ux_host_class_hid_interface -> ux_interface_descriptor.bInterfaceNumber; + + /* Send request to HCD layer. */ + status = _ux_host_stack_transfer_request(transfer_request); + +#if defined(UX_HOST_STANDALONE) + if (!(transfer_request -> ux_transfer_request_flags & UX_TRANSFER_FLAG_AUTO_WAIT)) + return(status); + _ux_host_class_hid_unlock(hid); +#else + /* Unprotect thread reentry to this instance. */ + _ux_host_semaphore_put(&hid -> ux_host_class_hid_semaphore); +#endif + + /* Return the function status. */ + return(status); +} + +/**************************************************************************/ +/* */ +/* FUNCTION RELEASE */ +/* */ +/* _uxe_host_class_hid_protocol_set PORTABLE C */ +/* */ +/* DESCRIPTION */ +/* */ +/* This function checks errors in HID protocol set function call. */ +/* */ +/* INPUT */ +/* */ +/* hid Pointer to HID class */ +/* protocol Protocol (BOOT/REPORT) */ +/* */ +/* OUTPUT */ +/* */ +/* Status */ +/* */ +/**************************************************************************/ +UINT _uxe_host_class_hid_protocol_set(UX_HOST_CLASS_HID *hid, USHORT protocol) +{ + /* Sanity check. */ + if (hid == UX_NULL) + return(UX_INVALID_PARAMETER); + + /* Validate protocol value: must be BOOT(0) or REPORT(1). */ + if (protocol != UX_HOST_CLASS_HID_PROTOCOL_BOOT && + protocol != UX_HOST_CLASS_HID_PROTOCOL_REPORT) + return(UX_INVALID_PARAMETER); + + /* Invoke protocol set function. */ + return(_ux_host_class_hid_protocol_set(hid, protocol)); +} diff --git a/test/cmake/usbx/regression/CMakeLists.txt b/test/cmake/usbx/regression/CMakeLists.txt index 29927655b..729559c49 100644 --- a/test/cmake/usbx/regression/CMakeLists.txt +++ b/test/cmake/usbx/regression/CMakeLists.txt @@ -139,6 +139,7 @@ set(ux_class_hid_test_cases ${SOURCE_DIR}/usbx_ux_device_class_hid_activate_test2.c ${SOURCE_DIR}/usbx_ux_device_class_hid_activate_test3.c ${SOURCE_DIR}/usbx_ux_device_class_hid_control_request_test.c + ${SOURCE_DIR}/usbx_ux_device_class_hid_set_protocol_callback_test.c ${SOURCE_DIR}/usbx_ux_device_class_hid_initialize_test.c ${SOURCE_DIR}/usbx_ux_device_class_hid_interrupt_thread_test2.c ${SOURCE_DIR}/usbx_ux_device_class_hid_read_test.c diff --git a/test/regression/usbx_ux_device_class_hid_set_protocol_callback_test.c b/test/regression/usbx_ux_device_class_hid_set_protocol_callback_test.c new file mode 100644 index 000000000..b1c0e7105 --- /dev/null +++ b/test/regression/usbx_ux_device_class_hid_set_protocol_callback_test.c @@ -0,0 +1,465 @@ +/* This test focuses on HID device class protocol set/get functionality and related callbacks. */ + +#include +#include "tx_api.h" +#include "ux_api.h" +#include "ux_system.h" +#include "ux_utility.h" +#include "ux_host_class_hid.h" +#include "ux_host_class_hid_keyboard.h" +#include "ux_device_class_hid.h" +#include "ux_device_stack.h" +#include "usbx_test_common_hid.h" + +/* Define constants. */ +#define UX_DEMO_DEBUG_SIZE (4096*8) +#define UX_DEMO_STACK_SIZE 1024 + +/* Define local/extern function prototypes. */ +static void demo_thread_entry(ULONG); +static UINT demo_thread_hid_callback(UX_SLAVE_CLASS_HID *, UX_SLAVE_CLASS_HID_EVENT *); +static VOID demo_set_protocol_callback(UX_SLAVE_CLASS_HID *hid, ULONG protocol); +static TX_THREAD tx_demo_thread_host_simulation; +static void tx_demo_thread_host_simulation_entry(ULONG); + +/* Define global data structures. */ +static UX_HOST_CLASS_HID *hid; +static UINT status; + +static UX_SLAVE_CLASS_HID_PARAMETER hid_parameter; + +static volatile UINT g_set_protocol_callback_calls = 0; +static volatile ULONG g_set_protocol_last_value = 0xFFFFFFFFu; + +USHORT host_protocol; + +static UCHAR hid_keyboard_report[] = { + + 0x05, 0x01, // USAGE_PAGE (Generic Desktop) + 0x09, 0x06, // USAGE (Keyboard) + 0xa1, 0x01, // COLLECTION (Application) + 0x05, 0x07, // USAGE_PAGE (Keyboard) + 0x19, 0xe0, // USAGE_MINIMUM (Keyboard LeftControl) + 0x29, 0xe7, // USAGE_MAXIMUM (Keyboard Right GUI) + 0x15, 0x00, // LOGICAL_MINIMUM (0) + 0x25, 0x01, // LOGICAL_MAXIMUM (1) + 0x75, 0x01, // REPORT_SIZE (1) + 0x95, 0x08, // REPORT_COUNT (8) + 0x81, 0x02, // INPUT (Data,Var,Abs) + 0x09, 0x39, // USAGE (Caps Lock) + 0x09, 0x53, // USAGE (Num Lock) + 0x09, 0x47, // USAGE (Scroll Lock) + 0x75, 0x01, // REPORT_SIZE (1) + 0x95, 0x03, // REPORT_COUNT (3) + 0x81, 0x02, // INPUT (Data,Var,Abs) + 0x95, 0x01, // REPORT_COUNT (1) + 0x75, 0x05, // REPORT_SIZE (5) + 0x81, 0x03, // INPUT (Cnst,Var,Abs) + 0x95, 0x05, // REPORT_COUNT (5) + 0x75, 0x01, // REPORT_SIZE (1) + 0x05, 0x08, // USAGE_PAGE (LEDs) + 0x19, 0x01, // USAGE_MINIMUM (Num Lock) + 0x29, 0x05, // USAGE_MAXIMUM (Kana) + 0x91, 0x02, // OUTPUT (Data,Var,Abs) + 0x95, 0x01, // REPORT_COUNT (1) + 0x75, 0x03, // REPORT_SIZE (3) + 0x91, 0x03, // OUTPUT (Cnst,Var,Abs) + 0x95, 0x06, // REPORT_COUNT (6) + 0x75, 0x08, // REPORT_SIZE (8) + 0x15, 0x00, // LOGICAL_MINIMUM (0) + 0x25, 0x65, // LOGICAL_MAXIMUM (101) + 0x05, 0x07, // USAGE_PAGE (Keyboard) + 0x19, 0x00, // USAGE_MINIMUM (Reserved (no event indicated)) + 0x29, 0x65, // USAGE_MAXIMUM (Keyboard Application) + 0x81, 0x00, // INPUT (Data,Ary,Abs) + 0xc0 // END_COLLECTION +}; +#define HID_KEYBOARD_REPORT_LENGTH (sizeof(hid_keyboard_report) / sizeof(hid_keyboard_report[0])) + + +#define DEVICE_FRAMEWORK_LENGTH_FULL_SPEED 52 +static UCHAR device_framework_full_speed[] = { + + /* Device descriptor */ + 0x12, 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x08, + 0x81, 0x0A, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x01, + + /* Configuration descriptor */ + 0x09, 0x02, 0x22, 0x00, 0x01, 0x01, 0x00, 0xc0, + 0x32, + + /* Interface descriptor */ + 0x09, 0x04, 0x00, 0x00, 0x01, 0x03, 0x01, 0x02, + 0x00, + + /* HID descriptor */ + 0x09, 0x21, 0x10, 0x01, 0x21, 0x01, 0x22, LSB(HID_KEYBOARD_REPORT_LENGTH), + MSB(HID_KEYBOARD_REPORT_LENGTH), + + /* Endpoint descriptor (Interrupt) */ + 0x07, 0x05, 0x82, 0x03, 0x08, 0x00, 0x08 + + }; + + +#define DEVICE_FRAMEWORK_LENGTH_HIGH_SPEED 62 +static UCHAR device_framework_high_speed[] = { + + /* Device descriptor */ + 0x12, 0x01, 0x00, 0x02, 0x00, 0x00, 0x00, 0x40, + 0x0a, 0x07, 0x25, 0x40, 0x01, 0x00, 0x01, 0x02, + 0x03, 0x01, + + /* Device qualifier descriptor */ + 0x0a, 0x06, 0x00, 0x02, 0x00, 0x00, 0x00, 0x40, + 0x01, 0x00, + + /* Configuration descriptor */ + 0x09, 0x02, 0x22, 0x00, 0x01, 0x01, 0x00, 0xc0, + 0x32, + + /* Interface descriptor */ + 0x09, 0x04, 0x00, 0x00, 0x01, 0x03, 0x01, 0x02, + 0x00, + + /* HID descriptor */ + 0x09, 0x21, 0x10, 0x01, 0x21, 0x01, 0x22, LSB(HID_KEYBOARD_REPORT_LENGTH), + MSB(HID_KEYBOARD_REPORT_LENGTH), + + /* Endpoint descriptor (Interrupt) */ + 0x07, 0x05, 0x82, 0x03, 0x08, 0x00, 0x08 + + }; + + + /* String Device Framework : + Byte 0 and 1 : Word containing the language ID : 0x0904 for US + Byte 2 : Byte containing the index of the descriptor + Byte 3 : Byte containing the length of the descriptor string + */ + +#define STRING_FRAMEWORK_LENGTH 40 +static UCHAR string_framework[] = { + + /* Manufacturer string descriptor : Index 1 */ + 0x09, 0x04, 0x01, 0x0c, + 0x45, 0x78, 0x70, 0x72,0x65, 0x73, 0x20, 0x4c, + 0x6f, 0x67, 0x69, 0x63, + + /* Product string descriptor : Index 2 */ + 0x09, 0x04, 0x02, 0x0c, + 0x55, 0x53, 0x42, 0x20, 0x4b, 0x65, 0x79, 0x62, + 0x6f, 0x61, 0x72, 0x64, + + /* Serial Number string descriptor : Index 3 */ + 0x09, 0x04, 0x03, 0x04, + 0x30, 0x30, 0x30, 0x31 + }; + + + /* Multiple languages are supported on the device, to add + a language besides english, the unicode language code must + be appended to the language_id_framework array and the length + adjusted accordingly. */ +#define LANGUAGE_ID_FRAMEWORK_LENGTH 2 +static UCHAR language_id_framework[] = { + + /* English. */ + 0x09, 0x04 + }; + + + +/* Define the ISR dispatch. */ + +extern VOID (*test_isr_dispatch)(void); + + +/* Prototype for test control return. */ + +void test_control_return(UINT status); + + +/* Define the ISR dispatch routine. */ + +static void test_isr(void) +{ + + /* For further expansion of interrupt-level testing. */ +} + + + +static VOID error_callback(UINT system_level, UINT system_context, UINT error_code) +{ + + /* @BUG_FIX_PENDING: ux_dcd_sim_slave_function.c doesn't support transfer aborts, which happen during device unregistration of a class. */ + if (error_code != UX_FUNCTION_NOT_SUPPORTED) + { + + /* Failed test. */ + printf("Error on line %d, system_level: %d, system_context: %d, error code: %d\n", __LINE__, system_level, system_context, error_code); + test_control_return(1); + } +} + +/* Define what the initial system looks like. */ + +#ifdef CTEST +void test_application_define(void *first_unused_memory) +#else +void usbx_ux_device_class_hid_set_protocol_callback_test_application_define(void *first_unused_memory) +#endif +{ + +UINT status; +CHAR * stack_pointer; +CHAR * memory_pointer; +UINT descriptor_size = HID_KEYBOARD_REPORT_LENGTH; + + /* Inform user. */ + printf("Running HID Set/Get Protocol Callback Test......................... "); + + /* Initialize the free memory pointer */ + stack_pointer = (CHAR *) usbx_memory; + memory_pointer = stack_pointer + (UX_DEMO_STACK_SIZE * 2); + + /* Initialize USBX. Memory */ + status = ux_system_initialize(memory_pointer, UX_DEMO_MEMORY_SIZE, UX_NULL,0); + + /* Check for error. */ + if (status != UX_SUCCESS) + { + + printf("Error on line %d, error code: %d\n", __LINE__, status); + test_control_return(1); + } + + /* Register the error callback. */ + _ux_utility_error_callback_register(error_callback); + + /* The code below is required for installing the host portion of USBX */ + status = ux_host_stack_initialize(UX_NULL); + if (status != UX_SUCCESS) + { + + printf("Error on line %d, error code: %d\n", __LINE__, status); + test_control_return(1); + } + + status = ux_host_stack_class_register(_ux_system_host_class_hid_name, ux_host_class_hid_entry); + if (status != UX_SUCCESS) + { + + printf("Error on line %d, error code: %d\n", __LINE__, status); + test_control_return(1); + } + + /* Register the HID client(s). */ + status = ux_host_class_hid_client_register(_ux_system_host_class_hid_client_keyboard_name, ux_host_class_hid_keyboard_entry); + if (status != UX_SUCCESS) + { + + printf("Error on line %d, error code: %d\n", __LINE__, status); + test_control_return(1); + } + + /* The code below is required for installing the device portion of USBX. No call back for + device status change in this example. */ + status = ux_device_stack_initialize(device_framework_high_speed, DEVICE_FRAMEWORK_LENGTH_HIGH_SPEED, + device_framework_full_speed, DEVICE_FRAMEWORK_LENGTH_FULL_SPEED, + string_framework, STRING_FRAMEWORK_LENGTH, + language_id_framework, LANGUAGE_ID_FRAMEWORK_LENGTH, UX_NULL); + if(status != UX_SUCCESS) + { + + printf("Error on line %d, error code: %d\n", __LINE__, status); + test_control_return(1); + } + + /* Initialize the hid class parameters for a keyboard. */ + hid_parameter.ux_device_class_hid_parameter_report_address = hid_keyboard_report; + hid_parameter.ux_device_class_hid_parameter_report_length = HID_KEYBOARD_REPORT_LENGTH; + hid_parameter.ux_device_class_hid_parameter_callback = demo_thread_hid_callback; + hid_parameter.ux_device_class_hid_parameter_set_protocol_callback = demo_set_protocol_callback; + + /* Initialize the device hid class. The class is connected with interface 2 */ + status = ux_device_stack_class_register(_ux_system_slave_class_hid_name, ux_device_class_hid_entry, + 1, 0, (VOID *)&hid_parameter); + if(status != UX_SUCCESS) + { + + printf("Error on line %d, error code: %d\n", __LINE__, status); + test_control_return(1); + } + + + /* Initialize the simulated device controller. */ + status = _ux_dcd_sim_slave_initialize(); + + /* Check for error. */ + if (status != UX_SUCCESS) + { + + printf("Error on line %d, error code: %d\n", __LINE__, status); + test_control_return(1); + } + + /* Register all the USB host controllers available in this system */ + status = ux_host_stack_hcd_register(_ux_system_host_hcd_simulator_name, ux_hcd_sim_host_initialize,0,0); + + /* Check for error. */ + if (status != UX_SUCCESS) + { + + printf("Error on line %d, error code: %d\n", __LINE__, status); + test_control_return(1); + } + + /* Create the main host simulation thread. */ + status = tx_thread_create(&tx_demo_thread_host_simulation, "tx demo host simulation", tx_demo_thread_host_simulation_entry, 0, + stack_pointer, UX_DEMO_STACK_SIZE, + 20, 20, 1, TX_AUTO_START); + + /* Check for error. */ + if (status != TX_SUCCESS) + { + + printf("Error on line %d, error code: %d\n", __LINE__, status); + test_control_return(1); + } +} + + +static void tx_demo_thread_host_simulation_entry(ULONG arg) +{ +UX_SLAVE_DEVICE *device; +UX_SLAVE_INTERFACE *interface; +UX_SLAVE_CLASS_HID *slave_hid; +UINT status; + + device = &_ux_system_slave -> ux_system_slave_device; + + /* Ensure device is configured before accessing interfaces. */ + while (device -> ux_slave_device_state != UX_DEVICE_CONFIGURED) + tx_thread_sleep(10); + + /* Retrieve the HID class instance from the configured interface. */ + interface = device -> ux_slave_device_first_interface; + if (interface == UX_NULL || interface -> ux_slave_interface_class_instance == UX_NULL) + { + printf("Error on line %d, device interface/class not ready\n", __LINE__); + test_control_return(1); + } + slave_hid = interface -> ux_slave_interface_class_instance; + + /* Find the HID class */ + status = demo_class_hid_get(); + if (status != UX_SUCCESS) + { + + printf("Error on line %d, error code: %d\n", __LINE__, status); + test_control_return(1); + } + + /* Sanity: default protocol is report (1). */ + if (ux_device_class_hid_protocol_get(slave_hid) != UX_DEVICE_CLASS_HID_PROTOCOL_REPORT) + { + printf("Error on line %d, protocol not default report\n", __LINE__); + test_control_return(1); + } + + + status = ux_host_class_hid_protocol_get(hid, &host_protocol); + if (status != UX_SUCCESS && status != UX_TRANSFER_STALLED) + { + printf("Error on line %d, error code: 0x%x\n", __LINE__, status); + test_control_return(1); + } + + /* Default protocol is report 1. */ + if (status == UX_SUCCESS && host_protocol != UX_HOST_CLASS_HID_PROTOCOL_REPORT) + { + printf("Error on line %d, host get protocol not report\n", __LINE__); + test_control_return(1); + } + + /* Issue SET_PROTOCOL to BOOT (0). */ + status = ux_host_class_hid_protocol_set(hid, UX_HOST_CLASS_HID_PROTOCOL_BOOT); + if (status != UX_SUCCESS && status != UX_TRANSFER_STALLED) + { + printf("Error on line %d, error code: 0x%x\n", __LINE__, status); + test_control_return(1); + } + + status = ux_host_class_hid_protocol_get(hid, &host_protocol); + + if (g_set_protocol_callback_calls < 1 || + g_set_protocol_last_value != 0 || + host_protocol != UX_HOST_CLASS_HID_PROTOCOL_BOOT) + { + printf("Error on line %d, callback verification failed (calls=%u, val=%lu)\n", + __LINE__, g_set_protocol_callback_calls, g_set_protocol_last_value); + test_control_return(1); + } + + if (ux_device_class_hid_protocol_get(slave_hid) != UX_DEVICE_CLASS_HID_PROTOCOL_BOOT) + { + printf("Error on line %d, protocol not set to boot\n", __LINE__); + test_control_return(1); + } + + /* Issue SET_PROTOCOL to REPORT (1). */ + status = ux_host_class_hid_protocol_set(hid, UX_HOST_CLASS_HID_PROTOCOL_REPORT); + if (status != UX_SUCCESS && status != UX_TRANSFER_STALLED) + { + printf("Error on line %d, error code: 0x%x\n", __LINE__, status); + test_control_return(1); + } + + status = ux_host_class_hid_protocol_get(hid, &host_protocol); + + if (g_set_protocol_callback_calls < 2 || + g_set_protocol_last_value != 1 || + host_protocol != UX_HOST_CLASS_HID_PROTOCOL_REPORT) + { + printf("Error on line %d, callback verification failed (calls=%u, val=%lu)\n", + __LINE__, g_set_protocol_callback_calls, g_set_protocol_last_value); + test_control_return(1); + } + + if (ux_device_class_hid_protocol_get(slave_hid) != UX_DEVICE_CLASS_HID_PROTOCOL_REPORT) + { + printf("Error on line %d, protocol not set to report\n", __LINE__); + test_control_return(1); + } + + + /* Now disconnect the device. */ + _ux_device_stack_disconnect(); + + /* And deinitialize the class. */ + status = ux_device_stack_class_unregister(_ux_system_slave_class_hid_name, ux_device_class_hid_entry); + + /* Deinitialize the device side of usbx. */ + _ux_device_stack_uninitialize(); + + /* And finally the usbx system resources. */ + _ux_system_uninitialize(); + + /* Successful test. */ + printf("SUCCESS!\n"); + test_control_return(0); +} + +static UINT demo_thread_hid_callback(UX_SLAVE_CLASS_HID *class, UX_SLAVE_CLASS_HID_EVENT *event) +{ + return(UX_SUCCESS); +} + +static VOID demo_set_protocol_callback(UX_SLAVE_CLASS_HID *hid, ULONG protocol) +{ + g_set_protocol_callback_calls++; + g_set_protocol_last_value = protocol; +} diff --git a/test/regression/usbxtestcontrol.c b/test/regression/usbxtestcontrol.c index ab6c3213e..fa6bba6fb 100644 --- a/test/regression/usbxtestcontrol.c +++ b/test/regression/usbxtestcontrol.c @@ -238,6 +238,7 @@ void usbx_ux_host_class_hid_descriptor_parse_test5_application_define(void *) void usbx_ux_host_class_hid_descriptor_parse_test6_application_define(void *); void usbx_ux_host_class_hid_descriptor_parse_test7_application_define(void *); void usbx_ux_host_class_hid_report_descriptor_get_test_application_define(void *); +void usbx_ux_device_class_hid_set_protocol_callback_test_application_define(void *); void usbx_ux_host_class_hid_remote_control_callback_test_application_define(void *); void usbx_ux_host_class_hid_interrupt_endpoint_search_test2_application_define(void *); void usbx_ux_host_class_hid_periodic_report_start_test2_application_define(void *); @@ -801,6 +802,7 @@ TEST_ENTRY test_control_tests[] = usbx_ux_device_class_hid_descriptor_send_test_application_define, usbx_ux_device_class_hid_entry_test_application_define, usbx_ux_device_class_hid_event_get_AND_set_test_application_define, + usbx_ux_device_class_hid_set_protocol_callback_test_application_define, usbx_ux_device_class_hid_initialize_test_application_define, usbx_ux_device_class_hid_interrupt_thread_test_application_define, usbx_ux_device_class_hid_interrupt_thread_test2_application_define, From 94cdd1e0e34573dac3f2c5dadb1c4f68a2857435 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Desbiens?= Date: Thu, 4 Jun 2026 15:45:21 -0400 Subject: [PATCH 06/11] Fixed standalone locking bugs in HID host idle get/set (#264) Two issues discovered while reviewing and fixing thread-safety issues in the new ux_host_class_hid_protocol_get/set functions (PR #244). 1. idle_get.c: wrong operator acquires no lock in standalone mode Line 104 used '&= ~UX_HOST_CLASS_HID_FLAG_LOCK' (the release/clear operation) instead of '|= UX_HOST_CLASS_HID_FLAG_LOCK' (acquire/set). The preceding check correctly returns UX_BUSY when the flag is set, but the follow-on line then immediately clears it instead of setting it. The net effect is that the HID instance is never actually locked in UX_HOST_STANDALONE mode, making the mutual-exclusion check a no-op. 2. idle_set.c: standalone path used a blocking spin-loop The standalone branch called _ux_host_class_hid_idle_set_run() in a do/while loop, blocking the caller until the transfer completed. This is inconsistent with every other inline HID control-transfer function (idle_get, report_get, report_set, protocol_get, protocol_set) which all use the direct UX_DISABLE/UX_RESTORE atomic flag pattern and return UX_BUSY if the instance or device endpoint is already locked. Replaced with the same inline standalone locking pattern used by the other functions: atomic HID FLAG_LOCK acquire, atomic DEVICE_FLAG_LOCK acquire with AUTO_DEVICE_UNLOCK + UX_TRANSFER_STATE_RESET, and an AUTO_WAIT check at completion consistent with idle_get behavior. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../src/ux_host_class_hid_idle_get.c | 2 +- .../src/ux_host_class_hid_idle_set.c | 49 +++++++++++++------ 2 files changed, 35 insertions(+), 16 deletions(-) diff --git a/common/usbx_host_classes/src/ux_host_class_hid_idle_get.c b/common/usbx_host_classes/src/ux_host_class_hid_idle_get.c index e12088424..e39f988a9 100644 --- a/common/usbx_host_classes/src/ux_host_class_hid_idle_get.c +++ b/common/usbx_host_classes/src/ux_host_class_hid_idle_get.c @@ -101,7 +101,7 @@ UINT status; UX_RESTORE return(UX_BUSY); } - hid -> ux_host_class_hid_flags &= ~UX_HOST_CLASS_HID_FLAG_LOCK; + hid -> ux_host_class_hid_flags |= UX_HOST_CLASS_HID_FLAG_LOCK; UX_RESTORE #else diff --git a/common/usbx_host_classes/src/ux_host_class_hid_idle_set.c b/common/usbx_host_classes/src/ux_host_class_hid_idle_set.c index fe74debd9..1611e9133 100644 --- a/common/usbx_host_classes/src/ux_host_class_hid_idle_set.c +++ b/common/usbx_host_classes/src/ux_host_class_hid_idle_set.c @@ -69,14 +69,8 @@ UINT _ux_host_class_hid_idle_set(UX_HOST_CLASS_HID *hid, USHORT idle_time, USHORT report_id) { #if defined(UX_HOST_STANDALONE) -UINT status; - do - { - status = _ux_host_class_hid_idle_set_run(hid, idle_time, report_id); - } while(status == UX_STATE_WAIT || status == UX_STATE_LOCK); - return(hid -> ux_host_class_hid_status); -#else - +UX_INTERRUPT_SAVE_AREA +#endif UX_ENDPOINT *control_endpoint; UX_TRANSFER *transfer_request; UINT status; @@ -99,6 +93,16 @@ UINT status; transfer_request = &control_endpoint -> ux_endpoint_transfer_request; /* Protect thread reentry to this instance. */ +#if defined(UX_HOST_STANDALONE) + UX_DISABLE + if (hid -> ux_host_class_hid_flags & UX_HOST_CLASS_HID_FLAG_LOCK) + { + UX_RESTORE + return(UX_BUSY); + } + hid -> ux_host_class_hid_flags |= UX_HOST_CLASS_HID_FLAG_LOCK; + UX_RESTORE +#else status = _ux_host_semaphore_get(&hid -> ux_host_class_hid_semaphore, UX_WAIT_FOREVER); if (status != UX_SUCCESS) return(status); @@ -106,17 +110,27 @@ UINT status; /* Protect the control endpoint semaphore here. It will be unprotected in the transfer request function. */ status = _ux_host_semaphore_get(&hid -> ux_host_class_hid_device -> ux_device_protection_semaphore, UX_WAIT_FOREVER); - - /* Check for status. */ if (status != UX_SUCCESS) { - - /* Something went wrong. */ - /* Unprotect thread reentry to this instance. */ _ux_host_semaphore_put(&hid -> ux_host_class_hid_semaphore); - return(status); } +#endif + +#if defined(UX_HOST_STANDALONE) + /* Protect the control endpoint. It will be unprotected in the transfer request function. */ + UX_DISABLE + if (hid -> ux_host_class_hid_device -> ux_device_flags & UX_DEVICE_FLAG_LOCK) + { + _ux_host_class_hid_unlock(hid); + UX_RESTORE + return(UX_BUSY); + } + hid -> ux_host_class_hid_device -> ux_device_flags |= UX_DEVICE_FLAG_LOCK; + transfer_request -> ux_transfer_request_flags |= UX_TRANSFER_FLAG_AUTO_DEVICE_UNLOCK; + UX_TRANSFER_STATE_RESET(transfer_request); + UX_RESTORE +#endif /* Create a transfer request for the SET_IDLE request. */ transfer_request -> ux_transfer_request_data_pointer = UX_NULL; @@ -129,12 +143,17 @@ UINT status; /* Send request to HCD layer. */ status = _ux_host_stack_transfer_request(transfer_request); +#if defined(UX_HOST_STANDALONE) + if (!(transfer_request -> ux_transfer_request_flags & UX_TRANSFER_FLAG_AUTO_WAIT)) + return(status); + _ux_host_class_hid_unlock(hid); +#else /* Unprotect thread reentry to this instance. */ _ux_host_semaphore_put(&hid -> ux_host_class_hid_semaphore); +#endif /* Return the function status. */ return(status); -#endif } /**************************************************************************/ From a5fd35face7c364b00fd2fdecbac0c3ca45f659b Mon Sep 17 00:00:00 2001 From: Kajtek Lau Date: Thu, 4 Jun 2026 13:03:06 -0700 Subject: [PATCH 07/11] fix(hid): Store client instance per-device instead of per-class (#262) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(hid): Store client instance per-device instead of per-class * Address review feedback on per-instance HID client copy Three issues fixed, discovered during maintainer review: 1. Memory leak in standalone activation error path (entry.c): _ux_host_class_hid_client_activate_wait() set hid_client to NULL without freeing the per-instance copy allocated in client_search. The HID_ENUM_ERROR handler destroys the hid struct without freeing hid_client, so the copy was leaked on every standalone activation failure. Fixed by freeing hid_client before clearing it. 2. Variable declared inside if-block (client_search.c): hid_client_instance was declared inside the if (status == UX_SUCCESS) block, which is a C99 feature. USBX targets C89/C90 embedded toolchains. Moved to the top of the function with other locals. 3. Trailing whitespace throughout both changed files: The PR introduced trailing spaces on most comment-block lines. Reverted all affected lines to their original whitespace. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Frédéric Desbiens Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../src/ux_host_class_hid_client_search.c | 30 ++++++++++++++++--- .../src/ux_host_class_hid_deactivate.c | 8 ++++- .../src/ux_host_class_hid_entry.c | 1 + 3 files changed, 34 insertions(+), 5 deletions(-) diff --git a/common/usbx_host_classes/src/ux_host_class_hid_client_search.c b/common/usbx_host_classes/src/ux_host_class_hid_client_search.c index bf688853b..902cd555a 100644 --- a/common/usbx_host_classes/src/ux_host_class_hid_client_search.c +++ b/common/usbx_host_classes/src/ux_host_class_hid_client_search.c @@ -56,6 +56,9 @@ /* CALLS */ /* */ /* (ux_host_class_hid_client_handler) HID client handler */ +/* _ux_utility_memory_allocate Allocate memory block */ +/* _ux_utility_memory_copy Copy memory block */ +/* _ux_utility_memory_free Release memory block */ /* */ /* CALLED BY */ /* */ @@ -66,6 +69,7 @@ UINT _ux_host_class_hid_client_search(UX_HOST_CLASS_HID *hid) { UX_HOST_CLASS_HID_CLIENT *hid_client; +UX_HOST_CLASS_HID_CLIENT *hid_client_instance; ULONG hid_client_index; UINT status; UX_HOST_CLASS_HID_CLIENT_COMMAND hid_client_command; @@ -109,18 +113,36 @@ UX_HOST_CLASS_HID_CLIENT_COMMAND hid_client_command; if (status == UX_SUCCESS) { + /* Allocate a per-instance copy of the client struct so that each HID + device gets its own local_instance pointer. This prevents multiple + devices of the same type from sharing a single local_instance. */ + hid_client_instance = (UX_HOST_CLASS_HID_CLIENT *) + _ux_utility_memory_allocate(UX_NO_ALIGN, UX_REGULAR_MEMORY, + sizeof(UX_HOST_CLASS_HID_CLIENT)); + if (hid_client_instance == UX_NULL) + return(UX_MEMORY_INSUFFICIENT); + + /* Copy the registered client entry and clear the local instance + to avoid carrying a stale pointer from a prior activation. */ + _ux_utility_memory_copy(hid_client_instance, hid_client, + sizeof(UX_HOST_CLASS_HID_CLIENT)); + hid_client_instance -> ux_host_class_hid_client_local_instance = UX_NULL; + /* Update the command to activate the client. */ hid_client_command.ux_host_class_hid_client_command_request = UX_HOST_CLASS_COMMAND_ACTIVATE; - /* Memorize the client for this HID device. */ - hid -> ux_host_class_hid_client = hid_client; + /* Store the per-instance client on this HID device. */ + hid -> ux_host_class_hid_client = hid_client_instance; /* Call the HID client with an activate command. */ - status = hid_client -> ux_host_class_hid_client_handler(&hid_client_command); + status = hid_client_instance -> ux_host_class_hid_client_handler(&hid_client_command); - /* Unmount the client if activation fail. */ + /* Unmount the client if activation failed. */ if (status != UX_SUCCESS) + { hid -> ux_host_class_hid_client = UX_NULL; + _ux_utility_memory_free(hid_client_instance); + } /* Return completion status. */ return(status); diff --git a/common/usbx_host_classes/src/ux_host_class_hid_deactivate.c b/common/usbx_host_classes/src/ux_host_class_hid_deactivate.c index eab333f2e..d3db9ac06 100644 --- a/common/usbx_host_classes/src/ux_host_class_hid_deactivate.c +++ b/common/usbx_host_classes/src/ux_host_class_hid_deactivate.c @@ -138,11 +138,17 @@ UINT status; hid_client_command.ux_host_class_hid_client_command_instance = (VOID *) hid; hid_client_command.ux_host_class_hid_client_command_container = (VOID *) hid -> ux_host_class_hid_class; hid_client_command.ux_host_class_hid_client_command_request = UX_HOST_CLASS_COMMAND_DEACTIVATE; - + /* Call the HID client with a deactivate command if there was a client registered. */ if (hid -> ux_host_class_hid_client != UX_NULL) + { hid -> ux_host_class_hid_client -> ux_host_class_hid_client_handler(&hid_client_command); + /* Free the per-instance client copy allocated in _ux_host_class_hid_client_search. */ + _ux_utility_memory_free(hid -> ux_host_class_hid_client); + hid -> ux_host_class_hid_client = UX_NULL; + } + /* Clean all the HID memory fields. */ _ux_host_class_hid_instance_clean(hid); diff --git a/common/usbx_host_classes/src/ux_host_class_hid_entry.c b/common/usbx_host_classes/src/ux_host_class_hid_entry.c index 090243231..9acc9d32d 100644 --- a/common/usbx_host_classes/src/ux_host_class_hid_entry.c +++ b/common/usbx_host_classes/src/ux_host_class_hid_entry.c @@ -456,6 +456,7 @@ UINT status; /* Error. */ if (status < UX_STATE_NEXT) { + _ux_utility_memory_free(hid -> ux_host_class_hid_client); hid -> ux_host_class_hid_client = UX_NULL; hid -> ux_host_class_hid_status = UX_DEVICE_ENUMERATION_FAILURE; hid -> ux_host_class_hid_enum_state = UX_HOST_CLASS_HID_ENUM_ERROR; From fa5ac39d6bfb5961cf1fb48c13e31e96c5665bdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Desbiens?= Date: Thu, 4 Jun 2026 16:57:57 -0400 Subject: [PATCH 08/11] fix(hid): fixed memory leak and double-free in keyboard/mouse/remote_control client lifecycle (#265) PR #262 introduced per-instance UX_HOST_CLASS_HID_CLIENT allocation in client_search.c. However, keyboard/mouse/remote_control activate handlers already embed a UX_HOST_CLASS_HID_CLIENT inside their own combined allocation (e.g. UX_HOST_CLASS_HID_CLIENT_KEYBOARD), override hid->hid_client with the embedded copy, and then free the entire combined struct (as 'keyboard_instance', the first field) during deactivation. This created two bugs: 1. Memory leak: the per-instance copy from client_search was abandoned when activate handlers replaced hid->hid_client with their embedded copy. 2. Double-free / UX_MEMORY_CORRUPTED: deactivate.c freed hid->hid_client after calling the handler, but for keyboard/mouse/remote_control the deactivate handler had already freed the entire combined allocation (which contains the embedded hid_client), causing a second free of a pointer into the middle of a now-freed block. Fix: - keyboard/mouse/remote_control activate: free the per-instance copy from client_search before overriding hid->hid_client with the embedded one. - keyboard/mouse/remote_control deactivate: null hid->hid_client after freeing the combined struct, signalling that cleanup is done. - deactivate.c: re-check hid_client != NULL after calling the handler before freeing; keyboard/mouse/remote_control will have nulled it, simple clients will not. - keyboard/mouse ACTIVATE_WAIT error paths (standalone): null hid->hid_client after freeing the combined struct so that the generic cleanup in entry.c skips the already-freed pointer. - entry.c standalone ACTIVATE_WAIT error: guard the free with a NULL check to safely handle both cases. Discovered while investigating test failures introduced by PR #262. All 430 tests pass after this fix. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../src/ux_host_class_hid_deactivate.c | 11 ++++++++--- .../usbx_host_classes/src/ux_host_class_hid_entry.c | 9 +++++++-- .../src/ux_host_class_hid_keyboard_activate.c | 6 ++++++ .../src/ux_host_class_hid_keyboard_deactivate.c | 3 +++ .../src/ux_host_class_hid_keyboard_entry.c | 5 ++++- .../src/ux_host_class_hid_mouse_activate.c | 6 ++++++ .../src/ux_host_class_hid_mouse_deactivate.c | 3 +++ .../src/ux_host_class_hid_mouse_entry.c | 5 ++++- .../src/ux_host_class_hid_remote_control_activate.c | 3 +++ .../src/ux_host_class_hid_remote_control_deactivate.c | 3 +++ 10 files changed, 47 insertions(+), 7 deletions(-) diff --git a/common/usbx_host_classes/src/ux_host_class_hid_deactivate.c b/common/usbx_host_classes/src/ux_host_class_hid_deactivate.c index d3db9ac06..888cc128a 100644 --- a/common/usbx_host_classes/src/ux_host_class_hid_deactivate.c +++ b/common/usbx_host_classes/src/ux_host_class_hid_deactivate.c @@ -144,9 +144,14 @@ UINT status; { hid -> ux_host_class_hid_client -> ux_host_class_hid_client_handler(&hid_client_command); - /* Free the per-instance client copy allocated in _ux_host_class_hid_client_search. */ - _ux_utility_memory_free(hid -> ux_host_class_hid_client); - hid -> ux_host_class_hid_client = UX_NULL; + /* Free the per-instance client copy allocated in _ux_host_class_hid_client_search. + Handlers for keyboard/mouse/remote_control null hid_client after freeing their own + combined allocation; simple clients leave hid_client pointing at the per-instance copy. */ + if (hid -> ux_host_class_hid_client != UX_NULL) + { + _ux_utility_memory_free(hid -> ux_host_class_hid_client); + hid -> ux_host_class_hid_client = UX_NULL; + } } /* Clean all the HID memory fields. */ diff --git a/common/usbx_host_classes/src/ux_host_class_hid_entry.c b/common/usbx_host_classes/src/ux_host_class_hid_entry.c index 9acc9d32d..d58b58e30 100644 --- a/common/usbx_host_classes/src/ux_host_class_hid_entry.c +++ b/common/usbx_host_classes/src/ux_host_class_hid_entry.c @@ -456,8 +456,13 @@ UINT status; /* Error. */ if (status < UX_STATE_NEXT) { - _ux_utility_memory_free(hid -> ux_host_class_hid_client); - hid -> ux_host_class_hid_client = UX_NULL; + + /* Free per-instance client copy if not already freed by the ACTIVATE_WAIT handler. */ + if (hid -> ux_host_class_hid_client != UX_NULL) + { + _ux_utility_memory_free(hid -> ux_host_class_hid_client); + hid -> ux_host_class_hid_client = UX_NULL; + } hid -> ux_host_class_hid_status = UX_DEVICE_ENUMERATION_FAILURE; hid -> ux_host_class_hid_enum_state = UX_HOST_CLASS_HID_ENUM_ERROR; return; diff --git a/common/usbx_host_classes/src/ux_host_class_hid_keyboard_activate.c b/common/usbx_host_classes/src/ux_host_class_hid_keyboard_activate.c index af2d5c6ec..5deebccdb 100644 --- a/common/usbx_host_classes/src/ux_host_class_hid_keyboard_activate.c +++ b/common/usbx_host_classes/src/ux_host_class_hid_keyboard_activate.c @@ -347,6 +347,9 @@ UX_HOST_CLASS_HID_FIELD *field; - _periodic_report_start() */ keyboard_instance -> ux_host_class_hid_keyboard_enum_state = UX_STATE_WAIT; + /* Free the per-instance client copy from client_search, as we now use our own embedded copy. */ + _ux_utility_memory_free(hid -> ux_host_class_hid_client); + /* It's fine, replace client with our copy. */ hid -> ux_host_class_hid_client = hid_client; return(status); @@ -402,6 +405,9 @@ UX_HOST_CLASS_HID_FIELD *field; if (status == UX_SUCCESS) { + /* Free the per-instance client copy from client_search, as we now use our own embedded copy. */ + _ux_utility_memory_free(hid -> ux_host_class_hid_client); + /* It's fine, replace client copy. */ hid -> ux_host_class_hid_client = hid_client; diff --git a/common/usbx_host_classes/src/ux_host_class_hid_keyboard_deactivate.c b/common/usbx_host_classes/src/ux_host_class_hid_keyboard_deactivate.c index 942d9883a..88bfc57ef 100644 --- a/common/usbx_host_classes/src/ux_host_class_hid_keyboard_deactivate.c +++ b/common/usbx_host_classes/src/ux_host_class_hid_keyboard_deactivate.c @@ -123,6 +123,9 @@ UINT status = UX_SUCCESS; /* Now free the instance memory. */ _ux_utility_memory_free(hid_client -> ux_host_class_hid_client_local_instance); + /* Signal to _ux_host_class_hid_deactivate that the client memory has been freed. */ + hid -> ux_host_class_hid_client = UX_NULL; + /* Return completion status. */ return(status); } diff --git a/common/usbx_host_classes/src/ux_host_class_hid_keyboard_entry.c b/common/usbx_host_classes/src/ux_host_class_hid_keyboard_entry.c index 4e4582e6e..3c863aea6 100644 --- a/common/usbx_host_classes/src/ux_host_class_hid_keyboard_entry.c +++ b/common/usbx_host_classes/src/ux_host_class_hid_keyboard_entry.c @@ -226,9 +226,12 @@ UINT status; if (keyboard -> ux_host_class_hid_keyboard_usage_array) _ux_utility_memory_free(keyboard -> ux_host_class_hid_keyboard_usage_array); - /* Free instance. */ + /* Free instance (= combined allocation; hid_client is embedded inside it). */ _ux_utility_memory_free(keyboard); + /* Signal to entry.c that the per-instance client has been freed. */ + hid -> ux_host_class_hid_client = UX_NULL; + return(UX_STATE_ERROR); } diff --git a/common/usbx_host_classes/src/ux_host_class_hid_mouse_activate.c b/common/usbx_host_classes/src/ux_host_class_hid_mouse_activate.c index ec49be506..723831cfb 100644 --- a/common/usbx_host_classes/src/ux_host_class_hid_mouse_activate.c +++ b/common/usbx_host_classes/src/ux_host_class_hid_mouse_activate.c @@ -128,6 +128,9 @@ UINT status; } + /* Free the per-instance client copy from client_search, as we now use our own embedded copy. */ + _ux_utility_memory_free(hid -> ux_host_class_hid_client); + /* Use our copy of client. */ hid -> ux_host_class_hid_client = hid_client; return(status); @@ -182,6 +185,9 @@ UINT status; if (status == UX_SUCCESS) { + /* Free the per-instance client copy from client_search, as we now use our own embedded copy. */ + _ux_utility_memory_free(hid -> ux_host_class_hid_client); + /* Use our copy of client. */ hid -> ux_host_class_hid_client = hid_client; diff --git a/common/usbx_host_classes/src/ux_host_class_hid_mouse_deactivate.c b/common/usbx_host_classes/src/ux_host_class_hid_mouse_deactivate.c index cc2206c03..760b41ecb 100644 --- a/common/usbx_host_classes/src/ux_host_class_hid_mouse_deactivate.c +++ b/common/usbx_host_classes/src/ux_host_class_hid_mouse_deactivate.c @@ -96,6 +96,9 @@ UINT status; /* Now free the instance memory. */ _ux_utility_memory_free(hid_client -> ux_host_class_hid_client_local_instance); + /* Signal to _ux_host_class_hid_deactivate that the client memory has been freed. */ + hid -> ux_host_class_hid_client = UX_NULL; + /* Return completion status. */ return(status); } diff --git a/common/usbx_host_classes/src/ux_host_class_hid_mouse_entry.c b/common/usbx_host_classes/src/ux_host_class_hid_mouse_entry.c index 141651a3a..f412304cd 100644 --- a/common/usbx_host_classes/src/ux_host_class_hid_mouse_entry.c +++ b/common/usbx_host_classes/src/ux_host_class_hid_mouse_entry.c @@ -207,9 +207,12 @@ UX_HOST_CLASS_HID_REPORT_CALLBACK call_back; /* Detach instance. */ hid_client -> ux_host_class_hid_client_local_instance = UX_NULL; - /* Free instance. */ + /* Free instance (= combined allocation; hid_client is embedded inside it). */ _ux_utility_memory_free(mouse); + /* Signal to entry.c that the per-instance client has been freed. */ + hid -> ux_host_class_hid_client = UX_NULL; + return(UX_STATE_ERROR); } diff --git a/common/usbx_host_classes/src/ux_host_class_hid_remote_control_activate.c b/common/usbx_host_classes/src/ux_host_class_hid_remote_control_activate.c index c353fceb7..0c79d0e2d 100644 --- a/common/usbx_host_classes/src/ux_host_class_hid_remote_control_activate.c +++ b/common/usbx_host_classes/src/ux_host_class_hid_remote_control_activate.c @@ -143,6 +143,9 @@ UINT status = UX_SUCCESS; if (status == UX_SUCCESS) { + /* Free the per-instance client copy from client_search, as we now use our own embedded copy. */ + _ux_utility_memory_free(hid -> ux_host_class_hid_client); + /* Use out copy of client. */ hid -> ux_host_class_hid_client = hid_client; diff --git a/common/usbx_host_classes/src/ux_host_class_hid_remote_control_deactivate.c b/common/usbx_host_classes/src/ux_host_class_hid_remote_control_deactivate.c index 1db2e56be..f9b4853f3 100644 --- a/common/usbx_host_classes/src/ux_host_class_hid_remote_control_deactivate.c +++ b/common/usbx_host_classes/src/ux_host_class_hid_remote_control_deactivate.c @@ -103,6 +103,9 @@ UINT status; /* Now free the instance memory. */ _ux_utility_memory_free(hid_client -> ux_host_class_hid_client_local_instance); + /* Signal to _ux_host_class_hid_deactivate that the client memory has been freed. */ + hid -> ux_host_class_hid_client = UX_NULL; + /* Return completion status. */ return(status); } From 8fecc58869bf3f53d76e91c72a6a265c9ac40a10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Desbiens?= Date: Thu, 4 Jun 2026 17:17:11 -0400 Subject: [PATCH 09/11] Added a release preparation script (#266) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- scripts/prepare_release.sh | 172 +++++++++++++++++++++++++++++++++++++ 1 file changed, 172 insertions(+) create mode 100755 scripts/prepare_release.sh diff --git a/scripts/prepare_release.sh b/scripts/prepare_release.sh new file mode 100755 index 000000000..5b0260b4b --- /dev/null +++ b/scripts/prepare_release.sh @@ -0,0 +1,172 @@ +#!/usr/bin/env bash +# prepare_release.sh +# Prepares a USBX release by updating version constants and port version strings. +# +# Usage: prepare_release.sh +# Example: prepare_release.sh 6.5.1.202602 +# Hotfix: prepare_release.sh 6.5.1.202602a +# +# This script: +# 1. Creates branch release--preparation from dev +# 2. Updates version constants in common/core/inc/ux_api.h +# (commit: "Updated version number constants") +# 3. Updates port version strings in all ux_port.h files +# (commit: "Updated port version strings") +# +# Copyright (C) 2026 Eclipse ThreadX contributors +# SPDX-License-Identifier: MIT + +set -eu + +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +REPO_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd)" + +API_HEADER="${REPO_ROOT}/common/core/inc/ux_api.h" +PORT_HEADER_NAME="ux_port.h" +PORT_DIRS="ports" + +# -------------------------------------------------------------------------- +# Argument validation +# -------------------------------------------------------------------------- +if [ "$#" -ne 1 ]; then + printf "Usage: %s \n" "$(basename "$0")" >&2 + printf "Example: %s 6.5.1.202602\n" "$(basename "$0")" >&2 + exit 1 +fi + +VERSION="$1" + +if ! printf "%s" "${VERSION}" | grep -qE '^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+[a-z]?$'; then + printf "Error: Invalid version format '%s'.\n" "${VERSION}" >&2 + printf "Expected: MAJOR.MINOR.PATCH.BUILD[hotfix_letter]\n" >&2 + exit 1 +fi + +# -------------------------------------------------------------------------- +# Parse version components +# -------------------------------------------------------------------------- +MAJOR=$(printf "%s" "${VERSION}" | cut -d. -f1) +MINOR=$(printf "%s" "${VERSION}" | cut -d. -f2) +PATCH=$(printf "%s" "${VERSION}" | cut -d. -f3) +BUILD_AND_HOTFIX=$(printf "%s" "${VERSION}" | cut -d. -f4) +BUILD=$(printf "%s" "${BUILD_AND_HOTFIX}" | sed -E 's/[a-z]+$//') +HOTFIX=$(printf "%s" "${BUILD_AND_HOTFIX}" | sed -E 's/^[0-9]+//') + +if [ -z "${HOTFIX}" ]; then + HOTFIX_DEFINE="' '" +else + HOTFIX_DEFINE="'${HOTFIX}'" +fi + +# -------------------------------------------------------------------------- +# Read and display current version +# -------------------------------------------------------------------------- +CURR_MAJOR=$(grep -E "^#define USBX_MAJOR_VERSION" "${API_HEADER}" | awk '{print $NF}') +CURR_MINOR=$(grep -E "^#define USBX_MINOR_VERSION" "${API_HEADER}" | awk '{print $NF}') +CURR_PATCH=$(grep -E "^#define USBX_PATCH_VERSION" "${API_HEADER}" | awk '{print $NF}') +CURR_BUILD=$(grep -E "^#define USBX_BUILD_VERSION" "${API_HEADER}" | awk '{print $NF}') +CURR_HOTFIX=$(grep -E "^#define USBX_HOTFIX_VERSION" "${API_HEADER}" | \ + sed -E "s/.*'([^']*)'.*/\1/" | tr -d ' ') + +if [ -z "${CURR_HOTFIX}" ]; then + CURR_VER="${CURR_MAJOR}.${CURR_MINOR}.${CURR_PATCH}.${CURR_BUILD}" +else + CURR_VER="${CURR_MAJOR}.${CURR_MINOR}.${CURR_PATCH}.${CURR_BUILD}${CURR_HOTFIX}" +fi + +printf "\nUSBX release preparation\n" +printf " Repository : %s\n" "${REPO_ROOT}" +printf " Current version : %s\n" "${CURR_VER}" +printf " Target version : %s\n\n" "${VERSION}" +printf "Proceed with update? [y/N] " +read -r CONFIRM +case "${CONFIRM}" in + y|Y) ;; + *) + printf "Aborted.\n" + exit 0 + ;; +esac + +# -------------------------------------------------------------------------- +# Pre-flight checks +# -------------------------------------------------------------------------- +if ! git -C "${REPO_ROOT}" diff --quiet HEAD 2>/dev/null; then + printf "Error: Working tree has uncommitted changes. Commit or stash first.\n" >&2 + exit 1 +fi + +# -------------------------------------------------------------------------- +# Create feature branch from dev +# -------------------------------------------------------------------------- +BRANCH_NAME="release-${VERSION}-preparation" +printf "\nChecking out dev and pulling latest changes...\n" +git -C "${REPO_ROOT}" checkout dev +git -C "${REPO_ROOT}" pull origin dev +printf "Creating branch '%s'...\n" "${BRANCH_NAME}" +git -C "${REPO_ROOT}" checkout -b "${BRANCH_NAME}" + +# -------------------------------------------------------------------------- +# Update version constants +# -------------------------------------------------------------------------- +printf "\nUpdating version constants in %s...\n" "${API_HEADER}" + +sed -i -E "s|(#define USBX_MAJOR_VERSION[[:space:]]+)[0-9]+|\1${MAJOR}|" "${API_HEADER}" +sed -i -E "s|(#define USBX_MINOR_VERSION[[:space:]]+)[0-9]+|\1${MINOR}|" "${API_HEADER}" +sed -i -E "s|(#define USBX_PATCH_VERSION[[:space:]]+)[0-9]+|\1${PATCH}|" "${API_HEADER}" +sed -i -E "s|(#define USBX_BUILD_VERSION[[:space:]]+)[0-9]+|\1${BUILD}|" "${API_HEADER}" +sed -i -E "s|(#define USBX_HOTFIX_VERSION[[:space:]]+)'[^']*'|\1${HOTFIX_DEFINE}|" "${API_HEADER}" + +git -C "${REPO_ROOT}" add "${API_HEADER}" +git -C "${REPO_ROOT}" commit -F - <<'COMMIT_EOF' +Updated version number constants + +Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> +COMMIT_EOF + +printf "Committed version constant updates.\n" + +# -------------------------------------------------------------------------- +# Update port version strings +# -------------------------------------------------------------------------- +printf "\nUpdating port version strings...\n" + +PORT_FILES="" +for dir in ${PORT_DIRS}; do + if [ -d "${REPO_ROOT}/${dir}" ]; then + found=$(find "${REPO_ROOT}/${dir}" -name "${PORT_HEADER_NAME}" 2>/dev/null | sort) + if [ -n "${found}" ]; then + PORT_FILES="${PORT_FILES}${found} +" + fi + fi +done +PORT_FILES=$(printf "%s" "${PORT_FILES}" | grep -v '^[[:space:]]*$' || true) + +if [ -z "${PORT_FILES}" ]; then + printf "Warning: No port header files found. Skipping port version string commit.\n" +else + while IFS= read -r port_file; do + if [ -n "${port_file}" ] && grep -qE "Version [0-9]" "${port_file}" 2>/dev/null; then + sed -i -E "s/Version [0-9]+\.[0-9]+\.[0-9]+\.[0-9]+[a-z]*/Version ${VERSION}/g" "${port_file}" + printf " Updated: %s\n" "${port_file#${REPO_ROOT}/}" + fi + done < +COMMIT_EOF + printf "Committed port version string updates.\n" + fi +fi + +printf "\nRelease preparation complete.\n" +printf "Branch '%s' is ready for review.\n" "${BRANCH_NAME}" From 9b8fac9601d1d83e79a1c4e3f48ea4beefd2dea7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Desbiens?= Date: Thu, 4 Jun 2026 17:23:53 -0400 Subject: [PATCH 10/11] Release 6.5.1.202602 preparation (#267) * Updated version number constants * Updated port version strings --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- common/core/inc/ux_api.h | 4 ++-- ports/arm9/gnu/inc/ux_port.h | 2 +- ports/arm9/iar/inc/ux_port.h | 2 +- ports/cortex_a15/gnu/inc/ux_port.h | 2 +- ports/cortex_a5/gnu/inc/ux_port.h | 2 +- ports/cortex_a5/iar/inc/ux_port.h | 2 +- ports/cortex_a5x/ac6/inc/ux_port.h | 2 +- ports/cortex_a7/gnu/inc/ux_port.h | 2 +- ports/cortex_a7/iar/inc/ux_port.h | 2 +- ports/cortex_a8/gnu/inc/ux_port.h | 2 +- ports/cortex_a8/iar/inc/ux_port.h | 2 +- ports/cortex_a9/gnu/inc/ux_port.h | 2 +- ports/cortex_a9/iar/inc/ux_port.h | 2 +- ports/cortex_m0/gnu/inc/ux_port.h | 2 +- ports/cortex_m0/iar/inc/ux_port.h | 2 +- ports/cortex_m3/gnu/inc/ux_port.h | 2 +- ports/cortex_m3/iar/inc/ux_port.h | 2 +- ports/cortex_m33/gnu/inc/ux_port.h | 2 +- ports/cortex_m33/iar/inc/ux_port.h | 2 +- ports/cortex_m4/gnu/inc/ux_port.h | 2 +- ports/cortex_m4/iar/inc/ux_port.h | 2 +- ports/cortex_m7/gnu/inc/ux_port.h | 2 +- ports/cortex_m7/iar/inc/ux_port.h | 2 +- ports/cortex_r4/gnu/inc/ux_port.h | 2 +- ports/cortex_r4/iar/inc/ux_port.h | 2 +- ports/cortex_r5/gnu/inc/ux_port.h | 2 +- ports/cortex_r5/iar/inc/ux_port.h | 2 +- ports/generic/inc/ux_port.h | 2 +- ports/linux/gnu/inc/ux_port.h | 2 +- ports/rxv1/gnu/inc/ux_port.h | 2 +- ports/rxv2/gnu/inc/ux_port.h | 2 +- ports/rxv3/gnu/inc/ux_port.h | 2 +- 32 files changed, 33 insertions(+), 33 deletions(-) diff --git a/common/core/inc/ux_api.h b/common/core/inc/ux_api.h index a9daa956b..ed26f727f 100644 --- a/common/core/inc/ux_api.h +++ b/common/core/inc/ux_api.h @@ -239,8 +239,8 @@ typedef signed char SCHAR; #define AZURE_RTOS_USBX #define USBX_MAJOR_VERSION 6 #define USBX_MINOR_VERSION 5 -#define USBX_PATCH_VERSION 0 -#define USBX_BUILD_VERSION 202601 +#define USBX_PATCH_VERSION 1 +#define USBX_BUILD_VERSION 202602 #define USBX_HOTFIX_VERSION ' ' /* Macros for concatenating tokens, where UX_CONCATn concatenates n tokens. */ diff --git a/ports/arm9/gnu/inc/ux_port.h b/ports/arm9/gnu/inc/ux_port.h index 967ca0ef2..b81411e58 100644 --- a/ports/arm9/gnu/inc/ux_port.h +++ b/ports/arm9/gnu/inc/ux_port.h @@ -244,7 +244,7 @@ VOID outpl(ULONG,ULONG); #ifdef UX_SYSTEM_INIT CHAR _ux_version_id[] = - "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX ARM9/GNU Version 6.5.0.202601 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX ARM9/GNU Version 6.5.1.202602 *"; #else extern CHAR _ux_version_id[]; #endif diff --git a/ports/arm9/iar/inc/ux_port.h b/ports/arm9/iar/inc/ux_port.h index 565e71bdc..8f4e3908a 100644 --- a/ports/arm9/iar/inc/ux_port.h +++ b/ports/arm9/iar/inc/ux_port.h @@ -251,7 +251,7 @@ VOID outpl(ULONG,ULONG); #ifdef UX_SYSTEM_INIT CHAR _ux_version_id[] = - "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX ARM9/IAR Version 6.5.0.202601 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX ARM9/IAR Version 6.5.1.202602 *"; #else extern CHAR _ux_version_id[]; #endif diff --git a/ports/cortex_a15/gnu/inc/ux_port.h b/ports/cortex_a15/gnu/inc/ux_port.h index 0851253d3..62d820620 100644 --- a/ports/cortex_a15/gnu/inc/ux_port.h +++ b/ports/cortex_a15/gnu/inc/ux_port.h @@ -240,7 +240,7 @@ VOID outpl(ULONG,ULONG); #ifdef UX_SYSTEM_INIT CHAR _ux_version_id[] = - "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX Cortex-A15/GNU Version 6.5.0.202601 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX Cortex-A15/GNU Version 6.5.1.202602 *"; #else extern CHAR _ux_version_id[]; #endif diff --git a/ports/cortex_a5/gnu/inc/ux_port.h b/ports/cortex_a5/gnu/inc/ux_port.h index 70ac9ab36..efb2fae3c 100644 --- a/ports/cortex_a5/gnu/inc/ux_port.h +++ b/ports/cortex_a5/gnu/inc/ux_port.h @@ -247,7 +247,7 @@ VOID outpl(ULONG,ULONG); #ifdef UX_SYSTEM_INIT CHAR _ux_version_id[] = - "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX Cortex-A5/GNU Version 6.5.0.202601 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX Cortex-A5/GNU Version 6.5.1.202602 *"; #else extern CHAR _ux_version_id[]; #endif diff --git a/ports/cortex_a5/iar/inc/ux_port.h b/ports/cortex_a5/iar/inc/ux_port.h index c96130033..dbc319278 100644 --- a/ports/cortex_a5/iar/inc/ux_port.h +++ b/ports/cortex_a5/iar/inc/ux_port.h @@ -247,7 +247,7 @@ VOID outpl(ULONG,ULONG); #ifdef UX_SYSTEM_INIT CHAR _ux_version_id[] = - "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX Cortex-A5/IAR Version 6.5.0.202601 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX Cortex-A5/IAR Version 6.5.1.202602 *"; #else extern CHAR _ux_version_id[]; #endif diff --git a/ports/cortex_a5x/ac6/inc/ux_port.h b/ports/cortex_a5x/ac6/inc/ux_port.h index 0499cc1f9..ffd35f64f 100644 --- a/ports/cortex_a5x/ac6/inc/ux_port.h +++ b/ports/cortex_a5x/ac6/inc/ux_port.h @@ -264,7 +264,7 @@ VOID outpl(ULONG,ULONG); #ifdef UX_SYSTEM_INIT CHAR _ux_version_id[] = - "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX Cortex-A5x/AC6 Version 6.5.0.202601 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX Cortex-A5x/AC6 Version 6.5.1.202602 *"; #else extern CHAR _ux_version_id[]; #endif diff --git a/ports/cortex_a7/gnu/inc/ux_port.h b/ports/cortex_a7/gnu/inc/ux_port.h index 5d557e342..4a5516384 100644 --- a/ports/cortex_a7/gnu/inc/ux_port.h +++ b/ports/cortex_a7/gnu/inc/ux_port.h @@ -251,7 +251,7 @@ VOID outpl(ULONG,ULONG); #ifdef UX_SYSTEM_INIT CHAR _ux_version_id[] = - "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX Cortex-A7/GNU Version 6.5.0.202601 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX Cortex-A7/GNU Version 6.5.1.202602 *"; #else extern CHAR _ux_version_id[]; #endif diff --git a/ports/cortex_a7/iar/inc/ux_port.h b/ports/cortex_a7/iar/inc/ux_port.h index 6192f4145..1f51308ad 100644 --- a/ports/cortex_a7/iar/inc/ux_port.h +++ b/ports/cortex_a7/iar/inc/ux_port.h @@ -251,7 +251,7 @@ VOID outpl(ULONG,ULONG); #ifdef UX_SYSTEM_INIT CHAR _ux_version_id[] = - "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX Cortex-A7/IAR Version 6.5.0.202601 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX Cortex-A7/IAR Version 6.5.1.202602 *"; #else extern CHAR _ux_version_id[]; #endif diff --git a/ports/cortex_a8/gnu/inc/ux_port.h b/ports/cortex_a8/gnu/inc/ux_port.h index b331d1330..77cc4dd6d 100644 --- a/ports/cortex_a8/gnu/inc/ux_port.h +++ b/ports/cortex_a8/gnu/inc/ux_port.h @@ -247,7 +247,7 @@ VOID outpl(ULONG,ULONG); #ifdef UX_SYSTEM_INIT CHAR _ux_version_id[] = - "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX Cortex-A8/GNU Version 6.5.0.202601 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX Cortex-A8/GNU Version 6.5.1.202602 *"; #else extern CHAR _ux_version_id[]; #endif diff --git a/ports/cortex_a8/iar/inc/ux_port.h b/ports/cortex_a8/iar/inc/ux_port.h index 0eae9a85a..b4b27198f 100644 --- a/ports/cortex_a8/iar/inc/ux_port.h +++ b/ports/cortex_a8/iar/inc/ux_port.h @@ -247,7 +247,7 @@ VOID outpl(ULONG,ULONG); #ifdef UX_SYSTEM_INIT CHAR _ux_version_id[] = - "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX Cortex-A8/IAR Version 6.5.0.202601 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX Cortex-A8/IAR Version 6.5.1.202602 *"; #else extern CHAR _ux_version_id[]; #endif diff --git a/ports/cortex_a9/gnu/inc/ux_port.h b/ports/cortex_a9/gnu/inc/ux_port.h index ba2b7f922..e58a859c2 100644 --- a/ports/cortex_a9/gnu/inc/ux_port.h +++ b/ports/cortex_a9/gnu/inc/ux_port.h @@ -247,7 +247,7 @@ VOID outpl(ULONG,ULONG); #ifdef UX_SYSTEM_INIT CHAR _ux_version_id[] = - "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX ARM9/GNU Version 6.5.0.202601 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX ARM9/GNU Version 6.5.1.202602 *"; #else extern CHAR _ux_version_id[]; #endif diff --git a/ports/cortex_a9/iar/inc/ux_port.h b/ports/cortex_a9/iar/inc/ux_port.h index 32d8caa07..9e0fe2f0a 100644 --- a/ports/cortex_a9/iar/inc/ux_port.h +++ b/ports/cortex_a9/iar/inc/ux_port.h @@ -247,7 +247,7 @@ VOID outpl(ULONG,ULONG); #ifdef UX_SYSTEM_INIT CHAR _ux_version_id[] = - "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX ARM9/IAR Version 6.5.0.202601 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX ARM9/IAR Version 6.5.1.202602 *"; #else extern CHAR _ux_version_id[]; #endif diff --git a/ports/cortex_m0/gnu/inc/ux_port.h b/ports/cortex_m0/gnu/inc/ux_port.h index b39c2e876..d7d6fadc7 100644 --- a/ports/cortex_m0/gnu/inc/ux_port.h +++ b/ports/cortex_m0/gnu/inc/ux_port.h @@ -243,7 +243,7 @@ VOID outpl(ULONG,ULONG); #ifdef UX_SYSTEM_INIT CHAR _ux_version_id[] = - "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX Cortex-M0/GNU Version 6.5.0.202601 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX Cortex-M0/GNU Version 6.5.1.202602 *"; #else extern CHAR _ux_version_id[]; #endif diff --git a/ports/cortex_m0/iar/inc/ux_port.h b/ports/cortex_m0/iar/inc/ux_port.h index ce466cdc8..5a404a11f 100644 --- a/ports/cortex_m0/iar/inc/ux_port.h +++ b/ports/cortex_m0/iar/inc/ux_port.h @@ -247,7 +247,7 @@ VOID outpl(ULONG,ULONG); #ifdef UX_SYSTEM_INIT CHAR _ux_version_id[] = - "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX Cortex-M0/IAR Version 6.5.0.202601 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX Cortex-M0/IAR Version 6.5.1.202602 *"; #else extern CHAR _ux_version_id[]; #endif diff --git a/ports/cortex_m3/gnu/inc/ux_port.h b/ports/cortex_m3/gnu/inc/ux_port.h index 0361f9819..61f33e271 100644 --- a/ports/cortex_m3/gnu/inc/ux_port.h +++ b/ports/cortex_m3/gnu/inc/ux_port.h @@ -243,7 +243,7 @@ VOID outpl(ULONG,ULONG); #ifdef UX_SYSTEM_INIT CHAR _ux_version_id[] = - "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX Cortex-M3/GNU Version 6.5.0.202601 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX Cortex-M3/GNU Version 6.5.1.202602 *"; #else extern CHAR _ux_version_id[]; #endif diff --git a/ports/cortex_m3/iar/inc/ux_port.h b/ports/cortex_m3/iar/inc/ux_port.h index ae7ef19fd..66269b7e6 100644 --- a/ports/cortex_m3/iar/inc/ux_port.h +++ b/ports/cortex_m3/iar/inc/ux_port.h @@ -245,7 +245,7 @@ VOID outpl(ULONG,ULONG); #ifdef UX_SYSTEM_INIT CHAR _ux_version_id[] = - "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX Cortex-M3/IAR Version 6.5.0.202601 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX Cortex-M3/IAR Version 6.5.1.202602 *"; #else extern CHAR _ux_version_id[]; #endif diff --git a/ports/cortex_m33/gnu/inc/ux_port.h b/ports/cortex_m33/gnu/inc/ux_port.h index 53ccf090d..44fc730b1 100644 --- a/ports/cortex_m33/gnu/inc/ux_port.h +++ b/ports/cortex_m33/gnu/inc/ux_port.h @@ -243,7 +243,7 @@ VOID outpl(ULONG,ULONG); #ifdef UX_SYSTEM_INIT CHAR _ux_version_id[] = - "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX Cortex-M33/GNU Version 6.5.0.202601 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX Cortex-M33/GNU Version 6.5.1.202602 *"; #else extern CHAR _ux_version_id[]; #endif diff --git a/ports/cortex_m33/iar/inc/ux_port.h b/ports/cortex_m33/iar/inc/ux_port.h index f5055d9d9..d6a9a1bf3 100644 --- a/ports/cortex_m33/iar/inc/ux_port.h +++ b/ports/cortex_m33/iar/inc/ux_port.h @@ -247,7 +247,7 @@ VOID outpl(ULONG,ULONG); #ifdef UX_SYSTEM_INIT CHAR _ux_version_id[] = - "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX Cortex-M33/IAR Version 6.5.0.202601 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX Cortex-M33/IAR Version 6.5.1.202602 *"; #else extern CHAR _ux_version_id[]; #endif diff --git a/ports/cortex_m4/gnu/inc/ux_port.h b/ports/cortex_m4/gnu/inc/ux_port.h index 41b692aab..812e2a731 100644 --- a/ports/cortex_m4/gnu/inc/ux_port.h +++ b/ports/cortex_m4/gnu/inc/ux_port.h @@ -243,7 +243,7 @@ VOID outpl(ULONG,ULONG); #ifdef UX_SYSTEM_INIT CHAR _ux_version_id[] = - "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX Cortex-M4/GNU Version 6.5.0.202601 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX Cortex-M4/GNU Version 6.5.1.202602 *"; #else extern CHAR _ux_version_id[]; #endif diff --git a/ports/cortex_m4/iar/inc/ux_port.h b/ports/cortex_m4/iar/inc/ux_port.h index 0eb9db3da..7b29625a6 100644 --- a/ports/cortex_m4/iar/inc/ux_port.h +++ b/ports/cortex_m4/iar/inc/ux_port.h @@ -247,7 +247,7 @@ VOID outpl(ULONG,ULONG); #ifdef UX_SYSTEM_INIT CHAR _ux_version_id[] = - "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX Cortex-M4/IAR Version 6.5.0.202601 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX Cortex-M4/IAR Version 6.5.1.202602 *"; #else extern CHAR _ux_version_id[]; #endif diff --git a/ports/cortex_m7/gnu/inc/ux_port.h b/ports/cortex_m7/gnu/inc/ux_port.h index d5a08fc38..907feafcc 100644 --- a/ports/cortex_m7/gnu/inc/ux_port.h +++ b/ports/cortex_m7/gnu/inc/ux_port.h @@ -243,7 +243,7 @@ VOID outpl(ULONG,ULONG); #ifdef UX_SYSTEM_INIT CHAR _ux_version_id[] = - "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX Cortex-M7/GNU Version 6.5.0.202601 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX Cortex-M7/GNU Version 6.5.1.202602 *"; #else extern CHAR _ux_version_id[]; #endif diff --git a/ports/cortex_m7/iar/inc/ux_port.h b/ports/cortex_m7/iar/inc/ux_port.h index 5843ceb17..426ea2c57 100644 --- a/ports/cortex_m7/iar/inc/ux_port.h +++ b/ports/cortex_m7/iar/inc/ux_port.h @@ -247,7 +247,7 @@ VOID outpl(ULONG,ULONG); #ifdef UX_SYSTEM_INIT CHAR _ux_version_id[] = - "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX Cortex-M7/IAR Version 6.5.0.202601 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX Cortex-M7/IAR Version 6.5.1.202602 *"; #else extern CHAR _ux_version_id[]; #endif diff --git a/ports/cortex_r4/gnu/inc/ux_port.h b/ports/cortex_r4/gnu/inc/ux_port.h index af7083c1b..5f6804a04 100644 --- a/ports/cortex_r4/gnu/inc/ux_port.h +++ b/ports/cortex_r4/gnu/inc/ux_port.h @@ -244,7 +244,7 @@ VOID outpl(ULONG,ULONG); #ifdef UX_SYSTEM_INIT CHAR _ux_version_id[] = - "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX Cortex-R4/GNU Version 6.5.0.202601 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX Cortex-R4/GNU Version 6.5.1.202602 *"; #else extern CHAR _ux_version_id[]; #endif diff --git a/ports/cortex_r4/iar/inc/ux_port.h b/ports/cortex_r4/iar/inc/ux_port.h index 458b8fdb4..49c80aff4 100644 --- a/ports/cortex_r4/iar/inc/ux_port.h +++ b/ports/cortex_r4/iar/inc/ux_port.h @@ -247,7 +247,7 @@ VOID outpl(ULONG,ULONG); #ifdef UX_SYSTEM_INIT CHAR _ux_version_id[] = - "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX Cortex-R4/IAR Version 6.5.0.202601 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX Cortex-R4/IAR Version 6.5.1.202602 *"; #else extern CHAR _ux_version_id[]; #endif diff --git a/ports/cortex_r5/gnu/inc/ux_port.h b/ports/cortex_r5/gnu/inc/ux_port.h index 6ac4c6702..c812916f0 100644 --- a/ports/cortex_r5/gnu/inc/ux_port.h +++ b/ports/cortex_r5/gnu/inc/ux_port.h @@ -246,7 +246,7 @@ VOID outpl(ULONG,ULONG); #ifdef UX_SYSTEM_INIT CHAR _ux_version_id[] = - "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX Cortex-R5/GNU Version 6.5.0.202601 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX Cortex-R5/GNU Version 6.5.1.202602 *"; #else extern CHAR _ux_version_id[]; #endif diff --git a/ports/cortex_r5/iar/inc/ux_port.h b/ports/cortex_r5/iar/inc/ux_port.h index 2b71cf97e..9cb3c8fdc 100644 --- a/ports/cortex_r5/iar/inc/ux_port.h +++ b/ports/cortex_r5/iar/inc/ux_port.h @@ -248,7 +248,7 @@ VOID outpl(ULONG,ULONG); #ifdef UX_SYSTEM_INIT CHAR _ux_version_id[] = - "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX Cortex-R5/IAR Version 6.5.0.202601 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX Cortex-R5/IAR Version 6.5.1.202602 *"; #else extern CHAR _ux_version_id[]; #endif diff --git a/ports/generic/inc/ux_port.h b/ports/generic/inc/ux_port.h index cb271d23e..b5fc50354 100644 --- a/ports/generic/inc/ux_port.h +++ b/ports/generic/inc/ux_port.h @@ -247,7 +247,7 @@ VOID outpl(ULONG,ULONG); #ifdef UX_SYSTEM_INIT CHAR _ux_version_id[] = - "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX Generic Version 6.5.0.202601 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX Generic Version 6.5.1.202602 *"; #else extern CHAR _ux_version_id[]; #endif diff --git a/ports/linux/gnu/inc/ux_port.h b/ports/linux/gnu/inc/ux_port.h index 369b85b33..8045a3116 100644 --- a/ports/linux/gnu/inc/ux_port.h +++ b/ports/linux/gnu/inc/ux_port.h @@ -249,7 +249,7 @@ ULONG outpl(ULONG,ULONG); #ifdef UX_SYSTEM_INIT CHAR _ux_version_id[] = - "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX Linux/GNU Version 6.5.0.202601 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX Linux/GNU Version 6.5.1.202602 *"; #else extern CHAR _ux_version_id[]; #endif diff --git a/ports/rxv1/gnu/inc/ux_port.h b/ports/rxv1/gnu/inc/ux_port.h index a7de8c381..e6fb74eea 100644 --- a/ports/rxv1/gnu/inc/ux_port.h +++ b/ports/rxv1/gnu/inc/ux_port.h @@ -239,7 +239,7 @@ VOID outpl(ULONG,ULONG); #ifdef UX_SYSTEM_INIT CHAR _ux_version_id[] = - "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX RXv1/GNU Version 6.5.0.202601 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX RXv1/GNU Version 6.5.1.202602 *"; #else extern CHAR _ux_version_id[]; #endif diff --git a/ports/rxv2/gnu/inc/ux_port.h b/ports/rxv2/gnu/inc/ux_port.h index 7b069380f..4cfae9900 100644 --- a/ports/rxv2/gnu/inc/ux_port.h +++ b/ports/rxv2/gnu/inc/ux_port.h @@ -239,7 +239,7 @@ VOID outpl(ULONG,ULONG); #ifdef UX_SYSTEM_INIT CHAR _ux_version_id[] = - "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX RXv2/GNU Version 6.5.0.202601 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX RXv2/GNU Version 6.5.1.202602 *"; #else extern CHAR _ux_version_id[]; #endif diff --git a/ports/rxv3/gnu/inc/ux_port.h b/ports/rxv3/gnu/inc/ux_port.h index 9ec488486..fe8294e2b 100644 --- a/ports/rxv3/gnu/inc/ux_port.h +++ b/ports/rxv3/gnu/inc/ux_port.h @@ -239,7 +239,7 @@ VOID outpl(ULONG,ULONG); #ifdef UX_SYSTEM_INIT CHAR _ux_version_id[] = - "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX RXv3/GNU Version 6.5.0.202601 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * USBX RXv3/GNU Version 6.5.1.202602 *"; #else extern CHAR _ux_version_id[]; #endif From d0d46fd2418f3c1f9a29aeb8b3e3af53cb773dbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Desbiens?= Date: Sat, 6 Jun 2026 21:42:48 +0200 Subject: [PATCH 11/11] Added copyright headers to files missing them Applied the standard MIT license header to all project-owned C, header, assembly, shell, and Python files that were missing a copyright notice. Third-party, toolchain startup, and auto-generated files were excluded. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- samples/demo_usbx.c | 11 +++++++++++ scripts/build.sh | 11 +++++++++++ scripts/install.sh | 11 +++++++++++ scripts/test.sh | 11 +++++++++++ test/regression/usbx_audio10_device_basic_test.c | 11 +++++++++++ test/regression/usbx_audio10_device_feedback_test.c | 11 +++++++++++ test/regression/usbx_audio10_iad_device_basic_test.c | 11 +++++++++++ .../regression/usbx_audio10_iad_device_control_test.c | 11 +++++++++++ .../usbx_audio10_iad_device_interrupt_test.c | 11 +++++++++++ test/regression/usbx_audio10_iad_host_basic_test.c | 11 +++++++++++ test/regression/usbx_audio20_device_basic_test.c | 11 +++++++++++ test/regression/usbx_audio20_device_controls_test.c | 11 +++++++++++ test/regression/usbx_audio20_device_feedback_test.c | 11 +++++++++++ test/regression/usbx_audio20_host_basic_test.c | 11 +++++++++++ ...owered_hub_conn_to_self_and_bus_powered_hub_test.c | 11 +++++++++++ test/regression/usbx_cdc_acm_basic_memory_test.c | 11 +++++++++++ test/regression/usbx_cdc_acm_basic_test.c | 11 +++++++++++ test/regression/usbx_cdc_acm_configure_test.c | 11 +++++++++++ ..._cdc_acm_device_dtr_rts_reset_on_disconnect_test.c | 11 +++++++++++ ...bx_cdc_ecm_alternate_setting_change_to_zero_test.c | 11 +++++++++++ test/regression/usbx_cdc_ecm_basic_ipv6_test.c | 11 +++++++++++ test/regression/usbx_cdc_ecm_basic_memory_test.c | 11 +++++++++++ test/regression/usbx_cdc_ecm_basic_test.c | 11 +++++++++++ ...ecm_control_interface_no_interrupt_endpoint_test.c | 11 +++++++++++ ...cm_data_iface_non_bulko_and_non_bulki_endpt_test.c | 11 +++++++++++ ..._cdc_ecm_data_interface_no_bulk_in_endpoint_test.c | 11 +++++++++++ ...cdc_ecm_data_interface_no_bulk_out_endpoint_test.c | 11 +++++++++++ ...cdc_ecm_data_interface_setting_select_fails_test.c | 11 +++++++++++ ...fault_data_interface_setting_with_endpoints_test.c | 11 +++++++++++ .../usbx_cdc_ecm_disconnect_and_reconnect_test.c | 11 +++++++++++ ..._cdc_ecm_host_bulk_in_semaphore_create_fail_test.c | 11 +++++++++++ ...t_bulk_in_transfer_arming_during_deactivate_test.c | 11 +++++++++++ ...st_bulk_in_transfer_arming_during_link_down_test.c | 11 +++++++++++ .../usbx_cdc_ecm_host_bulk_in_transfer_fail_test.c | 11 +++++++++++ ...cdc_ecm_host_bulk_out_semaphore_create_fail_test.c | 11 +++++++++++ .../usbx_cdc_ecm_host_bulk_out_transfer_fail_test.c | 11 +++++++++++ ...ost_bulki_arm_err_dueto_link_dn_thread_wait_test.c | 11 +++++++++++ ...m_host_bulko_transfer_arming_during_link_dn_test.c | 11 +++++++++++ ..._cdc_ecm_host_first_interrupt_transfer_fail_test.c | 11 +++++++++++ ...host_int_notification_semaphore_create_fail_test.c | 11 +++++++++++ .../usbx_cdc_ecm_host_non_ip_packet_received_test.c | 11 +++++++++++ .../usbx_cdc_ecm_host_packet_pool_create_fail_test.c | 11 +++++++++++ .../usbx_cdc_ecm_host_thread_create_fail_test.c | 11 +++++++++++ ...c_ecm_host_thread_link_down_before_transfer_test.c | 11 +++++++++++ ...bx_cdc_ecm_host_thread_packet_allocate_fail_test.c | 11 +++++++++++ ...usbx_cdc_ecm_host_thread_packet_append_fail_test.c | 11 +++++++++++ ..._cdc_ecm_interface_before_control_interface_test.c | 11 +++++++++++ ...lid_alt_setting_after_zero_endpt_data_iface_test.c | 11 +++++++++++ ...x_cdc_ecm_link_down_while_ongoing_transfers_test.c | 11 +++++++++++ .../usbx_cdc_ecm_mac_address_invalid_length_test.c | 11 +++++++++++ test/regression/usbx_cdc_ecm_mac_address_test.c | 11 +++++++++++ .../usbx_cdc_ecm_no_control_interface_test.c | 11 +++++++++++ .../usbx_cdc_ecm_no_functional_descriptor_test.c | 11 +++++++++++ ..._non_data_iface_after_zero_endpt_data_iface_test.c | 11 +++++++++++ test/regression/usbx_cdc_ecm_nx_packet_chain_test.c | 11 +++++++++++ ...dc_ecm_one_data_interface_with_no_endpoints_test.c | 11 +++++++++++ test/regression/usbx_class_device_enumeration_test.c | 11 +++++++++++ test/regression/usbx_class_hid_basic_memory_test.c | 11 +++++++++++ test/regression/usbx_class_hid_basic_test.c | 11 +++++++++++ test/regression/usbx_class_hid_keyboard_basic_test.c | 11 +++++++++++ test/regression/usbx_class_hid_mouse_basic_test.c | 11 +++++++++++ .../usbx_class_hid_remote_control_basic_test.c | 11 +++++++++++ .../usbx_class_interface_enumeration_test.c | 11 +++++++++++ .../usbx_class_multi_interface_enumeration_test.c | 11 +++++++++++ test/regression/usbx_class_printer_basic_tests.c | 11 +++++++++++ ...usbx_class_printer_device_standalone_basic_tests.c | 11 +++++++++++ test/regression/usbx_control_transfer_stall_test.c | 11 +++++++++++ test/regression/usbx_device_class_ccid_basic_tests.c | 11 +++++++++++ .../usbx_device_class_ccid_busy_abort_tests.c | 11 +++++++++++ test/regression/usbx_device_dfu_basic_test.c | 11 +++++++++++ test/regression/usbx_dpump_basic_test.c | 11 +++++++++++ .../usbx_hid_interrupt_endpoint_get_report_test.c | 11 +++++++++++ test/regression/usbx_hid_keyboard_basic_test.c | 11 +++++++++++ test/regression/usbx_hid_keyboard_extraction_test.c | 11 +++++++++++ test/regression/usbx_hid_keyboard_extraction_test2.c | 11 +++++++++++ test/regression/usbx_hid_keyboard_key_get_test.c | 11 +++++++++++ test/regression/usbx_hid_keyboard_key_test.c | 11 +++++++++++ .../usbx_hid_keyboard_key_with_report_id_test.c | 11 +++++++++++ test/regression/usbx_hid_mouse_basic_test.c | 11 +++++++++++ test/regression/usbx_hid_mouse_extraction_test.c | 11 +++++++++++ test/regression/usbx_hid_mouse_extraction_test2.c | 11 +++++++++++ .../usbx_hid_remote_control_extraction_test.c | 11 +++++++++++ .../usbx_hid_remote_control_extraction_test2.c | 11 +++++++++++ test/regression/usbx_hid_remote_control_tests.c | 11 +++++++++++ ...x_hid_report_descriptor_collection_overflow_test.c | 11 +++++++++++ ...d_report_descriptor_compress_and_decompress_test.c | 11 +++++++++++ .../usbx_hid_report_descriptor_compress_array_test.c | 11 +++++++++++ .../usbx_hid_report_descriptor_compress_test.c | 11 +++++++++++ ...usbx_hid_report_descriptor_decompress_array_test.c | 11 +++++++++++ .../usbx_hid_report_descriptor_decompress_test.c | 11 +++++++++++ ...id_report_descriptor_delimiter_nested_close_test.c | 11 +++++++++++ ...hid_report_descriptor_delimiter_nested_open_test.c | 11 +++++++++++ .../usbx_hid_report_descriptor_delimiter_test.c | 11 +++++++++++ ...sbx_hid_report_descriptor_delimiter_unknown_test.c | 11 +++++++++++ ..._hid_report_descriptor_end_collection_error_test.c | 11 +++++++++++ ...sbx_hid_report_descriptor_example_andisplay_test.c | 11 +++++++++++ .../usbx_hid_report_descriptor_example_delimit_test.c | 11 +++++++++++ .../usbx_hid_report_descriptor_example_digit_test.c | 11 +++++++++++ .../usbx_hid_report_descriptor_example_display_test.c | 11 +++++++++++ .../usbx_hid_report_descriptor_example_joystk_test.c | 11 +++++++++++ .../usbx_hid_report_descriptor_example_keybrd_test.c | 11 +++++++++++ .../usbx_hid_report_descriptor_example_monitor_test.c | 11 +++++++++++ .../usbx_hid_report_descriptor_example_mouse_test.c | 11 +++++++++++ .../usbx_hid_report_descriptor_example_pwr_test.c | 11 +++++++++++ .../usbx_hid_report_descriptor_example_remote_test.c | 11 +++++++++++ .../usbx_hid_report_descriptor_example_tele_test.c | 11 +++++++++++ .../usbx_hid_report_descriptor_extended_usages_test.c | 11 +++++++++++ ...report_descriptor_get_zero_length_item_data_test.c | 11 +++++++++++ ...x_hid_report_descriptor_global_item_persist_test.c | 11 +++++++++++ .../usbx_hid_report_descriptor_global_item_test.c | 11 +++++++++++ ..._report_descriptor_incoherent_usage_min_max_test.c | 11 +++++++++++ .../usbx_hid_report_descriptor_invalid_item_test.c | 11 +++++++++++ .../usbx_hid_report_descriptor_invalid_length_test.c | 11 +++++++++++ .../usbx_hid_report_descriptor_item_size_test.c | 11 +++++++++++ .../usbx_hid_report_descriptor_max_usages_test.c | 11 +++++++++++ ..._hid_report_descriptor_multiple_collections_test.c | 11 +++++++++++ ...port_descriptor_multiple_fields_and_reports_test.c | 11 +++++++++++ .../usbx_hid_report_descriptor_multiple_fields_test.c | 11 +++++++++++ ..._report_descriptor_multiple_reports_feature_test.c | 11 +++++++++++ ...id_report_descriptor_multiple_reports_input_test.c | 11 +++++++++++ ...d_report_descriptor_multiple_reports_output_test.c | 11 +++++++++++ .../usbx_hid_report_descriptor_pop_underflow_test.c | 11 +++++++++++ .../usbx_hid_report_descriptor_previous_report_test.c | 11 +++++++++++ .../usbx_hid_report_descriptor_push_overflow_test.c | 11 +++++++++++ .../usbx_hid_report_descriptor_push_pop_test.c | 11 +++++++++++ ...hid_report_descriptor_report_count_overflow_test.c | 11 +++++++++++ ..._hid_report_descriptor_report_size_overflow_test.c | 11 +++++++++++ ...eport_descriptor_single_usage_multiple_data_test.c | 11 +++++++++++ ...bx_hid_report_descriptor_unknown_global_tag_test.c | 11 +++++++++++ ...sbx_hid_report_descriptor_unknown_local_tag_test.c | 11 +++++++++++ .../usbx_hid_report_descriptor_usages_min_max_test.c | 11 +++++++++++ .../usbx_hid_report_descriptor_usages_overflow_test.c | 11 +++++++++++ ...d_report_descriptor_usages_overflow_via_max_test.c | 11 +++++++++++ .../usbx_hid_report_descriptor_usages_single_test.c | 11 +++++++++++ .../usbx_hid_report_multiple_reports_ids_test.c | 11 +++++++++++ ...hid_transfer_request_completed_decompressed_test.c | 11 +++++++++++ .../usbx_hid_transfer_request_completed_raw_test.c | 11 +++++++++++ .../usbx_hid_transfer_request_completed_test.c | 11 +++++++++++ ...hub_port_change_connection_process_coverage_test.c | 11 +++++++++++ .../usbx_host_class_storage_entry_coverage_test.c | 11 +++++++++++ ...sbx_host_class_storage_max_lun_get_coverage_test.c | 11 +++++++++++ .../usbx_host_stack_class_unregister_coverage_test.c | 11 +++++++++++ ...sbx_host_stack_new_endpoint_create_coverage_test.c | 11 +++++++++++ test/regression/usbx_hub_basic_memory_test.c | 11 +++++++++++ test/regression/usbx_hub_basic_test.c | 11 +++++++++++ test/regression/usbx_hub_full_speed_hub_device_test.c | 11 +++++++++++ test/regression/usbx_hub_full_speed_hub_test.c | 11 +++++++++++ ...get_hub_status_fails_during_hub_device_enum_test.c | 11 +++++++++++ ..._hub_get_hub_status_fails_during_port_reset_test.c | 11 +++++++++++ ...et_port_status_fails_during_hub_device_enum_test.c | 11 +++++++++++ ...x_hub_get_status_fails_during_configuration_test.c | 11 +++++++++++ test/regression/usbx_hub_hub_device_connect_test.c | 11 +++++++++++ test/regression/usbx_hub_hub_device_disconnect_test.c | 11 +++++++++++ ...bx_hub_hub_device_enumeration_keeps_failing_test.c | 11 +++++++++++ .../usbx_hub_hub_status_get_invalid_length_test.c | 11 +++++++++++ .../regression/usbx_hub_interrupt_out_endpoint_test.c | 11 +++++++++++ .../usbx_hub_invalid_device_protocol_test.c | 11 +++++++++++ .../usbx_hub_invalid_hub_descriptor_length_test.c | 11 +++++++++++ test/regression/usbx_hub_low_speed_hub_device_test.c | 11 +++++++++++ test/regression/usbx_hub_multiple_tt_test.c | 11 +++++++++++ .../usbx_hub_multiple_tt_too_many_hub_ports_test.c | 11 +++++++++++ test/regression/usbx_hub_no_endpoints_test.c | 11 +++++++++++ test/regression/usbx_hub_no_power_switching_test.c | 11 +++++++++++ .../usbx_hub_non_interrupt_in_endpoint_test.c | 11 +++++++++++ test/regression/usbx_hub_port_change_enable_test.c | 11 +++++++++++ .../usbx_hub_port_change_over_current_test.c | 11 +++++++++++ test/regression/usbx_hub_port_change_reset_test.c | 11 +++++++++++ test/regression/usbx_hub_port_change_suspend_test.c | 11 +++++++++++ test/regression/usbx_hub_port_never_reset_test.c | 11 +++++++++++ ...hub_port_reset_fails_during_hub_device_enum_test.c | 11 +++++++++++ .../usbx_hub_quick_hub_device_disconnection_test.c | 11 +++++++++++ .../usbx_hub_quick_hub_device_reconnection_test.c | 11 +++++++++++ test/regression/usbx_hub_request_to_hub_itself_test.c | 11 +++++++++++ .../usbx_hub_single_tt_too_many_hub_ports_test.c | 11 +++++++++++ test/regression/usbx_msrc_66679_test.c | 11 +++++++++++ test/regression/usbx_msrc_69702_dfu_dnload_test.c | 11 +++++++++++ test/regression/usbx_msrc_71934_dfu_upload_test.c | 11 +++++++++++ test/regression/usbx_msrc_72227_host_pima_read_test.c | 11 +++++++++++ test/regression/usbx_msrc_72427_ecm_host_mac_test.c | 11 +++++++++++ .../usbx_msrc_72525_host_pima_obj_handles_get_test.c | 11 +++++++++++ .../usbx_msrc_72526_pictbridge_dps_host_start_test.c | 11 +++++++++++ .../usbx_msrc_72619_host_pima_stor_ids_get_test.c | 11 +++++++++++ ...x_msrc_73386_host_storage_media_open_buffer_test.c | 11 +++++++++++ .../regression/usbx_msrc_73492_host_vc_header_parse.c | 11 +++++++++++ .../usbx_msrc_73716_cdc_ecm_mac_get_desc_check.c | 11 +++++++++++ ...msrc_80947_device_cdc_ecm_rx_length_less_than_14.c | 11 +++++++++++ ...c_80991_device_rndis_rx_length_less_than_14_test.c | 11 +++++++++++ ...x_msrc_81024_host_cdc_ecm_rx_length_less_than_14.c | 11 +++++++++++ .../usbx_msrc_81108_pictbridge_object_parse_test.c | 11 +++++++++++ ...msrc_81109_pictbridge_array_element_to_hexa_test.c | 11 +++++++++++ ...usbx_msrc_81112_host_cdc_ecm_endpoints_get_tests.c | 11 +++++++++++ ...usbx_msrc_81142_host_storage_endpoints_get_tests.c | 11 +++++++++++ ...usbx_msrc_81143_host_cdc_acm_endpoints_get_tests.c | 11 +++++++++++ .../usbx_msrc_81184_host_audio_desc_validate_test.c | 11 +++++++++++ ...x_msrc_81206_81225_ecm_multiple_data_reject_test.c | 11 +++++++++++ .../usbx_msrc_81230_host_asix_inst_free_tests.c | 11 +++++++++++ .../usbx_msrc_81231_host_prolific_inst_free_tests.c | 11 +++++++++++ .../usbx_msrc_81232_host_gser_inst_free_tests.c | 11 +++++++++++ .../usbx_msrc_81233_host_swar_inst_free_tests.c | 11 +++++++++++ ...sbx_msrc_81251_host_hid_report_add_fail_mem_test.c | 11 +++++++++++ ...x_msrc_81292_host_pima_deactivate_semaphore_test.c | 11 +++++++++++ ...x_msrc_81323_host_pima_deactivate_no_int_ep_test.c | 11 +++++++++++ ...81325_host_hid_remote_control_free_callback_test.c | 11 +++++++++++ ..._msrc_81326_host_hid_keyboard_free_callback_test.c | 11 +++++++++++ ...sbx_msrc_81327_host_hid_mouse_free_callback_test.c | 11 +++++++++++ ...msrc_81426_host_audio_type_get_fail_ac_link_test.c | 11 +++++++++++ .../usbx_msrc_81428_81429_host_audio_ac_search_test.c | 11 +++++++++++ ...489_81570_host_cdc_acm_standalone_ac_search_test.c | 11 +++++++++++ ...standalone_host_printer_allocated_enum_free_test.c | 11 +++++++++++ ...573_standalone_host_hub_allocated_enum_free_test.c | 11 +++++++++++ ...574_standalone_host_hid_allocated_enum_free_test.c | 11 +++++++++++ ...standalone_host_cdc_acm_allocated_enum_free_test.c | 11 +++++++++++ ...1691_standalone_host_stack_enum_double_free_test.c | 11 +++++++++++ .../usbx_msrc_84686_host_pima_storage_info_get_test.c | 11 +++++++++++ test/regression/usbx_pictbridge_basic_test.c | 11 +++++++++++ test/regression/usbx_pima_basic_test.c | 11 +++++++++++ test/regression/usbx_rndis_basic_test.c | 11 +++++++++++ .../usbx_standalone_cdc_acm_basic_memory_test.c | 11 +++++++++++ test/regression/usbx_standalone_cdc_acm_basic_test.c | 11 +++++++++++ ...usbx_standalone_device_cdc_acm_basic_memory_test.c | 11 +++++++++++ .../usbx_standalone_device_cdc_acm_basic_test.c | 11 +++++++++++ ...usbx_standalone_device_cdc_acm_transmission_test.c | 11 +++++++++++ .../usbx_standalone_device_storage_basic_test.c | 11 +++++++++++ .../usbx_standalone_device_storage_error_cv_test.c | 11 +++++++++++ .../usbx_standalone_device_storage_read_write_test.c | 11 +++++++++++ .../usbx_standalone_host_storage_basic_test.c | 11 +++++++++++ .../usbx_standalone_host_storage_insert_eject_test.c | 11 +++++++++++ .../usbx_standalone_host_storage_read_write_test.c | 11 +++++++++++ test/regression/usbx_storage_basic_memory_test.c | 11 +++++++++++ test/regression/usbx_storage_direct_calls_test.c | 11 +++++++++++ test/regression/usbx_storage_multi_lun_test.c | 11 +++++++++++ test/regression/usbx_storage_tests.c | 11 +++++++++++ test/regression/usbx_test_USBX_141_keyboard_layout.c | 11 +++++++++++ test/regression/usbx_test_USBX_142_DTR_callback.c | 11 +++++++++++ test/regression/usbx_test_USBX_6_ux_version_id.c | 11 +++++++++++ test/regression/usbx_test_common.h | 11 +++++++++++ test/regression/usbx_test_common_hid.h | 11 +++++++++++ test/regression/usbx_test_common_storage.h | 11 +++++++++++ test/regression/usbx_ux_api_tracex_id_test.c | 11 +++++++++++ .../usbx_ux_device_class_cdc_acm_activate_test.c | 11 +++++++++++ ...usbx_ux_device_class_cdc_acm_bulkout_thread_test.c | 11 +++++++++++ .../usbx_ux_device_class_cdc_acm_deactivate_test.c | 11 +++++++++++ .../usbx_ux_device_class_cdc_acm_ioctl_test.c | 11 +++++++++++ .../usbx_ux_device_class_cdc_acm_timeout_test.c | 11 +++++++++++ .../usbx_ux_device_class_cdc_acm_transmission_test.c | 11 +++++++++++ .../usbx_ux_device_class_cdc_acm_write_test.c | 11 +++++++++++ .../usbx_ux_device_class_cdc_ecm_activate_test.c | 11 +++++++++++ .../usbx_ux_device_class_cdc_ecm_bulkin_thread_test.c | 11 +++++++++++ ...usbx_ux_device_class_cdc_ecm_bulkout_thread_test.c | 11 +++++++++++ .../usbx_ux_device_class_cdc_ecm_change_test.c | 11 +++++++++++ ...sbx_ux_device_class_cdc_ecm_control_request_test.c | 11 +++++++++++ .../usbx_ux_device_class_cdc_ecm_deactivate_test.c | 11 +++++++++++ .../usbx_ux_device_class_cdc_ecm_entry_test.c | 11 +++++++++++ .../usbx_ux_device_class_cdc_ecm_initialize_test.c | 11 +++++++++++ ...bx_ux_device_class_cdc_ecm_interrupt_thread_test.c | 11 +++++++++++ .../usbx_ux_device_class_cdc_ecm_uninitialize_test.c | 11 +++++++++++ .../usbx_ux_device_class_hid_activate_test.c | 11 +++++++++++ .../usbx_ux_device_class_hid_activate_test2.c | 11 +++++++++++ .../usbx_ux_device_class_hid_activate_test3.c | 11 +++++++++++ .../usbx_ux_device_class_hid_basic_memory_test.c | 11 +++++++++++ .../usbx_ux_device_class_hid_control_request_test.c | 11 +++++++++++ .../usbx_ux_device_class_hid_deactivate_test.c | 11 +++++++++++ .../usbx_ux_device_class_hid_descriptor_send_test.c | 11 +++++++++++ test/regression/usbx_ux_device_class_hid_entry_test.c | 11 +++++++++++ .../usbx_ux_device_class_hid_event_get_AND_set_test.c | 11 +++++++++++ .../usbx_ux_device_class_hid_idle_rate_test.c | 11 +++++++++++ .../usbx_ux_device_class_hid_initialize_test.c | 11 +++++++++++ .../usbx_ux_device_class_hid_interrupt_thread_test.c | 11 +++++++++++ .../usbx_ux_device_class_hid_interrupt_thread_test2.c | 11 +++++++++++ test/regression/usbx_ux_device_class_hid_read_test.c | 11 +++++++++++ .../usbx_ux_device_class_hid_receiver_memory_test.c | 11 +++++++++++ .../usbx_ux_device_class_hid_receiver_test.c | 11 +++++++++++ .../usbx_ux_device_class_hid_report_set_test.c | 11 +++++++++++ .../usbx_ux_device_class_hid_report_set_test2.c | 11 +++++++++++ .../regression/usbx_ux_device_class_hid_report_test.c | 11 +++++++++++ ...x_ux_device_class_hid_set_protocol_callback_test.c | 11 +++++++++++ .../usbx_ux_device_class_hid_uninitialize_test.c | 11 +++++++++++ .../usbx_ux_device_class_hid_wMaxPacketSize_test.c | 11 +++++++++++ ...sbx_ux_device_class_storage_control_request_test.c | 11 +++++++++++ .../usbx_ux_device_class_storage_entry_test.c | 11 +++++++++++ .../usbx_ux_device_class_storage_format_test.c | 11 +++++++++++ .../usbx_ux_device_class_storage_initialize_test.c | 11 +++++++++++ .../usbx_ux_device_class_storage_inquiry_test.c | 11 +++++++++++ .../usbx_ux_device_class_storage_invalid_lun_test.c | 11 +++++++++++ ...bx_ux_device_class_storage_media_start_stop_test.c | 11 +++++++++++ .../usbx_ux_device_class_storage_mode_select_test.c | 11 +++++++++++ .../usbx_ux_device_class_storage_mode_sense_test.c | 11 +++++++++++ ...e_class_storage_prevent_allow_media_removal_test.c | 11 +++++++++++ .../usbx_ux_device_class_storage_read_test.c | 11 +++++++++++ ...device_class_storage_request_sense_coverage_test.c | 11 +++++++++++ .../usbx_ux_device_class_storage_request_sense_test.c | 11 +++++++++++ .../usbx_ux_device_class_storage_start_stop_test.c | 11 +++++++++++ ...x_ux_device_class_storage_synchronize_cache_test.c | 11 +++++++++++ .../usbx_ux_device_class_storage_test_ready_test.c | 11 +++++++++++ .../usbx_ux_device_class_storage_thread_test.c | 11 +++++++++++ .../usbx_ux_device_class_storage_uninitialize_test.c | 11 +++++++++++ ...usbx_ux_device_class_storage_vendor_strings_test.c | 11 +++++++++++ .../usbx_ux_device_class_storage_verify_test.c | 11 +++++++++++ .../usbx_ux_device_class_storage_write_test.c | 11 +++++++++++ .../usbx_ux_device_class_video_basic_tests.c | 11 +++++++++++ .../usbx_ux_device_stack_alternate_setting_get_test.c | 11 +++++++++++ .../usbx_ux_device_stack_alternate_setting_set_test.c | 11 +++++++++++ test/regression/usbx_ux_device_stack_bos_test.c | 11 +++++++++++ .../usbx_ux_device_stack_class_control_request_test.c | 11 +++++++++++ .../usbx_ux_device_stack_class_register_test.c | 11 +++++++++++ .../usbx_ux_device_stack_class_unregister_test.c | 11 +++++++++++ ...usbx_ux_device_stack_clear_feature_coverage_test.c | 11 +++++++++++ .../usbx_ux_device_stack_configuration_set_test.c | 11 +++++++++++ ...vice_stack_control_request_process_coverage_test.c | 11 +++++++++++ ...sbx_ux_device_stack_control_request_process_test.c | 11 +++++++++++ .../usbx_ux_device_stack_descriptor_send_test.c | 11 +++++++++++ .../usbx_ux_device_stack_endpoint_stall_test.c | 11 +++++++++++ .../regression/usbx_ux_device_stack_get_status_test.c | 11 +++++++++++ .../regression/usbx_ux_device_stack_initialize_test.c | 11 +++++++++++ .../usbx_ux_device_stack_interface_delete_test.c | 11 +++++++++++ .../usbx_ux_device_stack_interface_set_test.c | 11 +++++++++++ .../usbx_ux_device_stack_interface_start_test.c | 11 +++++++++++ .../usbx_ux_device_stack_remote_wakeup_test.c | 11 +++++++++++ .../usbx_ux_device_stack_set_feature_test.c | 11 +++++++++++ .../usbx_ux_device_stack_standard_request_tests.c | 11 +++++++++++ .../usbx_ux_device_stack_transfer_request_test.c | 11 +++++++++++ .../usbx_ux_device_stack_vendor_request_test.c | 11 +++++++++++ test/regression/usbx_ux_host_basic_memory_tests.c | 11 +++++++++++ .../usbx_ux_host_class_cdc_acm_activate_test.c | 11 +++++++++++ ...usbx_ux_host_class_cdc_acm_capabilities_get_test.c | 11 +++++++++++ .../usbx_ux_host_class_cdc_acm_deactivate_test.c | 11 +++++++++++ .../usbx_ux_host_class_cdc_acm_endpoints_get_test.c | 11 +++++++++++ .../usbx_ux_host_class_cdc_acm_entry_test.c | 11 +++++++++++ .../regression/usbx_ux_host_class_cdc_acm_read_test.c | 11 +++++++++++ ...st_class_cdc_acm_transfer_request_completed_test.c | 11 +++++++++++ .../usbx_ux_host_class_cdc_acm_write_test.c | 11 +++++++++++ .../usbx_ux_host_class_cdc_ecm_activate_test.c | 11 +++++++++++ .../usbx_ux_host_class_cdc_ecm_entry_test.c | 11 +++++++++++ ...x_host_class_cdc_ecm_interrupt_notification_test.c | 11 +++++++++++ .../usbx_ux_host_class_cdc_ecm_mac_address_get_test.c | 11 +++++++++++ ...ux_host_class_cdc_ecm_transmission_callback_test.c | 11 +++++++++++ .../usbx_ux_host_class_cdc_ecm_write_test.c | 11 +++++++++++ .../regression/usbx_ux_host_class_hid_activate_test.c | 11 +++++++++++ .../usbx_ux_host_class_hid_client_register_test.c | 11 +++++++++++ .../usbx_ux_host_class_hid_client_register_test2.c | 11 +++++++++++ .../usbx_ux_host_class_hid_client_search_test.c | 11 +++++++++++ .../usbx_ux_host_class_hid_configure_test.c | 11 +++++++++++ .../usbx_ux_host_class_hid_deactivate_test.c | 11 +++++++++++ .../usbx_ux_host_class_hid_deactivate_test2.c | 11 +++++++++++ .../usbx_ux_host_class_hid_deactivate_test3.c | 11 +++++++++++ ...ux_host_class_hid_descriptor_parse_coverage_test.c | 11 +++++++++++ .../usbx_ux_host_class_hid_descriptor_parse_test.c | 11 +++++++++++ .../usbx_ux_host_class_hid_descriptor_parse_test2.c | 11 +++++++++++ .../usbx_ux_host_class_hid_descriptor_parse_test3.c | 11 +++++++++++ .../usbx_ux_host_class_hid_descriptor_parse_test4.c | 11 +++++++++++ .../usbx_ux_host_class_hid_descriptor_parse_test5.c | 11 +++++++++++ .../usbx_ux_host_class_hid_descriptor_parse_test6.c | 11 +++++++++++ .../usbx_ux_host_class_hid_descriptor_parse_test7.c | 11 +++++++++++ test/regression/usbx_ux_host_class_hid_entry_test.c | 11 +++++++++++ .../regression/usbx_ux_host_class_hid_idle_get_test.c | 11 +++++++++++ .../regression/usbx_ux_host_class_hid_idle_set_test.c | 11 +++++++++++ ...class_hid_interrupt_endpoint_search_int_out_test.c | 11 +++++++++++ ...ux_host_class_hid_interrupt_endpoint_search_test.c | 11 +++++++++++ ...x_host_class_hid_interrupt_endpoint_search_test2.c | 11 +++++++++++ .../usbx_ux_host_class_hid_keyboard_activate_test.c | 11 +++++++++++ .../usbx_ux_host_class_hid_keyboard_callback_test.c | 11 +++++++++++ .../usbx_ux_host_class_hid_keyboard_callback_test2.c | 11 +++++++++++ .../usbx_ux_host_class_hid_keyboard_entry_test.c | 11 +++++++++++ .../usbx_ux_host_class_hid_keyboard_ioctl_test.c | 11 +++++++++++ .../usbx_ux_host_class_hid_keyboard_thread_test.c | 11 +++++++++++ .../usbx_ux_host_class_hid_keyboard_thread_test2.c | 11 +++++++++++ .../usbx_ux_host_class_hid_local_item_parse_test.c | 11 +++++++++++ ...ux_host_class_hid_logitech_pro_x_superlight_test.c | 11 +++++++++++ .../usbx_ux_host_class_hid_main_item_parse_test.c | 11 +++++++++++ .../usbx_ux_host_class_hid_main_item_parse_test2.c | 11 +++++++++++ .../usbx_ux_host_class_hid_mouse_activate_test.c | 11 +++++++++++ .../usbx_ux_host_class_hid_mouse_buttons_get_test.c | 11 +++++++++++ .../usbx_ux_host_class_hid_mouse_entry_test.c | 11 +++++++++++ .../usbx_ux_host_class_hid_mouse_entry_test2.c | 11 +++++++++++ .../usbx_ux_host_class_hid_mouse_entry_test3.c | 11 +++++++++++ .../usbx_ux_host_class_hid_mouse_positions_get_test.c | 11 +++++++++++ .../usbx_ux_host_class_hid_mouse_wheel_get_test.c | 11 +++++++++++ ...sbx_ux_host_class_hid_periodic_report_start_test.c | 11 +++++++++++ ...bx_ux_host_class_hid_periodic_report_start_test2.c | 11 +++++++++++ ...usbx_ux_host_class_hid_periodic_report_stop_test.c | 11 +++++++++++ ...x_ux_host_class_hid_remote_control_activate_test.c | 11 +++++++++++ ..._ux_host_class_hid_remote_control_activate_test2.c | 11 +++++++++++ ...x_ux_host_class_hid_remote_control_callback_test.c | 11 +++++++++++ ...usbx_ux_host_class_hid_remote_control_entry_test.c | 11 +++++++++++ ...sbx_ux_host_class_hid_remote_control_entry_test2.c | 11 +++++++++++ ...sbx_ux_host_class_hid_remote_control_entry_test3.c | 11 +++++++++++ ..._ux_host_class_hid_remote_control_usage_get_test.c | 11 +++++++++++ .../usbx_ux_host_class_hid_report_add_test.c | 11 +++++++++++ ..._ux_host_class_hid_report_callback_register_test.c | 11 +++++++++++ ...sbx_ux_host_class_hid_report_descriptor_get_test.c | 11 +++++++++++ ...bx_ux_host_class_hid_report_descriptor_get_test2.c | 11 +++++++++++ ...bx_ux_host_class_hid_report_descriptor_get_test3.c | 11 +++++++++++ ...bx_ux_host_class_hid_report_descriptor_get_test4.c | 11 +++++++++++ .../usbx_ux_host_class_hid_report_get_test.c | 11 +++++++++++ .../usbx_ux_host_class_hid_report_get_test2.c | 11 +++++++++++ .../usbx_ux_host_class_hid_report_id_get_test.c | 11 +++++++++++ .../usbx_ux_host_class_hid_report_set_int_out_test.c | 11 +++++++++++ .../usbx_ux_host_class_hid_report_set_test.c | 11 +++++++++++ ...x_host_class_hid_transfer_request_completed_test.c | 11 +++++++++++ ...x_ux_host_class_hub_descriptor_get_coverage_test.c | 11 +++++++++++ test/regression/usbx_ux_host_class_hub_entry_test.c | 11 +++++++++++ .../usbx_ux_host_class_hub_status_get_test.c | 11 +++++++++++ ...x_host_class_hub_transfer_request_completed_test.c | 11 +++++++++++ .../usbx_ux_host_class_printer_basic_tests.c | 11 +++++++++++ .../usbx_ux_host_class_storage_activate_test.c | 11 +++++++++++ ...bx_ux_host_class_storage_configure_coverage_test.c | 11 +++++++++++ .../usbx_ux_host_class_storage_configure_test.c | 11 +++++++++++ ...sbx_ux_host_class_storage_device_initialize_test.c | 11 +++++++++++ ..._ux_host_class_storage_device_support_check_test.c | 11 +++++++++++ .../usbx_ux_host_class_storage_driver_entry_test.c | 11 +++++++++++ .../usbx_ux_host_class_storage_entry_test.c | 11 +++++++++++ .../usbx_ux_host_class_storage_fats_exfat_test.c | 11 +++++++++++ .../regression/usbx_ux_host_class_storage_fx_driver.c | 11 +++++++++++ .../usbx_ux_host_class_storage_max_lun_get_test.c | 11 +++++++++++ ...bx_ux_host_class_storage_media_capacity_get_test.c | 11 +++++++++++ .../usbx_ux_host_class_storage_media_get_test.c | 11 +++++++++++ .../usbx_ux_host_class_storage_media_mount_test.c | 11 +++++++++++ .../usbx_ux_host_class_storage_media_open_test.c | 11 +++++++++++ ...x_host_class_storage_media_protection_check_test.c | 11 +++++++++++ .../usbx_ux_host_class_storage_media_read_test.c | 11 +++++++++++ ...host_class_storage_media_recovery_sense_get_test.c | 11 +++++++++++ .../usbx_ux_host_class_storage_media_write_test.c | 11 +++++++++++ .../usbx_ux_host_class_storage_request_sense_test.c | 11 +++++++++++ .../usbx_ux_host_class_storage_start_stop_test.c | 11 +++++++++++ .../usbx_ux_host_class_storage_thread_entry_test.c | 11 +++++++++++ .../usbx_ux_host_class_storage_transport_bo_test.c | 11 +++++++++++ .../regression/usbx_ux_host_class_video_basic_tests.c | 11 +++++++++++ ...x_host_class_video_dwMaxPayloadTransferSize_test.c | 11 +++++++++++ ...usbx_ux_host_class_video_format_frame_based_test.c | 11 +++++++++++ .../usbx_ux_host_class_video_format_h264_test.c | 11 +++++++++++ .../usbx_ux_host_device_basic_memory_tests.c | 11 +++++++++++ test/regression/usbx_ux_host_device_basic_tests.c | 11 +++++++++++ .../regression/usbx_ux_host_device_initialize_tests.c | 11 +++++++++++ test/regression/usbx_ux_host_stack_bandwidth_test.c | 11 +++++++++++ .../usbx_ux_host_stack_class_device_scan_test.c | 11 +++++++++++ test/regression/usbx_ux_host_stack_class_get_test.c | 11 +++++++++++ .../usbx_ux_host_stack_class_instance_destroy_test.c | 11 +++++++++++ .../usbx_ux_host_stack_class_instance_get_test.c | 11 +++++++++++ .../usbx_ux_host_stack_class_instance_verify_test.c | 11 +++++++++++ .../usbx_ux_host_stack_class_interface_scan_test.c | 11 +++++++++++ .../usbx_ux_host_stack_class_register_test.c | 11 +++++++++++ .../usbx_ux_host_stack_class_unregister_test.c | 11 +++++++++++ ...x_host_stack_configuration_descriptor_parse_test.c | 11 +++++++++++ .../usbx_ux_host_stack_configuration_enumerate_test.c | 11 +++++++++++ ...ux_host_stack_configuration_instance_delete_test.c | 11 +++++++++++ ...x_ux_host_stack_configuration_interface_get_test.c | 11 +++++++++++ .../usbx_ux_host_stack_configuration_set_test.c | 11 +++++++++++ .../usbx_ux_host_stack_device_address_set_test.c | 11 +++++++++++ ...ux_host_stack_device_configuration_activate_test.c | 11 +++++++++++ ...usbx_ux_host_stack_device_configuration_get_test.c | 11 +++++++++++ ...t_stack_device_configuration_reset_coverage_test.c | 11 +++++++++++ ...ost_stack_device_configuration_reset_select_test.c | 11 +++++++++++ .../usbx_ux_host_stack_device_descriptor_read_test.c | 11 +++++++++++ test/regression/usbx_ux_host_stack_device_get_test.c | 11 +++++++++++ .../usbx_ux_host_stack_device_remove_test.c | 11 +++++++++++ .../usbx_ux_host_stack_device_string_get_test.c | 11 +++++++++++ ...usbx_ux_host_stack_endpoint_instance_create_test.c | 11 +++++++++++ .../usbx_ux_host_stack_endpoint_instance_test.c | 11 +++++++++++ .../usbx_ux_host_stack_endpoint_reset_test.c | 11 +++++++++++ .../usbx_ux_host_stack_enum_bMaxPacketSize0_test.c | 11 +++++++++++ .../usbx_ux_host_stack_enum_wMaxPacketSize_test.c | 11 +++++++++++ .../regression/usbx_ux_host_stack_hcd_register_test.c | 11 +++++++++++ .../usbx_ux_host_stack_hcd_thread_entry_test.c | 11 +++++++++++ .../usbx_ux_host_stack_hcd_transfer_request_test.c | 11 +++++++++++ .../usbx_ux_host_stack_hcd_unregister_test.c | 11 +++++++++++ .../usbx_ux_host_stack_interface_endpoint_get_test.c | 11 +++++++++++ ...usbx_ux_host_stack_interface_setting_select_test.c | 11 +++++++++++ .../usbx_ux_host_stack_interfaces_scan_test.c | 11 +++++++++++ ...usbx_ux_host_stack_new_configuration_create_test.c | 11 +++++++++++ .../usbx_ux_host_stack_new_device_create_test.c | 11 +++++++++++ .../usbx_ux_host_stack_new_device_get_test.c | 11 +++++++++++ .../usbx_ux_host_stack_new_interface_create_test.c | 11 +++++++++++ .../usbx_ux_host_stack_rh_change_process_test.c | 11 +++++++++++ .../usbx_ux_host_stack_rh_device_insertion_test.c | 11 +++++++++++ .../usbx_ux_host_stack_transfer_request_abort_test.c | 11 +++++++++++ .../usbx_ux_host_stack_transfer_request_test.c | 11 +++++++++++ .../regression/usbx_ux_host_stack_uninitialize_test.c | 11 +++++++++++ test/regression/usbx_ux_test_cdc_ecm.h | 11 +++++++++++ test/regression/usbx_ux_test_hub.h | 11 +++++++++++ .../usbx_ux_utility_basic_memory_management_test.c | 11 +++++++++++ .../regression/usbx_ux_utility_descriptor_pack_test.c | 11 +++++++++++ .../usbx_ux_utility_descriptor_parse_test.c | 11 +++++++++++ .../usbx_ux_utility_descriptor_struct_test.c | 11 +++++++++++ test/regression/usbx_ux_utility_event_flags_test.c | 11 +++++++++++ test/regression/usbx_ux_utility_memory_safe_test.c | 11 +++++++++++ test/regression/usbx_ux_utility_memory_test.c | 11 +++++++++++ test/regression/usbx_ux_utility_mutex_test.c | 11 +++++++++++ test/regression/usbx_ux_utility_pci_class_scan_test.c | 11 +++++++++++ test/regression/usbx_ux_utility_pci_read_test.c | 11 +++++++++++ test/regression/usbx_ux_utility_pci_write_test.c | 11 +++++++++++ .../usbx_ux_utility_physical_address_test.c | 11 +++++++++++ test/regression/usbx_ux_utility_semaphore_test.c | 11 +++++++++++ .../usbx_ux_utility_string_length_check_test.c | 11 +++++++++++ test/regression/usbx_ux_utility_thread_create_test.c | 11 +++++++++++ .../regression/usbx_ux_utility_thread_identify_test.c | 11 +++++++++++ .../usbx_ux_utility_thread_schedule_other_test.c | 11 +++++++++++ test/regression/usbx_ux_utility_thread_suspend_test.c | 11 +++++++++++ test/regression/usbx_ux_utility_time_elapsed_test.c | 11 +++++++++++ test/regression/usbx_ux_utility_timer_test.c | 11 +++++++++++ .../usbx_ux_utility_unicode_to_string_test.c | 11 +++++++++++ test/regression/usbx_uxe_device_audio_test.c | 11 +++++++++++ test/regression/usbx_uxe_device_ccid_test.c | 11 +++++++++++ test/regression/usbx_uxe_device_cdc_acm_test.c | 11 +++++++++++ test/regression/usbx_uxe_device_dfu_test.c | 11 +++++++++++ test/regression/usbx_uxe_device_hid_test.c | 11 +++++++++++ test/regression/usbx_uxe_device_pima_test.c | 11 +++++++++++ test/regression/usbx_uxe_device_printer_test.c | 11 +++++++++++ test/regression/usbx_uxe_device_stack_test.c | 11 +++++++++++ test/regression/usbx_uxe_device_storage_test.c | 11 +++++++++++ test/regression/usbx_uxe_device_video_test.c | 11 +++++++++++ test/regression/usbx_uxe_host_audio_test.c | 11 +++++++++++ test/regression/usbx_uxe_host_cdc_acm_test.c | 11 +++++++++++ test/regression/usbx_uxe_host_gser_test.c | 11 +++++++++++ test/regression/usbx_uxe_host_hid_test.c | 11 +++++++++++ test/regression/usbx_uxe_host_pima_test.c | 11 +++++++++++ test/regression/usbx_uxe_host_printer_test.c | 11 +++++++++++ test/regression/usbx_uxe_host_prolific_test.c | 11 +++++++++++ test/regression/usbx_uxe_host_stack_test.c | 11 +++++++++++ test/regression/usbx_uxe_host_storage_test.c | 11 +++++++++++ test/regression/usbx_uxe_host_swar_test.c | 11 +++++++++++ test/regression/usbx_uxe_host_video_test.c | 11 +++++++++++ test/regression/usbx_uxe_system_test.c | 11 +++++++++++ test/regression/usbxtestcontrol.c | 11 +++++++++++ test/regression/ux_device_class_dummy.c | 11 +++++++++++ test/regression/ux_device_class_dummy.h | 11 +++++++++++ test/regression/ux_device_class_dummy_hub.c | 11 +++++++++++ test/regression/ux_device_class_dummy_hub.h | 11 +++++++++++ test/regression/ux_device_class_dummy_printer.c | 11 +++++++++++ test/regression/ux_device_class_dummy_printer.h | 11 +++++++++++ test/regression/ux_host_class_dummy.c | 11 +++++++++++ test/regression/ux_host_class_dummy.h | 11 +++++++++++ test/regression/ux_test.c | 11 +++++++++++ test/regression/ux_test.h | 11 +++++++++++ test/regression/ux_test_actions.h | 11 +++++++++++ test/regression/ux_test_dcd_sim_slave.c | 11 +++++++++++ test/regression/ux_test_dcd_sim_slave.h | 11 +++++++++++ test/regression/ux_test_hcd_sim_host.c | 11 +++++++++++ test/regression/ux_test_hcd_sim_host.h | 11 +++++++++++ test/regression/ux_test_jpeg_image.h | 11 +++++++++++ test/regression/ux_test_race_condition_overrides.c | 11 +++++++++++ test/regression/ux_test_standalone_references.c | 11 +++++++++++ test/regression/ux_test_utility_sim.c | 11 +++++++++++ test/regression/ux_test_utility_sim.h | 11 +++++++++++ test/regression/ux_test_utility_sim_no_overriding.c | 11 +++++++++++ 544 files changed, 5984 insertions(+) diff --git a/samples/demo_usbx.c b/samples/demo_usbx.c index 9e73af42e..1b4ddaad7 100644 --- a/samples/demo_usbx.c +++ b/samples/demo_usbx.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This is a small demo of the USBX */ #include "ux_api.h" diff --git a/scripts/build.sh b/scripts/build.sh index 7fdbcb108..3c73f76a3 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -1,2 +1,13 @@ #!/bin/bash +############################################################################## +# Copyright (c) 2024 Microsoft Corporation +# Copyright (c) 2026 Eclipse ThreadX contributors +# +# This program and the accompanying materials are made available under the +# terms of the MIT License which is available at +# https://opensource.org/licenses/MIT. +# +# SPDX-License-Identifier: MIT +############################################################################## + $(dirname `realpath $0`)/../test/cmake/usbx/run.sh build $@ diff --git a/scripts/install.sh b/scripts/install.sh index fed99714e..5ba1cde68 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -1,4 +1,15 @@ #!/bin/bash +############################################################################## +# Copyright (c) 2024 Microsoft Corporation +# Copyright (c) 2026 Eclipse ThreadX contributors +# +# This program and the accompanying materials are made available under the +# terms of the MIT License which is available at +# https://opensource.org/licenses/MIT. +# +# SPDX-License-Identifier: MIT +############################################################################## + # # Install necessary softwares for Ubuntu. diff --git a/scripts/test.sh b/scripts/test.sh index 109b9e2ce..7a3720cd6 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -1,2 +1,13 @@ #!/bin/bash +############################################################################## +# Copyright (c) 2024 Microsoft Corporation +# Copyright (c) 2026 Eclipse ThreadX contributors +# +# This program and the accompanying materials are made available under the +# terms of the MIT License which is available at +# https://opensource.org/licenses/MIT. +# +# SPDX-License-Identifier: MIT +############################################################################## + CTEST_PARALLEL_LEVEL=4 $(dirname `realpath $0`)/../test/cmake/usbx/run.sh test $@ diff --git a/test/regression/usbx_audio10_device_basic_test.c b/test/regression/usbx_audio10_device_basic_test.c index 5dfbe8073..8c8519294 100644 --- a/test/regression/usbx_audio10_device_basic_test.c +++ b/test/regression/usbx_audio10_device_basic_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_audio10_device_feedback_test.c b/test/regression/usbx_audio10_device_feedback_test.c index cac922064..af227b146 100644 --- a/test/regression/usbx_audio10_device_feedback_test.c +++ b/test/regression/usbx_audio10_device_feedback_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_audio10_iad_device_basic_test.c b/test/regression/usbx_audio10_iad_device_basic_test.c index e92fcf3e2..9d8430e79 100644 --- a/test/regression/usbx_audio10_iad_device_basic_test.c +++ b/test/regression/usbx_audio10_iad_device_basic_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_audio10_iad_device_control_test.c b/test/regression/usbx_audio10_iad_device_control_test.c index d92911d64..0fe019d4f 100644 --- a/test/regression/usbx_audio10_iad_device_control_test.c +++ b/test/regression/usbx_audio10_iad_device_control_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_audio10_iad_device_interrupt_test.c b/test/regression/usbx_audio10_iad_device_interrupt_test.c index 70cbd2c61..379da31db 100644 --- a/test/regression/usbx_audio10_iad_device_interrupt_test.c +++ b/test/regression/usbx_audio10_iad_device_interrupt_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_audio10_iad_host_basic_test.c b/test/regression/usbx_audio10_iad_host_basic_test.c index 3bf41d862..dcb352123 100644 --- a/test/regression/usbx_audio10_iad_host_basic_test.c +++ b/test/regression/usbx_audio10_iad_host_basic_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_audio20_device_basic_test.c b/test/regression/usbx_audio20_device_basic_test.c index 202a0daa3..93e518d6d 100644 --- a/test/regression/usbx_audio20_device_basic_test.c +++ b/test/regression/usbx_audio20_device_basic_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_audio20_device_controls_test.c b/test/regression/usbx_audio20_device_controls_test.c index 4a616861e..926cf0931 100644 --- a/test/regression/usbx_audio20_device_controls_test.c +++ b/test/regression/usbx_audio20_device_controls_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_audio20_device_feedback_test.c b/test/regression/usbx_audio20_device_feedback_test.c index 37887f5bb..2b7781205 100644 --- a/test/regression/usbx_audio20_device_feedback_test.c +++ b/test/regression/usbx_audio20_device_feedback_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_audio20_host_basic_test.c b/test/regression/usbx_audio20_host_basic_test.c index 2ec492f2d..373dbc975 100644 --- a/test/regression/usbx_audio20_host_basic_test.c +++ b/test/regression/usbx_audio20_host_basic_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_bus_powered_hub_conn_to_self_and_bus_powered_hub_test.c b/test/regression/usbx_bus_powered_hub_conn_to_self_and_bus_powered_hub_test.c index 740c578d5..5e220a910 100644 --- a/test/regression/usbx_bus_powered_hub_conn_to_self_and_bus_powered_hub_test.c +++ b/test/regression/usbx_bus_powered_hub_conn_to_self_and_bus_powered_hub_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where a bus-powered hub is connected to a self-powered hub. */ #include "usbx_ux_test_hub.h" diff --git a/test/regression/usbx_cdc_acm_basic_memory_test.c b/test/regression/usbx_cdc_acm_basic_memory_test.c index bbcf48b9b..4ee781afb 100644 --- a/test/regression/usbx_cdc_acm_basic_memory_test.c +++ b/test/regression/usbx_cdc_acm_basic_memory_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_cdc_acm_basic_test.c b/test/regression/usbx_cdc_acm_basic_test.c index 0b7cd2a82..1b4cc9481 100644 --- a/test/regression/usbx_cdc_acm_basic_test.c +++ b/test/regression/usbx_cdc_acm_basic_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_cdc_acm_configure_test.c b/test/regression/usbx_cdc_acm_configure_test.c index d4c164d09..87e3e918f 100644 --- a/test/regression/usbx_cdc_acm_configure_test.c +++ b/test/regression/usbx_cdc_acm_configure_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_cdc_acm_device_dtr_rts_reset_on_disconnect_test.c b/test/regression/usbx_cdc_acm_device_dtr_rts_reset_on_disconnect_test.c index e31128e57..524768baf 100644 --- a/test/regression/usbx_cdc_acm_device_dtr_rts_reset_on_disconnect_test.c +++ b/test/regression/usbx_cdc_acm_device_dtr_rts_reset_on_disconnect_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_cdc_ecm_alternate_setting_change_to_zero_test.c b/test/regression/usbx_cdc_ecm_alternate_setting_change_to_zero_test.c index ab34d569a..46de58c7d 100644 --- a/test/regression/usbx_cdc_ecm_alternate_setting_change_to_zero_test.c +++ b/test/regression/usbx_cdc_ecm_alternate_setting_change_to_zero_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where the host sets the device's alternate setting to zero. */ diff --git a/test/regression/usbx_cdc_ecm_basic_ipv6_test.c b/test/regression/usbx_cdc_ecm_basic_ipv6_test.c index 9c7ea65ee..bf7d28d21 100644 --- a/test/regression/usbx_cdc_ecm_basic_ipv6_test.c +++ b/test/regression/usbx_cdc_ecm_basic_ipv6_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #ifndef USBX_UX_TEST_CDC_ECM_H #define USBX_UX_TEST_CDC_ECM_H diff --git a/test/regression/usbx_cdc_ecm_basic_memory_test.c b/test/regression/usbx_cdc_ecm_basic_memory_test.c index 82719bb09..3b08fa9dc 100644 --- a/test/regression/usbx_cdc_ecm_basic_memory_test.c +++ b/test/regression/usbx_cdc_ecm_basic_memory_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* Include necessary system files. */ #include "usbx_ux_test_cdc_ecm.h" diff --git a/test/regression/usbx_cdc_ecm_basic_test.c b/test/regression/usbx_cdc_ecm_basic_test.c index 23030c82e..2773aa2c7 100644 --- a/test/regression/usbx_cdc_ecm_basic_test.c +++ b/test/regression/usbx_cdc_ecm_basic_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* Include necessary system files. */ #include "usbx_ux_test_cdc_ecm.h" diff --git a/test/regression/usbx_cdc_ecm_control_interface_no_interrupt_endpoint_test.c b/test/regression/usbx_cdc_ecm_control_interface_no_interrupt_endpoint_test.c index 44a53ecf5..418a67de8 100644 --- a/test/regression/usbx_cdc_ecm_control_interface_no_interrupt_endpoint_test.c +++ b/test/regression/usbx_cdc_ecm_control_interface_no_interrupt_endpoint_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where there is no interrupt endpoint in the CDC-ECM control interface. Host should not report an error since this endpoint is optional. */ diff --git a/test/regression/usbx_cdc_ecm_data_iface_non_bulko_and_non_bulki_endpt_test.c b/test/regression/usbx_cdc_ecm_data_iface_non_bulko_and_non_bulki_endpt_test.c index d973c22f1..08d1e7b4a 100644 --- a/test/regression/usbx_cdc_ecm_data_iface_non_bulko_and_non_bulki_endpt_test.c +++ b/test/regression/usbx_cdc_ecm_data_iface_non_bulko_and_non_bulki_endpt_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the following cases: 1. There is an out endpoint, but not bulk. 2. There is an in endpoint, but in bulk. */ diff --git a/test/regression/usbx_cdc_ecm_data_interface_no_bulk_in_endpoint_test.c b/test/regression/usbx_cdc_ecm_data_interface_no_bulk_in_endpoint_test.c index 308f0d30b..32d44a0fd 100644 --- a/test/regression/usbx_cdc_ecm_data_interface_no_bulk_in_endpoint_test.c +++ b/test/regression/usbx_cdc_ecm_data_interface_no_bulk_in_endpoint_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where there is no bulk in endpoint in the CDC-ECM data interface. Host should report an error. diff --git a/test/regression/usbx_cdc_ecm_data_interface_no_bulk_out_endpoint_test.c b/test/regression/usbx_cdc_ecm_data_interface_no_bulk_out_endpoint_test.c index e6a066273..6dd9ec6c4 100644 --- a/test/regression/usbx_cdc_ecm_data_interface_no_bulk_out_endpoint_test.c +++ b/test/regression/usbx_cdc_ecm_data_interface_no_bulk_out_endpoint_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where there is no bulk out endpoint in the CDC-ECM data interface. Host should report an error. diff --git a/test/regression/usbx_cdc_ecm_data_interface_setting_select_fails_test.c b/test/regression/usbx_cdc_ecm_data_interface_setting_select_fails_test.c index 7821bb2ab..2f8048f29 100644 --- a/test/regression/usbx_cdc_ecm_data_interface_setting_select_fails_test.c +++ b/test/regression/usbx_cdc_ecm_data_interface_setting_select_fails_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where the setting the data interface with endpoints fails. */ #include "usbx_ux_test_cdc_ecm.h" diff --git a/test/regression/usbx_cdc_ecm_default_data_interface_setting_with_endpoints_test.c b/test/regression/usbx_cdc_ecm_default_data_interface_setting_with_endpoints_test.c index 713697640..d008888ff 100644 --- a/test/regression/usbx_cdc_ecm_default_data_interface_setting_with_endpoints_test.c +++ b/test/regression/usbx_cdc_ecm_default_data_interface_setting_with_endpoints_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where the default data interface has endpoints - note that this is a violation of the specification since according to it, the default data interface should have 0 endpoints, however, our host supports it since diff --git a/test/regression/usbx_cdc_ecm_disconnect_and_reconnect_test.c b/test/regression/usbx_cdc_ecm_disconnect_and_reconnect_test.c index 6ef3088b2..4a5fa799a 100644 --- a/test/regression/usbx_cdc_ecm_disconnect_and_reconnect_test.c +++ b/test/regression/usbx_cdc_ecm_disconnect_and_reconnect_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test ensures everything works after a disconnection and reconnection. */ #include "usbx_ux_test_cdc_ecm.h" diff --git a/test/regression/usbx_cdc_ecm_host_bulk_in_semaphore_create_fail_test.c b/test/regression/usbx_cdc_ecm_host_bulk_in_semaphore_create_fail_test.c index 1b3253137..b50f3626f 100644 --- a/test/regression/usbx_cdc_ecm_host_bulk_in_semaphore_create_fail_test.c +++ b/test/regression/usbx_cdc_ecm_host_bulk_in_semaphore_create_fail_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where the bulk in semaphore at the class level creation fails. */ diff --git a/test/regression/usbx_cdc_ecm_host_bulk_in_transfer_arming_during_deactivate_test.c b/test/regression/usbx_cdc_ecm_host_bulk_in_transfer_arming_during_deactivate_test.c index 8e6bce3fb..6081a54dd 100644 --- a/test/regression/usbx_cdc_ecm_host_bulk_in_transfer_arming_during_deactivate_test.c +++ b/test/regression/usbx_cdc_ecm_host_bulk_in_transfer_arming_during_deactivate_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where there is an ongoing transfer on the bulk in endpoint during deactivation. The deactivate routine should wait for it to finish. diff --git a/test/regression/usbx_cdc_ecm_host_bulk_in_transfer_arming_during_link_down_test.c b/test/regression/usbx_cdc_ecm_host_bulk_in_transfer_arming_during_link_down_test.c index 223d709bb..73760a880 100644 --- a/test/regression/usbx_cdc_ecm_host_bulk_in_transfer_arming_during_link_down_test.c +++ b/test/regression/usbx_cdc_ecm_host_bulk_in_transfer_arming_during_link_down_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where there is an ongoing transfer on the bulk in endpoint during link down. The interrupt notification function should wait for it to finish. diff --git a/test/regression/usbx_cdc_ecm_host_bulk_in_transfer_fail_test.c b/test/regression/usbx_cdc_ecm_host_bulk_in_transfer_fail_test.c index ec99cf0fb..2ac480e3b 100644 --- a/test/regression/usbx_cdc_ecm_host_bulk_in_transfer_fail_test.c +++ b/test/regression/usbx_cdc_ecm_host_bulk_in_transfer_fail_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where the bulk in transfer fails (in the cdc-ecm thread). */ #include "usbx_ux_test_cdc_ecm.h" diff --git a/test/regression/usbx_cdc_ecm_host_bulk_out_semaphore_create_fail_test.c b/test/regression/usbx_cdc_ecm_host_bulk_out_semaphore_create_fail_test.c index 6d9d0b69d..767d9dd38 100644 --- a/test/regression/usbx_cdc_ecm_host_bulk_out_semaphore_create_fail_test.c +++ b/test/regression/usbx_cdc_ecm_host_bulk_out_semaphore_create_fail_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where the bulk out semaphore at the class level creation fails. */ diff --git a/test/regression/usbx_cdc_ecm_host_bulk_out_transfer_fail_test.c b/test/regression/usbx_cdc_ecm_host_bulk_out_transfer_fail_test.c index f66e5470a..ead6d9578 100644 --- a/test/regression/usbx_cdc_ecm_host_bulk_out_transfer_fail_test.c +++ b/test/regression/usbx_cdc_ecm_host_bulk_out_transfer_fail_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where the bulk out transfer fails (in the cdc_ecm_write). */ #include "usbx_ux_test_cdc_ecm.h" diff --git a/test/regression/usbx_cdc_ecm_host_bulki_arm_err_dueto_link_dn_thread_wait_test.c b/test/regression/usbx_cdc_ecm_host_bulki_arm_err_dueto_link_dn_thread_wait_test.c index 84b15c63d..de97423fc 100644 --- a/test/regression/usbx_cdc_ecm_host_bulki_arm_err_dueto_link_dn_thread_wait_test.c +++ b/test/regression/usbx_cdc_ecm_host_bulki_arm_err_dueto_link_dn_thread_wait_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where the link is down and a thread is waiting for the bulk in transfer check-and-arm to finish. */ diff --git a/test/regression/usbx_cdc_ecm_host_bulko_transfer_arming_during_link_dn_test.c b/test/regression/usbx_cdc_ecm_host_bulko_transfer_arming_during_link_dn_test.c index 0ab4c0675..577e2ce77 100644 --- a/test/regression/usbx_cdc_ecm_host_bulko_transfer_arming_during_link_dn_test.c +++ b/test/regression/usbx_cdc_ecm_host_bulko_transfer_arming_during_link_dn_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where there is an ongoing transfer on the bulk out endpoint during link down. The interrupt notification function should wait for it to finish. diff --git a/test/regression/usbx_cdc_ecm_host_first_interrupt_transfer_fail_test.c b/test/regression/usbx_cdc_ecm_host_first_interrupt_transfer_fail_test.c index 9b35635eb..a61c36110 100644 --- a/test/regression/usbx_cdc_ecm_host_first_interrupt_transfer_fail_test.c +++ b/test/regression/usbx_cdc_ecm_host_first_interrupt_transfer_fail_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where the CDC-ECM thread creation fails. */ #include "usbx_ux_test_cdc_ecm.h" diff --git a/test/regression/usbx_cdc_ecm_host_int_notification_semaphore_create_fail_test.c b/test/regression/usbx_cdc_ecm_host_int_notification_semaphore_create_fail_test.c index c2fc73c2b..36e7911e8 100644 --- a/test/regression/usbx_cdc_ecm_host_int_notification_semaphore_create_fail_test.c +++ b/test/regression/usbx_cdc_ecm_host_int_notification_semaphore_create_fail_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where the interrupt notification semaphore creation fails. */ #include "usbx_ux_test_cdc_ecm.h" diff --git a/test/regression/usbx_cdc_ecm_host_non_ip_packet_received_test.c b/test/regression/usbx_cdc_ecm_host_non_ip_packet_received_test.c index 9f665c9de..599fa3ac1 100644 --- a/test/regression/usbx_cdc_ecm_host_non_ip_packet_received_test.c +++ b/test/regression/usbx_cdc_ecm_host_non_ip_packet_received_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where the host receives a non-IP packet. */ #include "usbx_ux_test_cdc_ecm.h" diff --git a/test/regression/usbx_cdc_ecm_host_packet_pool_create_fail_test.c b/test/regression/usbx_cdc_ecm_host_packet_pool_create_fail_test.c index c48c4b17d..4e7212742 100644 --- a/test/regression/usbx_cdc_ecm_host_packet_pool_create_fail_test.c +++ b/test/regression/usbx_cdc_ecm_host_packet_pool_create_fail_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where the CDC-ECM thread creation fails. */ #include "usbx_ux_test_cdc_ecm.h" diff --git a/test/regression/usbx_cdc_ecm_host_thread_create_fail_test.c b/test/regression/usbx_cdc_ecm_host_thread_create_fail_test.c index 39a268cd5..3cef5804c 100644 --- a/test/regression/usbx_cdc_ecm_host_thread_create_fail_test.c +++ b/test/regression/usbx_cdc_ecm_host_thread_create_fail_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where the CDC-ECM thread creation fails. */ #include "usbx_ux_test_cdc_ecm.h" diff --git a/test/regression/usbx_cdc_ecm_host_thread_link_down_before_transfer_test.c b/test/regression/usbx_cdc_ecm_host_thread_link_down_before_transfer_test.c index 64d47f755..2ac36c29c 100644 --- a/test/regression/usbx_cdc_ecm_host_thread_link_down_before_transfer_test.c +++ b/test/regression/usbx_cdc_ecm_host_thread_link_down_before_transfer_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where right before the transfer is armed, the link state is down in the cdc-ecm thread. */ diff --git a/test/regression/usbx_cdc_ecm_host_thread_packet_allocate_fail_test.c b/test/regression/usbx_cdc_ecm_host_thread_packet_allocate_fail_test.c index 55125c899..7725b55cb 100644 --- a/test/regression/usbx_cdc_ecm_host_thread_packet_allocate_fail_test.c +++ b/test/regression/usbx_cdc_ecm_host_thread_packet_allocate_fail_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case the nx_packet_allocate fails in the cdc-ecm thread. */ #include "usbx_ux_test_cdc_ecm.h" diff --git a/test/regression/usbx_cdc_ecm_host_thread_packet_append_fail_test.c b/test/regression/usbx_cdc_ecm_host_thread_packet_append_fail_test.c index 06841eccd..60cdb97bb 100644 --- a/test/regression/usbx_cdc_ecm_host_thread_packet_append_fail_test.c +++ b/test/regression/usbx_cdc_ecm_host_thread_packet_append_fail_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case the nx_packet_allocate fails in the cdc-ecm thread. */ #define TEST_NX_PACKET_CHAIN diff --git a/test/regression/usbx_cdc_ecm_interface_before_control_interface_test.c b/test/regression/usbx_cdc_ecm_interface_before_control_interface_test.c index eb1c63702..41f74f50b 100644 --- a/test/regression/usbx_cdc_ecm_interface_before_control_interface_test.c +++ b/test/regression/usbx_cdc_ecm_interface_before_control_interface_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test tests the case where there is an interface before the control interface. In this case, it's a storage class interface. We do this because during activation, we need to link the the control interface into the class instance, so we need to find it. */ diff --git a/test/regression/usbx_cdc_ecm_invalid_alt_setting_after_zero_endpt_data_iface_test.c b/test/regression/usbx_cdc_ecm_invalid_alt_setting_after_zero_endpt_data_iface_test.c index 3598df8a9..23108aa9d 100644 --- a/test/regression/usbx_cdc_ecm_invalid_alt_setting_after_zero_endpt_data_iface_test.c +++ b/test/regression/usbx_cdc_ecm_invalid_alt_setting_after_zero_endpt_data_iface_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where the default data interface has zero endpoints, and the interface right after is also a data interface but contains an invalid alternate setting value. Host should report error. */ diff --git a/test/regression/usbx_cdc_ecm_link_down_while_ongoing_transfers_test.c b/test/regression/usbx_cdc_ecm_link_down_while_ongoing_transfers_test.c index 90f6da7b8..15967d4af 100644 --- a/test/regression/usbx_cdc_ecm_link_down_while_ongoing_transfers_test.c +++ b/test/regression/usbx_cdc_ecm_link_down_while_ongoing_transfers_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test the case where a LINK DOWN event is received while transfers are ongoing. */ diff --git a/test/regression/usbx_cdc_ecm_mac_address_invalid_length_test.c b/test/regression/usbx_cdc_ecm_mac_address_invalid_length_test.c index e92737b7f..d9add2506 100644 --- a/test/regression/usbx_cdc_ecm_mac_address_invalid_length_test.c +++ b/test/regression/usbx_cdc_ecm_mac_address_invalid_length_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where the mac address string is too long. This is an error. */ diff --git a/test/regression/usbx_cdc_ecm_mac_address_test.c b/test/regression/usbx_cdc_ecm_mac_address_test.c index 6b38abd96..8ad0bae4b 100644 --- a/test/regression/usbx_cdc_ecm_mac_address_test.c +++ b/test/regression/usbx_cdc_ecm_mac_address_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests general cases in the mac address string like hexadecimal values. */ #include "usbx_ux_test_cdc_ecm.h" diff --git a/test/regression/usbx_cdc_ecm_no_control_interface_test.c b/test/regression/usbx_cdc_ecm_no_control_interface_test.c index 77df447ef..6a84929ac 100644 --- a/test/regression/usbx_cdc_ecm_no_control_interface_test.c +++ b/test/regression/usbx_cdc_ecm_no_control_interface_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test tests the case where there is no control interface. */ #include "usbx_ux_test_cdc_ecm.h" diff --git a/test/regression/usbx_cdc_ecm_no_functional_descriptor_test.c b/test/regression/usbx_cdc_ecm_no_functional_descriptor_test.c index 4ef59bc8b..1b6d62221 100644 --- a/test/regression/usbx_cdc_ecm_no_functional_descriptor_test.c +++ b/test/regression/usbx_cdc_ecm_no_functional_descriptor_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where there no functional descriptor. There should be a functional descriptor, so this is an error. */ diff --git a/test/regression/usbx_cdc_ecm_non_data_iface_after_zero_endpt_data_iface_test.c b/test/regression/usbx_cdc_ecm_non_data_iface_after_zero_endpt_data_iface_test.c index e84df6a84..03c4130bb 100644 --- a/test/regression/usbx_cdc_ecm_non_data_iface_after_zero_endpt_data_iface_test.c +++ b/test/regression/usbx_cdc_ecm_non_data_iface_after_zero_endpt_data_iface_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where the default data interface has zero endpoints, and the interface right after it is a non-data interface. Host should report error. */ diff --git a/test/regression/usbx_cdc_ecm_nx_packet_chain_test.c b/test/regression/usbx_cdc_ecm_nx_packet_chain_test.c index b90c215ed..3be8aef02 100644 --- a/test/regression/usbx_cdc_ecm_nx_packet_chain_test.c +++ b/test/regression/usbx_cdc_ecm_nx_packet_chain_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* Include necessary system files. */ #define TEST_NX_PACKET_CHAIN diff --git a/test/regression/usbx_cdc_ecm_one_data_interface_with_no_endpoints_test.c b/test/regression/usbx_cdc_ecm_one_data_interface_with_no_endpoints_test.c index f0e9f8ed9..c0eae0759 100644 --- a/test/regression/usbx_cdc_ecm_one_data_interface_with_no_endpoints_test.c +++ b/test/regression/usbx_cdc_ecm_one_data_interface_with_no_endpoints_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where there is only one default data interface and it has no endpoints. Host should report an error. */ diff --git a/test/regression/usbx_class_device_enumeration_test.c b/test/regression/usbx_class_device_enumeration_test.c index 07d648819..d3dc5e887 100644 --- a/test/regression/usbx_class_device_enumeration_test.c +++ b/test/regression/usbx_class_device_enumeration_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_class_hid_basic_memory_test.c b/test/regression/usbx_class_hid_basic_memory_test.c index 6703dc403..eaed7b678 100644 --- a/test/regression/usbx_class_hid_basic_memory_test.c +++ b/test/regression/usbx_class_hid_basic_memory_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests the ux_device_class_hid API. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_class_hid_basic_test.c b/test/regression/usbx_class_hid_basic_test.c index 5b114adbb..23180e2d3 100644 --- a/test/regression/usbx_class_hid_basic_test.c +++ b/test/regression/usbx_class_hid_basic_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests basic HID functionalities. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_class_hid_keyboard_basic_test.c b/test/regression/usbx_class_hid_keyboard_basic_test.c index a1ae34b86..de8b9f3d8 100644 --- a/test/regression/usbx_class_hid_keyboard_basic_test.c +++ b/test/regression/usbx_class_hid_keyboard_basic_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests basic HID functionalities. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_class_hid_mouse_basic_test.c b/test/regression/usbx_class_hid_mouse_basic_test.c index 16d547acc..7aea427cf 100644 --- a/test/regression/usbx_class_hid_mouse_basic_test.c +++ b/test/regression/usbx_class_hid_mouse_basic_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests basic HID functionalities. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_class_hid_remote_control_basic_test.c b/test/regression/usbx_class_hid_remote_control_basic_test.c index 67f677f8d..5b2c99343 100644 --- a/test/regression/usbx_class_hid_remote_control_basic_test.c +++ b/test/regression/usbx_class_hid_remote_control_basic_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests basic HID functionalities. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_class_interface_enumeration_test.c b/test/regression/usbx_class_interface_enumeration_test.c index b435ce21d..5e3dc43bc 100644 --- a/test/regression/usbx_class_interface_enumeration_test.c +++ b/test/regression/usbx_class_interface_enumeration_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_class_multi_interface_enumeration_test.c b/test/regression/usbx_class_multi_interface_enumeration_test.c index 06c4bae55..d33d57c05 100644 --- a/test/regression/usbx_class_multi_interface_enumeration_test.c +++ b/test/regression/usbx_class_multi_interface_enumeration_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_class_printer_basic_tests.c b/test/regression/usbx_class_printer_basic_tests.c index a2538244c..e696c127e 100644 --- a/test/regression/usbx_class_printer_basic_tests.c +++ b/test/regression/usbx_class_printer_basic_tests.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_class_printer_device_standalone_basic_tests.c b/test/regression/usbx_class_printer_device_standalone_basic_tests.c index 0a4399108..da08d6b0a 100644 --- a/test/regression/usbx_class_printer_device_standalone_basic_tests.c +++ b/test/regression/usbx_class_printer_device_standalone_basic_tests.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_control_transfer_stall_test.c b/test/regression/usbx_control_transfer_stall_test.c index a8901b9ab..caa039500 100644 --- a/test/regression/usbx_control_transfer_stall_test.c +++ b/test/regression/usbx_control_transfer_stall_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests ensures that when the device stalls the default endpoint upon an invalid request, it is unstalled after sending a valid request. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_device_class_ccid_basic_tests.c b/test/regression/usbx_device_class_ccid_basic_tests.c index f9087c334..795ae1f27 100644 --- a/test/regression/usbx_device_class_ccid_basic_tests.c +++ b/test/regression/usbx_device_class_ccid_basic_tests.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_device_class_ccid_busy_abort_tests.c b/test/regression/usbx_device_class_ccid_busy_abort_tests.c index 27a4583b9..d3ec7936c 100644 --- a/test/regression/usbx_device_class_ccid_busy_abort_tests.c +++ b/test/regression/usbx_device_class_ccid_busy_abort_tests.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_device_dfu_basic_test.c b/test/regression/usbx_device_dfu_basic_test.c index 376639899..05e850f1c 100644 --- a/test/regression/usbx_device_dfu_basic_test.c +++ b/test/regression/usbx_device_dfu_basic_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_dpump_basic_test.c b/test/regression/usbx_dpump_basic_test.c index cc881c00a..70c73f429 100644 --- a/test/regression/usbx_dpump_basic_test.c +++ b/test/regression/usbx_dpump_basic_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_hid_interrupt_endpoint_get_report_test.c b/test/regression/usbx_hid_interrupt_endpoint_get_report_test.c index b68cb9df2..930239ddd 100644 --- a/test/regression/usbx_hid_interrupt_endpoint_get_report_test.c +++ b/test/regression/usbx_hid_interrupt_endpoint_get_report_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests retrieving an input report via the interrupt endpoint. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_hid_keyboard_basic_test.c b/test/regression/usbx_hid_keyboard_basic_test.c index a077d2ace..ab02e83a6 100644 --- a/test/regression/usbx_hid_keyboard_basic_test.c +++ b/test/regression/usbx_hid_keyboard_basic_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_hid_keyboard_extraction_test.c b/test/regression/usbx_hid_keyboard_extraction_test.c index 5972faeef..c2d0e7606 100644 --- a/test/regression/usbx_hid_keyboard_extraction_test.c +++ b/test/regression/usbx_hid_keyboard_extraction_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test concentrates on keyboard device removal. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_hid_keyboard_extraction_test2.c b/test/regression/usbx_hid_keyboard_extraction_test2.c index 66fb56deb..d14c4f621 100644 --- a/test/regression/usbx_hid_keyboard_extraction_test2.c +++ b/test/regression/usbx_hid_keyboard_extraction_test2.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test concentrates on keyboard device removal. This is similar to the first extraction test, except there is no ux_system_host_change_function. This allows us to hit the following false condition in _ux_host_class_hid_keyboard_deactivate: diff --git a/test/regression/usbx_hid_keyboard_key_get_test.c b/test/regression/usbx_hid_keyboard_key_get_test.c index 92afcba0b..946236020 100644 --- a/test/regression/usbx_hid_keyboard_key_get_test.c +++ b/test/regression/usbx_hid_keyboard_key_get_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test concentrates on the ux_host_class_hid_keyboard_key_get API. */ #include diff --git a/test/regression/usbx_hid_keyboard_key_test.c b/test/regression/usbx_hid_keyboard_key_test.c index 6f43cd4f6..a9b81c5d8 100644 --- a/test/regression/usbx_hid_keyboard_key_test.c +++ b/test/regression/usbx_hid_keyboard_key_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests that the host correctly receives the keys the device sends to it. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_hid_keyboard_key_with_report_id_test.c b/test/regression/usbx_hid_keyboard_key_with_report_id_test.c index 8e6eccf4f..a628fdf07 100644 --- a/test/regression/usbx_hid_keyboard_key_with_report_id_test.c +++ b/test/regression/usbx_hid_keyboard_key_with_report_id_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests that the host correctly receives the keys the device sends to it when the report descriptor defines a non-zero report id. */ diff --git a/test/regression/usbx_hid_mouse_basic_test.c b/test/regression/usbx_hid_mouse_basic_test.c index c956ca157..c4729b57d 100644 --- a/test/regression/usbx_hid_mouse_basic_test.c +++ b/test/regression/usbx_hid_mouse_basic_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test simple usage of the mouse class. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_hid_mouse_extraction_test.c b/test/regression/usbx_hid_mouse_extraction_test.c index 3429928be..418e8ad60 100644 --- a/test/regression/usbx_hid_mouse_extraction_test.c +++ b/test/regression/usbx_hid_mouse_extraction_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the extraction of a mouse device. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_hid_mouse_extraction_test2.c b/test/regression/usbx_hid_mouse_extraction_test2.c index 7ab230c27..485c51d7d 100644 --- a/test/regression/usbx_hid_mouse_extraction_test2.c +++ b/test/regression/usbx_hid_mouse_extraction_test2.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the extraction of a mouse device. This is similar to the first extraction test, except there is no ux_system_host_change_function. This allows us to hit the following false condition in _ux_host_class_hid_mouse_deactivate: diff --git a/test/regression/usbx_hid_remote_control_extraction_test.c b/test/regression/usbx_hid_remote_control_extraction_test.c index ab8710571..b26458046 100644 --- a/test/regression/usbx_hid_remote_control_extraction_test.c +++ b/test/regression/usbx_hid_remote_control_extraction_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is concentrates on extraction of a remote control device. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_hid_remote_control_extraction_test2.c b/test/regression/usbx_hid_remote_control_extraction_test2.c index 7d82afa6d..1f668e24a 100644 --- a/test/regression/usbx_hid_remote_control_extraction_test2.c +++ b/test/regression/usbx_hid_remote_control_extraction_test2.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is concentrates on extraction of a remote control device. This is similar to the first extraction test, except there is no ux_system_host_change_function. This allows us to hit the following false condition in _ux_host_class_hid_remote_control_deactivate: diff --git a/test/regression/usbx_hid_remote_control_tests.c b/test/regression/usbx_hid_remote_control_tests.c index 0a1293efb..6db191b4b 100644 --- a/test/regression/usbx_hid_remote_control_tests.c +++ b/test/regression/usbx_hid_remote_control_tests.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* TODO: some common stuff from storage we might want to pull out: -memory check - pretty good -connect and disconnect diff --git a/test/regression/usbx_hid_report_descriptor_collection_overflow_test.c b/test/regression/usbx_hid_report_descriptor_collection_overflow_test.c index bb7613931..8d538091f 100644 --- a/test/regression/usbx_hid_report_descriptor_collection_overflow_test.c +++ b/test/regression/usbx_hid_report_descriptor_collection_overflow_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test ensures that the parser fails when too many collections are used. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_hid_report_descriptor_compress_and_decompress_test.c b/test/regression/usbx_hid_report_descriptor_compress_and_decompress_test.c index 942c46805..0af5f2606 100644 --- a/test/regression/usbx_hid_report_descriptor_compress_and_decompress_test.c +++ b/test/regression/usbx_hid_report_descriptor_compress_and_decompress_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #include "usbx_test_common_hid.h" #include "ux_host_class_hid_keyboard.h" diff --git a/test/regression/usbx_hid_report_descriptor_compress_array_test.c b/test/regression/usbx_hid_report_descriptor_compress_array_test.c index e9cf852c9..ebdb24e69 100644 --- a/test/regression/usbx_hid_report_descriptor_compress_array_test.c +++ b/test/regression/usbx_hid_report_descriptor_compress_array_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test concentrates on the report compress api. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_hid_report_descriptor_compress_test.c b/test/regression/usbx_hid_report_descriptor_compress_test.c index e83b8170e..e7f8b8469 100644 --- a/test/regression/usbx_hid_report_descriptor_compress_test.c +++ b/test/regression/usbx_hid_report_descriptor_compress_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test concentrates on the report compress api. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_hid_report_descriptor_decompress_array_test.c b/test/regression/usbx_hid_report_descriptor_decompress_array_test.c index ca232756f..c029232f0 100644 --- a/test/regression/usbx_hid_report_descriptor_decompress_array_test.c +++ b/test/regression/usbx_hid_report_descriptor_decompress_array_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test concentrates on the report decompression api when the report contains an array item. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_hid_report_descriptor_decompress_test.c b/test/regression/usbx_hid_report_descriptor_decompress_test.c index ad8a94f54..75d93f811 100644 --- a/test/regression/usbx_hid_report_descriptor_decompress_test.c +++ b/test/regression/usbx_hid_report_descriptor_decompress_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test concentrates on the report decompress api. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_hid_report_descriptor_delimiter_nested_close_test.c b/test/regression/usbx_hid_report_descriptor_delimiter_nested_close_test.c index 76e147fab..3d74fd1b1 100644 --- a/test/regression/usbx_hid_report_descriptor_delimiter_nested_close_test.c +++ b/test/regression/usbx_hid_report_descriptor_delimiter_nested_close_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test ensures that the parser generates an error upon encountering an invalid close delimiter tag. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_hid_report_descriptor_delimiter_nested_open_test.c b/test/regression/usbx_hid_report_descriptor_delimiter_nested_open_test.c index 7829e2ce8..f6b1edf83 100644 --- a/test/regression/usbx_hid_report_descriptor_delimiter_nested_open_test.c +++ b/test/regression/usbx_hid_report_descriptor_delimiter_nested_open_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test ensures that the parser generates an error upon encountering a nested delimiter. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_hid_report_descriptor_delimiter_test.c b/test/regression/usbx_hid_report_descriptor_delimiter_test.c index 23113312c..ba88e2f37 100644 --- a/test/regression/usbx_hid_report_descriptor_delimiter_test.c +++ b/test/regression/usbx_hid_report_descriptor_delimiter_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test ensures that the parser handles the delimiter item. At the time this test was written, the parser only sets a flag indicating that a delimiter item has been encountered, but does nothing else with the flag. */ diff --git a/test/regression/usbx_hid_report_descriptor_delimiter_unknown_test.c b/test/regression/usbx_hid_report_descriptor_delimiter_unknown_test.c index 97b867e85..fb8c0b1a4 100644 --- a/test/regression/usbx_hid_report_descriptor_delimiter_unknown_test.c +++ b/test/regression/usbx_hid_report_descriptor_delimiter_unknown_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test ensures that the parser generates an error upon encountering an unknown delimiter tag. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_hid_report_descriptor_end_collection_error_test.c b/test/regression/usbx_hid_report_descriptor_end_collection_error_test.c index 77f924701..3929c7a24 100644 --- a/test/regression/usbx_hid_report_descriptor_end_collection_error_test.c +++ b/test/regression/usbx_hid_report_descriptor_end_collection_error_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test ensures that the parser fails when too many end collections are used. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_hid_report_descriptor_example_andisplay_test.c b/test/regression/usbx_hid_report_descriptor_example_andisplay_test.c index 72a2a9922..5bad134b9 100644 --- a/test/regression/usbx_hid_report_descriptor_example_andisplay_test.c +++ b/test/regression/usbx_hid_report_descriptor_example_andisplay_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test ensures that the parser handles the example andisplay report descriptor from the USB HID report descriptor tool. */ diff --git a/test/regression/usbx_hid_report_descriptor_example_delimit_test.c b/test/regression/usbx_hid_report_descriptor_example_delimit_test.c index cf0aad6ba..21f1db80a 100644 --- a/test/regression/usbx_hid_report_descriptor_example_delimit_test.c +++ b/test/regression/usbx_hid_report_descriptor_example_delimit_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test ensures that the parser handles the example delmit report descriptor from the USB HID report descriptor tool. */ diff --git a/test/regression/usbx_hid_report_descriptor_example_digit_test.c b/test/regression/usbx_hid_report_descriptor_example_digit_test.c index ff79f675c..e5c332a3d 100644 --- a/test/regression/usbx_hid_report_descriptor_example_digit_test.c +++ b/test/regression/usbx_hid_report_descriptor_example_digit_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test ensures that the parser handles the example digit report descriptor from the USB HID report descriptor tool. */ diff --git a/test/regression/usbx_hid_report_descriptor_example_display_test.c b/test/regression/usbx_hid_report_descriptor_example_display_test.c index 7e3aee15f..907bd1f69 100644 --- a/test/regression/usbx_hid_report_descriptor_example_display_test.c +++ b/test/regression/usbx_hid_report_descriptor_example_display_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test ensures that the parser handles the example display report descriptor from the USB HID report descriptor tool. */ diff --git a/test/regression/usbx_hid_report_descriptor_example_joystk_test.c b/test/regression/usbx_hid_report_descriptor_example_joystk_test.c index 0af027466..464f8d858 100644 --- a/test/regression/usbx_hid_report_descriptor_example_joystk_test.c +++ b/test/regression/usbx_hid_report_descriptor_example_joystk_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test ensures that the parser handles the example joystk report descriptor from the USB HID report descriptor tool. */ diff --git a/test/regression/usbx_hid_report_descriptor_example_keybrd_test.c b/test/regression/usbx_hid_report_descriptor_example_keybrd_test.c index 5391e0d79..b520a5e5b 100644 --- a/test/regression/usbx_hid_report_descriptor_example_keybrd_test.c +++ b/test/regression/usbx_hid_report_descriptor_example_keybrd_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test ensures that the parser handles the example keybrd report descriptor from the USB HID report descriptor tool. */ diff --git a/test/regression/usbx_hid_report_descriptor_example_monitor_test.c b/test/regression/usbx_hid_report_descriptor_example_monitor_test.c index 1cc78fc22..ed458b1cb 100644 --- a/test/regression/usbx_hid_report_descriptor_example_monitor_test.c +++ b/test/regression/usbx_hid_report_descriptor_example_monitor_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test ensures that the parser handles the example monitor report descriptor from the USB HID report descriptor tool. */ diff --git a/test/regression/usbx_hid_report_descriptor_example_mouse_test.c b/test/regression/usbx_hid_report_descriptor_example_mouse_test.c index c25cc0dc1..540e4c90d 100644 --- a/test/regression/usbx_hid_report_descriptor_example_mouse_test.c +++ b/test/regression/usbx_hid_report_descriptor_example_mouse_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test ensures that the parser handles the example mouse report descriptor from the USB HID report descriptor tool. */ diff --git a/test/regression/usbx_hid_report_descriptor_example_pwr_test.c b/test/regression/usbx_hid_report_descriptor_example_pwr_test.c index db557d5b8..387924e5e 100644 --- a/test/regression/usbx_hid_report_descriptor_example_pwr_test.c +++ b/test/regression/usbx_hid_report_descriptor_example_pwr_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test ensures that the parser handles the example pwr report descriptor from the USB HID report descriptor tool. Why direct: the device's control transfer data buffer's default size (256 bytes) is not large enough for this report diff --git a/test/regression/usbx_hid_report_descriptor_example_remote_test.c b/test/regression/usbx_hid_report_descriptor_example_remote_test.c index dc69fee54..c3e8bbbcc 100644 --- a/test/regression/usbx_hid_report_descriptor_example_remote_test.c +++ b/test/regression/usbx_hid_report_descriptor_example_remote_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test ensures that the parser handles the example remote report descriptor from the USB HID report descriptor tool. */ diff --git a/test/regression/usbx_hid_report_descriptor_example_tele_test.c b/test/regression/usbx_hid_report_descriptor_example_tele_test.c index a30b33f53..0d356f87d 100644 --- a/test/regression/usbx_hid_report_descriptor_example_tele_test.c +++ b/test/regression/usbx_hid_report_descriptor_example_tele_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test ensures that the parser handles the example tele report descriptor from the USB HID report descriptor tool. */ diff --git a/test/regression/usbx_hid_report_descriptor_extended_usages_test.c b/test/regression/usbx_hid_report_descriptor_extended_usages_test.c index 6e2fb8343..03c5d19a8 100644 --- a/test/regression/usbx_hid_report_descriptor_extended_usages_test.c +++ b/test/regression/usbx_hid_report_descriptor_extended_usages_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test concentrates on the "extended usages" feature (page 41 of USB HID spec). */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_hid_report_descriptor_get_zero_length_item_data_test.c b/test/regression/usbx_hid_report_descriptor_get_zero_length_item_data_test.c index 7cecbabf7..b942b94e2 100644 --- a/test/regression/usbx_hid_report_descriptor_get_zero_length_item_data_test.c +++ b/test/regression/usbx_hid_report_descriptor_get_zero_length_item_data_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test hits the default case in _ux_host_class_hid_item_data_get. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_hid_report_descriptor_global_item_persist_test.c b/test/regression/usbx_hid_report_descriptor_global_item_persist_test.c index a8fcf934d..1c4c1f4b2 100644 --- a/test/regression/usbx_hid_report_descriptor_global_item_persist_test.c +++ b/test/regression/usbx_hid_report_descriptor_global_item_persist_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test ensures that global items persist through main items (i.e. INPUT). */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_hid_report_descriptor_global_item_test.c b/test/regression/usbx_hid_report_descriptor_global_item_test.c index 349ba67bf..49bf07b4c 100644 --- a/test/regression/usbx_hid_report_descriptor_global_item_test.c +++ b/test/regression/usbx_hid_report_descriptor_global_item_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test ensures that certain data-descriptive global items are correct within reports. This includes: -LOGICAL_MINIMUM -LOGICAL_MAXIMUM diff --git a/test/regression/usbx_hid_report_descriptor_incoherent_usage_min_max_test.c b/test/regression/usbx_hid_report_descriptor_incoherent_usage_min_max_test.c index 1eba2e11a..158afa8d7 100644 --- a/test/regression/usbx_hid_report_descriptor_incoherent_usage_min_max_test.c +++ b/test/regression/usbx_hid_report_descriptor_incoherent_usage_min_max_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test ensures that the parser fails when the USAGE MINIMUM is greater than USAGE MAXIMUM. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_hid_report_descriptor_invalid_item_test.c b/test/regression/usbx_hid_report_descriptor_invalid_item_test.c index 171ce0bac..fdd3d5ed5 100644 --- a/test/regression/usbx_hid_report_descriptor_invalid_item_test.c +++ b/test/regression/usbx_hid_report_descriptor_invalid_item_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test ensures that the parser handles an invalid descriptor length. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_hid_report_descriptor_invalid_length_test.c b/test/regression/usbx_hid_report_descriptor_invalid_length_test.c index 031e4f9f5..db86cbdde 100644 --- a/test/regression/usbx_hid_report_descriptor_invalid_length_test.c +++ b/test/regression/usbx_hid_report_descriptor_invalid_length_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test ensures that the parser handles an invalid descriptor length. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_hid_report_descriptor_item_size_test.c b/test/regression/usbx_hid_report_descriptor_item_size_test.c index 151d97e09..47ab3105d 100644 --- a/test/regression/usbx_hid_report_descriptor_item_size_test.c +++ b/test/regression/usbx_hid_report_descriptor_item_size_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test ensures that the parser handles different item sizes. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_hid_report_descriptor_max_usages_test.c b/test/regression/usbx_hid_report_descriptor_max_usages_test.c index d9dfbd051..5b073099a 100644 --- a/test/regression/usbx_hid_report_descriptor_max_usages_test.c +++ b/test/regression/usbx_hid_report_descriptor_max_usages_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test ensures the parser can handle the maximum number of usages. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_hid_report_descriptor_multiple_collections_test.c b/test/regression/usbx_hid_report_descriptor_multiple_collections_test.c index 303bdc2f2..166eb36a3 100644 --- a/test/regression/usbx_hid_report_descriptor_multiple_collections_test.c +++ b/test/regression/usbx_hid_report_descriptor_multiple_collections_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test ensures that the parser correctly handles multiple collections. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_hid_report_descriptor_multiple_fields_and_reports_test.c b/test/regression/usbx_hid_report_descriptor_multiple_fields_and_reports_test.c index d54dab099..ad631cb84 100644 --- a/test/regression/usbx_hid_report_descriptor_multiple_fields_and_reports_test.c +++ b/test/regression/usbx_hid_report_descriptor_multiple_fields_and_reports_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test ensures that the parser correctly handles multiple fields in different reports. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_hid_report_descriptor_multiple_fields_test.c b/test/regression/usbx_hid_report_descriptor_multiple_fields_test.c index 50b399442..6862607eb 100644 --- a/test/regression/usbx_hid_report_descriptor_multiple_fields_test.c +++ b/test/regression/usbx_hid_report_descriptor_multiple_fields_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test ensures that the parser correctly handles multiple fields (i.e. multiple Input items). */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_hid_report_descriptor_multiple_reports_feature_test.c b/test/regression/usbx_hid_report_descriptor_multiple_reports_feature_test.c index 35121c846..8bb237ac3 100644 --- a/test/regression/usbx_hid_report_descriptor_multiple_reports_feature_test.c +++ b/test/regression/usbx_hid_report_descriptor_multiple_reports_feature_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test ensures that the parser correctly handles multiple report IDs for feature reports. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_hid_report_descriptor_multiple_reports_input_test.c b/test/regression/usbx_hid_report_descriptor_multiple_reports_input_test.c index 21d3545e8..5ea7df845 100644 --- a/test/regression/usbx_hid_report_descriptor_multiple_reports_input_test.c +++ b/test/regression/usbx_hid_report_descriptor_multiple_reports_input_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test ensures that the parser correctly handles multiple report IDs for input reports. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_hid_report_descriptor_multiple_reports_output_test.c b/test/regression/usbx_hid_report_descriptor_multiple_reports_output_test.c index 61261a6bf..a58f717c8 100644 --- a/test/regression/usbx_hid_report_descriptor_multiple_reports_output_test.c +++ b/test/regression/usbx_hid_report_descriptor_multiple_reports_output_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test ensures that the parser correctly handles multiple report IDs for output reports. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_hid_report_descriptor_pop_underflow_test.c b/test/regression/usbx_hid_report_descriptor_pop_underflow_test.c index 10fea958a..83d4fa252 100644 --- a/test/regression/usbx_hid_report_descriptor_pop_underflow_test.c +++ b/test/regression/usbx_hid_report_descriptor_pop_underflow_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test ensures that the parser generates an error upon popping more than the allowable global states. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_hid_report_descriptor_previous_report_test.c b/test/regression/usbx_hid_report_descriptor_previous_report_test.c index a825895b0..dd97ca099 100644 --- a/test/regression/usbx_hid_report_descriptor_previous_report_test.c +++ b/test/regression/usbx_hid_report_descriptor_previous_report_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test ensures that the parser correctly handles reverting back to a previously used Report ID. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_hid_report_descriptor_push_overflow_test.c b/test/regression/usbx_hid_report_descriptor_push_overflow_test.c index 3be987981..5e78d3440 100644 --- a/test/regression/usbx_hid_report_descriptor_push_overflow_test.c +++ b/test/regression/usbx_hid_report_descriptor_push_overflow_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test ensures that the parser generates an error upon pushing more than the allowable global states. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_hid_report_descriptor_push_pop_test.c b/test/regression/usbx_hid_report_descriptor_push_pop_test.c index 7982fe213..f6909fc27 100644 --- a/test/regression/usbx_hid_report_descriptor_push_pop_test.c +++ b/test/regression/usbx_hid_report_descriptor_push_pop_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test ensures that the parser correctly handles pushing and popping. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_hid_report_descriptor_report_count_overflow_test.c b/test/regression/usbx_hid_report_descriptor_report_count_overflow_test.c index 0b0d95a71..f4b3b1325 100644 --- a/test/regression/usbx_hid_report_descriptor_report_count_overflow_test.c +++ b/test/regression/usbx_hid_report_descriptor_report_count_overflow_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test ensures that the parser handles generates an error upon a REPORT_COUNT tag that specifies more the maximum allowable usages. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_hid_report_descriptor_report_size_overflow_test.c b/test/regression/usbx_hid_report_descriptor_report_size_overflow_test.c index 2ed7017db..7bd65ae0b 100644 --- a/test/regression/usbx_hid_report_descriptor_report_size_overflow_test.c +++ b/test/regression/usbx_hid_report_descriptor_report_size_overflow_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test ensures that the parser handles generates an error upon a REPORT_SIZE tag that specifies over 32 bits of data. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_hid_report_descriptor_single_usage_multiple_data_test.c b/test/regression/usbx_hid_report_descriptor_single_usage_multiple_data_test.c index 1e5c0e2cf..8cc94e0fa 100644 --- a/test/regression/usbx_hid_report_descriptor_single_usage_multiple_data_test.c +++ b/test/regression/usbx_hid_report_descriptor_single_usage_multiple_data_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test ensures that the parser correctly handles the case of a single usage and multiple data. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_hid_report_descriptor_unknown_global_tag_test.c b/test/regression/usbx_hid_report_descriptor_unknown_global_tag_test.c index a5c45b942..7f8213f14 100644 --- a/test/regression/usbx_hid_report_descriptor_unknown_global_tag_test.c +++ b/test/regression/usbx_hid_report_descriptor_unknown_global_tag_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test ensures that the parser generates an error upon encountering an global local tag. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_hid_report_descriptor_unknown_local_tag_test.c b/test/regression/usbx_hid_report_descriptor_unknown_local_tag_test.c index fa88ab1a0..baeebbdcd 100644 --- a/test/regression/usbx_hid_report_descriptor_unknown_local_tag_test.c +++ b/test/regression/usbx_hid_report_descriptor_unknown_local_tag_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test ensures that the parser generates an error upon encountering an unknown local tag. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_hid_report_descriptor_usages_min_max_test.c b/test/regression/usbx_hid_report_descriptor_usages_min_max_test.c index 251d0e0c3..2400a6aad 100644 --- a/test/regression/usbx_hid_report_descriptor_usages_min_max_test.c +++ b/test/regression/usbx_hid_report_descriptor_usages_min_max_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test ensures that the parser handles the USAGE MINIMUM and USAGE MAXIMUM items. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_hid_report_descriptor_usages_overflow_test.c b/test/regression/usbx_hid_report_descriptor_usages_overflow_test.c index d5834deb1..6bdfc958d 100644 --- a/test/regression/usbx_hid_report_descriptor_usages_overflow_test.c +++ b/test/regression/usbx_hid_report_descriptor_usages_overflow_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test ensures that the parser fails when too many usages are used. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_hid_report_descriptor_usages_overflow_via_max_test.c b/test/regression/usbx_hid_report_descriptor_usages_overflow_via_max_test.c index a815cda64..a73b27157 100644 --- a/test/regression/usbx_hid_report_descriptor_usages_overflow_via_max_test.c +++ b/test/regression/usbx_hid_report_descriptor_usages_overflow_via_max_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test ensures that the parser fails when too many usages are used. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_hid_report_descriptor_usages_single_test.c b/test/regression/usbx_hid_report_descriptor_usages_single_test.c index e56b3d467..3f436cde0 100644 --- a/test/regression/usbx_hid_report_descriptor_usages_single_test.c +++ b/test/regression/usbx_hid_report_descriptor_usages_single_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test ensures that the parser correctly handles the USAGE item. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_hid_report_multiple_reports_ids_test.c b/test/regression/usbx_hid_report_multiple_reports_ids_test.c index 185035069..24a42612f 100644 --- a/test/regression/usbx_hid_report_multiple_reports_ids_test.c +++ b/test/regression/usbx_hid_report_multiple_reports_ids_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test ensures that the parser correctly handles multiple report IDs for input reports. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_hid_transfer_request_completed_decompressed_test.c b/test/regression/usbx_hid_transfer_request_completed_decompressed_test.c index fd889602a..bbeb9f5e0 100644 --- a/test/regression/usbx_hid_transfer_request_completed_decompressed_test.c +++ b/test/regression/usbx_hid_transfer_request_completed_decompressed_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test concentrates on _ux_host_class_hid_transfer_request_completed()'s decompressed handling. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_hid_transfer_request_completed_raw_test.c b/test/regression/usbx_hid_transfer_request_completed_raw_test.c index 5461c541a..da964cb2c 100644 --- a/test/regression/usbx_hid_transfer_request_completed_raw_test.c +++ b/test/regression/usbx_hid_transfer_request_completed_raw_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test concentrates on _ux_host_class_hid_transfer_request_completed()'s raw process handling. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_hid_transfer_request_completed_test.c b/test/regression/usbx_hid_transfer_request_completed_test.c index 786c8c076..8e9eff236 100644 --- a/test/regression/usbx_hid_transfer_request_completed_test.c +++ b/test/regression/usbx_hid_transfer_request_completed_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test concentrates on failed hid transfer requests and ensuring they're resent and received correctly. * Note: USBX HID has a thread for polling the device. Upon completion, ux_host_class_hid_transfer_request_completed is called, * and if the transfer request status is set to unsuccessful, ux_host_class_hid_transfer_request_completed retries the transfer request. */ diff --git a/test/regression/usbx_host_class_hub_port_change_connection_process_coverage_test.c b/test/regression/usbx_host_class_hub_port_change_connection_process_coverage_test.c index 4f4221f3c..8f41e05d8 100644 --- a/test/regression/usbx_host_class_hub_port_change_connection_process_coverage_test.c +++ b/test/regression/usbx_host_class_hub_port_change_connection_process_coverage_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #include #include "tx_api.h" #include "ux_api.h" diff --git a/test/regression/usbx_host_class_storage_entry_coverage_test.c b/test/regression/usbx_host_class_storage_entry_coverage_test.c index 2cdcac66c..b0a178743 100644 --- a/test/regression/usbx_host_class_storage_entry_coverage_test.c +++ b/test/regression/usbx_host_class_storage_entry_coverage_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #include #include "tx_api.h" #include "ux_api.h" diff --git a/test/regression/usbx_host_class_storage_max_lun_get_coverage_test.c b/test/regression/usbx_host_class_storage_max_lun_get_coverage_test.c index ece69bc8e..810096961 100644 --- a/test/regression/usbx_host_class_storage_max_lun_get_coverage_test.c +++ b/test/regression/usbx_host_class_storage_max_lun_get_coverage_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #include #include "tx_api.h" #include "ux_api.h" diff --git a/test/regression/usbx_host_stack_class_unregister_coverage_test.c b/test/regression/usbx_host_stack_class_unregister_coverage_test.c index 12002e5b9..50142756e 100644 --- a/test/regression/usbx_host_stack_class_unregister_coverage_test.c +++ b/test/regression/usbx_host_stack_class_unregister_coverage_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #include #include "tx_api.h" #include "ux_api.h" diff --git a/test/regression/usbx_host_stack_new_endpoint_create_coverage_test.c b/test/regression/usbx_host_stack_new_endpoint_create_coverage_test.c index 42e388e6a..4d01e024d 100644 --- a/test/regression/usbx_host_stack_new_endpoint_create_coverage_test.c +++ b/test/regression/usbx_host_stack_new_endpoint_create_coverage_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #include #include "tx_api.h" #include "ux_api.h" diff --git a/test/regression/usbx_hub_basic_memory_test.c b/test/regression/usbx_hub_basic_memory_test.c index f4ae08cca..2db5372a6 100644 --- a/test/regression/usbx_hub_basic_memory_test.c +++ b/test/regression/usbx_hub_basic_memory_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #include #include "tx_api.h" #include "ux_api.h" diff --git a/test/regression/usbx_hub_basic_test.c b/test/regression/usbx_hub_basic_test.c index 5aaf289ab..39952ed5a 100644 --- a/test/regression/usbx_hub_basic_test.c +++ b/test/regression/usbx_hub_basic_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This is a basic test for the host hub class. Note that there is no device hub class, so we create a barebones dummy one. We also test a device connected to the hub; for this, we use the DPUMP class since it is very simple. Note diff --git a/test/regression/usbx_hub_full_speed_hub_device_test.c b/test/regression/usbx_hub_full_speed_hub_device_test.c index a0f25e420..b5911746b 100644 --- a/test/regression/usbx_hub_full_speed_hub_device_test.c +++ b/test/regression/usbx_hub_full_speed_hub_device_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where the hub device is full speed. The specific test case is in ux_host_class_hub_port_change_connection_process.c. */ diff --git a/test/regression/usbx_hub_full_speed_hub_test.c b/test/regression/usbx_hub_full_speed_hub_test.c index 3a9530be3..4b03d537a 100644 --- a/test/regression/usbx_hub_full_speed_hub_test.c +++ b/test/regression/usbx_hub_full_speed_hub_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where the hub is a full-speed hub. Specific test case is in ux_host_class_hub_descriptor_get.c. */ diff --git a/test/regression/usbx_hub_get_hub_status_fails_during_hub_device_enum_test.c b/test/regression/usbx_hub_get_hub_status_fails_during_hub_device_enum_test.c index 44a221bc2..31584cca2 100644 --- a/test/regression/usbx_hub_get_hub_status_fails_during_hub_device_enum_test.c +++ b/test/regression/usbx_hub_get_hub_status_fails_during_hub_device_enum_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where the get hub status commmand fails when a device connected to the hub is being enumerated. The specific test case is in ux_host_class_hub_port_change_process.c. */ diff --git a/test/regression/usbx_hub_get_hub_status_fails_during_port_reset_test.c b/test/regression/usbx_hub_get_hub_status_fails_during_port_reset_test.c index 53f3f2c5b..6b99defe2 100644 --- a/test/regression/usbx_hub_get_hub_status_fails_during_port_reset_test.c +++ b/test/regression/usbx_hub_get_hub_status_fails_during_port_reset_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where the get hub status commmand fails when a port is being reset. The specific test case is in ux_host_class_hub_port_reset.c. */ diff --git a/test/regression/usbx_hub_get_port_status_fails_during_hub_device_enum_test.c b/test/regression/usbx_hub_get_port_status_fails_during_hub_device_enum_test.c index 0725cdf5c..475fbaade 100644 --- a/test/regression/usbx_hub_get_port_status_fails_during_hub_device_enum_test.c +++ b/test/regression/usbx_hub_get_port_status_fails_during_hub_device_enum_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where the get port status commmand fails when a device connected to the hub is being enumerated. The specific test case is in ux_host_class_hub_port_change_connection_process.c. */ diff --git a/test/regression/usbx_hub_get_status_fails_during_configuration_test.c b/test/regression/usbx_hub_get_status_fails_during_configuration_test.c index f50041331..282d9fe0e 100644 --- a/test/regression/usbx_hub_get_status_fails_during_configuration_test.c +++ b/test/regression/usbx_hub_get_status_fails_during_configuration_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where the GET_STATUS request has an invalid actual length. */ #include "usbx_ux_test_hub.h" diff --git a/test/regression/usbx_hub_hub_device_connect_test.c b/test/regression/usbx_hub_hub_device_connect_test.c index 9f6ac0e35..dbecbd3e1 100644 --- a/test/regression/usbx_hub_hub_device_connect_test.c +++ b/test/regression/usbx_hub_hub_device_connect_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where the device connected to the hub is disconnected. The specific test case is in ux_host_class_hub_port_change_connection_process.c. */ diff --git a/test/regression/usbx_hub_hub_device_disconnect_test.c b/test/regression/usbx_hub_hub_device_disconnect_test.c index 1854c58f2..7d297561e 100644 --- a/test/regression/usbx_hub_hub_device_disconnect_test.c +++ b/test/regression/usbx_hub_hub_device_disconnect_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where the device connected to the hub is disconnected. The specific test case is in ux_host_class_hub_port_change_connection_process.c. */ diff --git a/test/regression/usbx_hub_hub_device_enumeration_keeps_failing_test.c b/test/regression/usbx_hub_hub_device_enumeration_keeps_failing_test.c index 2c175cee0..9a16d3b9c 100644 --- a/test/regression/usbx_hub_hub_device_enumeration_keeps_failing_test.c +++ b/test/regression/usbx_hub_hub_device_enumeration_keeps_failing_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where the hub device's enumeration keeps failing. The specific test case is in ux_host_class_hub_port_change_connection_process.c. */ diff --git a/test/regression/usbx_hub_hub_status_get_invalid_length_test.c b/test/regression/usbx_hub_hub_status_get_invalid_length_test.c index bb924cd14..249e57767 100644 --- a/test/regression/usbx_hub_hub_status_get_invalid_length_test.c +++ b/test/regression/usbx_hub_hub_status_get_invalid_length_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where the transfer length of the GetHubStatus request is invalid. The specific test case is in ux_host_class_hub_status_get.c. */ diff --git a/test/regression/usbx_hub_interrupt_out_endpoint_test.c b/test/regression/usbx_hub_interrupt_out_endpoint_test.c index b9c78e7c6..28f0f9541 100644 --- a/test/regression/usbx_hub_interrupt_out_endpoint_test.c +++ b/test/regression/usbx_hub_interrupt_out_endpoint_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where the hub's only endpoint is an interrupt OUT (supposed to be IN). Specific test case is in ux_host_class_hub_interrupt_endpoint_start.c. */ diff --git a/test/regression/usbx_hub_invalid_device_protocol_test.c b/test/regression/usbx_hub_invalid_device_protocol_test.c index e1f312999..5c2e7ded1 100644 --- a/test/regression/usbx_hub_invalid_device_protocol_test.c +++ b/test/regression/usbx_hub_invalid_device_protocol_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where the hub reports an invalid device protocol. Specific test case is in ux_host_class_hub_descriptor_get.c. */ diff --git a/test/regression/usbx_hub_invalid_hub_descriptor_length_test.c b/test/regression/usbx_hub_invalid_hub_descriptor_length_test.c index 607e720af..1b996fce9 100644 --- a/test/regression/usbx_hub_invalid_hub_descriptor_length_test.c +++ b/test/regression/usbx_hub_invalid_hub_descriptor_length_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where the length of the hub descriptor is invalid. The exact test case is in ux_host_class_hub_descriptor_get.c. */ diff --git a/test/regression/usbx_hub_low_speed_hub_device_test.c b/test/regression/usbx_hub_low_speed_hub_device_test.c index a14849633..e3fa98b89 100644 --- a/test/regression/usbx_hub_low_speed_hub_device_test.c +++ b/test/regression/usbx_hub_low_speed_hub_device_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where the hub device is low speed. The specific test case is in ux_host_class_hub_port_change_connection_process.c. */ diff --git a/test/regression/usbx_hub_multiple_tt_test.c b/test/regression/usbx_hub_multiple_tt_test.c index ae0b30804..00c40d2a3 100644 --- a/test/regression/usbx_hub_multiple_tt_test.c +++ b/test/regression/usbx_hub_multiple_tt_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where the hub has multiple TTs. Specific test case is in ux_host_class_hub_descriptor_get.c. */ diff --git a/test/regression/usbx_hub_multiple_tt_too_many_hub_ports_test.c b/test/regression/usbx_hub_multiple_tt_too_many_hub_ports_test.c index 3c235df34..5fcddc806 100644 --- a/test/regression/usbx_hub_multiple_tt_too_many_hub_ports_test.c +++ b/test/regression/usbx_hub_multiple_tt_too_many_hub_ports_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where the hub reports an invalid device protocol. Specific test case is in ux_host_class_hub_descriptor_get.c. */ diff --git a/test/regression/usbx_hub_no_endpoints_test.c b/test/regression/usbx_hub_no_endpoints_test.c index 9f8855323..d49d0a91b 100644 --- a/test/regression/usbx_hub_no_endpoints_test.c +++ b/test/regression/usbx_hub_no_endpoints_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where there are no endpoints. Specific test case is in ux_host_class_hub_interrupt_endpoint_start.c. */ diff --git a/test/regression/usbx_hub_no_power_switching_test.c b/test/regression/usbx_hub_no_power_switching_test.c index d4f70e62e..bc4b522d1 100644 --- a/test/regression/usbx_hub_no_power_switching_test.c +++ b/test/regression/usbx_hub_no_power_switching_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where the hub has no power switching. Specific test case is in ux_host_class_hub_ports_power.c. */ diff --git a/test/regression/usbx_hub_non_interrupt_in_endpoint_test.c b/test/regression/usbx_hub_non_interrupt_in_endpoint_test.c index c81929c91..8ac6085aa 100644 --- a/test/regression/usbx_hub_non_interrupt_in_endpoint_test.c +++ b/test/regression/usbx_hub_non_interrupt_in_endpoint_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where the hub's only endpoint is a non-interrupt IN (supposed to be interrupt). Specific test case is in ux_host_class_hub_interrupt_endpoint_start.c. */ diff --git a/test/regression/usbx_hub_port_change_enable_test.c b/test/regression/usbx_hub_port_change_enable_test.c index ed073721a..857dd0d6a 100644 --- a/test/regression/usbx_hub_port_change_enable_test.c +++ b/test/regression/usbx_hub_port_change_enable_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where the hub reports a port ENABLE change. The specific test case is in ux_host_class_hub_port_change_process.c. */ diff --git a/test/regression/usbx_hub_port_change_over_current_test.c b/test/regression/usbx_hub_port_change_over_current_test.c index 80dcefb3f..d4765d727 100644 --- a/test/regression/usbx_hub_port_change_over_current_test.c +++ b/test/regression/usbx_hub_port_change_over_current_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where the hub reports a port OVER_CURRENT change. The specific test case is in ux_host_class_hub_port_change_process.c. */ diff --git a/test/regression/usbx_hub_port_change_reset_test.c b/test/regression/usbx_hub_port_change_reset_test.c index f057e6274..636b1fc7f 100644 --- a/test/regression/usbx_hub_port_change_reset_test.c +++ b/test/regression/usbx_hub_port_change_reset_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where the hub reports a port RESET change. The specific test case is in ux_host_class_hub_port_change_process.c. */ diff --git a/test/regression/usbx_hub_port_change_suspend_test.c b/test/regression/usbx_hub_port_change_suspend_test.c index d2e12674e..d7765d879 100644 --- a/test/regression/usbx_hub_port_change_suspend_test.c +++ b/test/regression/usbx_hub_port_change_suspend_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where the hub reports a port SUSPEND change. The specific test case is in ux_host_class_hub_port_change_process.c. */ diff --git a/test/regression/usbx_hub_port_never_reset_test.c b/test/regression/usbx_hub_port_never_reset_test.c index 1047ac7a9..ea75e4ad7 100644 --- a/test/regression/usbx_hub_port_never_reset_test.c +++ b/test/regression/usbx_hub_port_never_reset_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where the port reset fails because the hub never reports that the port was RESET. The specific test case is in ux_host_class_hub_port_reset.c. */ diff --git a/test/regression/usbx_hub_port_reset_fails_during_hub_device_enum_test.c b/test/regression/usbx_hub_port_reset_fails_during_hub_device_enum_test.c index 86585a647..a8db89f7c 100644 --- a/test/regression/usbx_hub_port_reset_fails_during_hub_device_enum_test.c +++ b/test/regression/usbx_hub_port_reset_fails_during_hub_device_enum_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where the port reset commmand fails when a device connected to the hub is being enumerated. The specific test case is in ux_host_class_hub_port_change_connection_process.c. */ diff --git a/test/regression/usbx_hub_quick_hub_device_disconnection_test.c b/test/regression/usbx_hub_quick_hub_device_disconnection_test.c index 35da46064..f599b1115 100644 --- a/test/regression/usbx_hub_quick_hub_device_disconnection_test.c +++ b/test/regression/usbx_hub_quick_hub_device_disconnection_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where the hub reports a device disconnection even though no device was previously on that port. This can happen if the device is connected then quickly disconnected, before USBX processes the connection. The specific diff --git a/test/regression/usbx_hub_quick_hub_device_reconnection_test.c b/test/regression/usbx_hub_quick_hub_device_reconnection_test.c index 3ce49a391..406f4658d 100644 --- a/test/regression/usbx_hub_quick_hub_device_reconnection_test.c +++ b/test/regression/usbx_hub_quick_hub_device_reconnection_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where the device is connected, disconnected, then reconnected very quickly (in other words, so fast that the HCD thread doesn't detect the disconnection). The specific test case is in ux_host_class_hub_port_change_connection_process.c. */ diff --git a/test/regression/usbx_hub_request_to_hub_itself_test.c b/test/regression/usbx_hub_request_to_hub_itself_test.c index 8755abd22..8321b383a 100644 --- a/test/regression/usbx_hub_request_to_hub_itself_test.c +++ b/test/regression/usbx_hub_request_to_hub_itself_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where the host sends a request to the hub itself and not a port. */ diff --git a/test/regression/usbx_hub_single_tt_too_many_hub_ports_test.c b/test/regression/usbx_hub_single_tt_too_many_hub_ports_test.c index a6cd43147..e407cc083 100644 --- a/test/regression/usbx_hub_single_tt_too_many_hub_ports_test.c +++ b/test/regression/usbx_hub_single_tt_too_many_hub_ports_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where the hub reports an invalid device protocol. Specific test case is in ux_host_class_hub_descriptor_get.c. */ diff --git a/test/regression/usbx_msrc_66679_test.c b/test/regression/usbx_msrc_66679_test.c index 4664b26bd..6a96ec666 100644 --- a/test/regression/usbx_msrc_66679_test.c +++ b/test/regression/usbx_msrc_66679_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_msrc_69702_dfu_dnload_test.c b/test/regression/usbx_msrc_69702_dfu_dnload_test.c index 46edce1a4..6a2d02ada 100644 --- a/test/regression/usbx_msrc_69702_dfu_dnload_test.c +++ b/test/regression/usbx_msrc_69702_dfu_dnload_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_msrc_71934_dfu_upload_test.c b/test/regression/usbx_msrc_71934_dfu_upload_test.c index b3a5dcc7c..80850a683 100644 --- a/test/regression/usbx_msrc_71934_dfu_upload_test.c +++ b/test/regression/usbx_msrc_71934_dfu_upload_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_msrc_72227_host_pima_read_test.c b/test/regression/usbx_msrc_72227_host_pima_read_test.c index ad09aa596..1e4075340 100644 --- a/test/regression/usbx_msrc_72227_host_pima_read_test.c +++ b/test/regression/usbx_msrc_72227_host_pima_read_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_msrc_72427_ecm_host_mac_test.c b/test/regression/usbx_msrc_72427_ecm_host_mac_test.c index 84e20455d..d533b4b39 100644 --- a/test/regression/usbx_msrc_72427_ecm_host_mac_test.c +++ b/test/regression/usbx_msrc_72427_ecm_host_mac_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the case where the mac address string is too long. This is an error. */ diff --git a/test/regression/usbx_msrc_72525_host_pima_obj_handles_get_test.c b/test/regression/usbx_msrc_72525_host_pima_obj_handles_get_test.c index 27589032e..67f26b7d8 100644 --- a/test/regression/usbx_msrc_72525_host_pima_obj_handles_get_test.c +++ b/test/regression/usbx_msrc_72525_host_pima_obj_handles_get_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_msrc_72526_pictbridge_dps_host_start_test.c b/test/regression/usbx_msrc_72526_pictbridge_dps_host_start_test.c index 9cb30dc9f..1c9187948 100644 --- a/test/regression/usbx_msrc_72526_pictbridge_dps_host_start_test.c +++ b/test/regression/usbx_msrc_72526_pictbridge_dps_host_start_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_msrc_72619_host_pima_stor_ids_get_test.c b/test/regression/usbx_msrc_72619_host_pima_stor_ids_get_test.c index 8935c98a3..37ae75ccd 100644 --- a/test/regression/usbx_msrc_72619_host_pima_stor_ids_get_test.c +++ b/test/regression/usbx_msrc_72619_host_pima_stor_ids_get_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_msrc_73386_host_storage_media_open_buffer_test.c b/test/regression/usbx_msrc_73386_host_storage_media_open_buffer_test.c index e7d602484..0bcfb804a 100644 --- a/test/regression/usbx_msrc_73386_host_storage_media_open_buffer_test.c +++ b/test/regression/usbx_msrc_73386_host_storage_media_open_buffer_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_msrc_73492_host_vc_header_parse.c b/test/regression/usbx_msrc_73492_host_vc_header_parse.c index 9fa2d041e..9c24df286 100644 --- a/test/regression/usbx_msrc_73492_host_vc_header_parse.c +++ b/test/regression/usbx_msrc_73492_host_vc_header_parse.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_msrc_73716_cdc_ecm_mac_get_desc_check.c b/test/regression/usbx_msrc_73716_cdc_ecm_mac_get_desc_check.c index 3fe6ce03d..7e4708d47 100644 --- a/test/regression/usbx_msrc_73716_cdc_ecm_mac_get_desc_check.c +++ b/test/regression/usbx_msrc_73716_cdc_ecm_mac_get_desc_check.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* Include necessary system files. */ #include "usbx_ux_test_cdc_ecm.h" diff --git a/test/regression/usbx_msrc_80947_device_cdc_ecm_rx_length_less_than_14.c b/test/regression/usbx_msrc_80947_device_cdc_ecm_rx_length_less_than_14.c index 45f33e8f1..d7a2d51d9 100644 --- a/test/regression/usbx_msrc_80947_device_cdc_ecm_rx_length_less_than_14.c +++ b/test/regression/usbx_msrc_80947_device_cdc_ecm_rx_length_less_than_14.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* Include necessary system files. */ #include "usbx_ux_test_cdc_ecm.h" diff --git a/test/regression/usbx_msrc_80991_device_rndis_rx_length_less_than_14_test.c b/test/regression/usbx_msrc_80991_device_rndis_rx_length_less_than_14_test.c index a5d015c3d..9c9cef502 100644 --- a/test/regression/usbx_msrc_80991_device_rndis_rx_length_less_than_14_test.c +++ b/test/regression/usbx_msrc_80991_device_rndis_rx_length_less_than_14_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #include "ux_api.h" #include "ux_system.h" #include "ux_utility.h" diff --git a/test/regression/usbx_msrc_81024_host_cdc_ecm_rx_length_less_than_14.c b/test/regression/usbx_msrc_81024_host_cdc_ecm_rx_length_less_than_14.c index 774f4796a..b1de38f2d 100644 --- a/test/regression/usbx_msrc_81024_host_cdc_ecm_rx_length_less_than_14.c +++ b/test/regression/usbx_msrc_81024_host_cdc_ecm_rx_length_less_than_14.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* Include necessary system files. */ #include "usbx_ux_test_cdc_ecm.h" diff --git a/test/regression/usbx_msrc_81108_pictbridge_object_parse_test.c b/test/regression/usbx_msrc_81108_pictbridge_object_parse_test.c index 117350965..b0dcf0824 100644 --- a/test/regression/usbx_msrc_81108_pictbridge_object_parse_test.c +++ b/test/regression/usbx_msrc_81108_pictbridge_object_parse_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_msrc_81109_pictbridge_array_element_to_hexa_test.c b/test/regression/usbx_msrc_81109_pictbridge_array_element_to_hexa_test.c index 404f5f5f6..4afd93b93 100644 --- a/test/regression/usbx_msrc_81109_pictbridge_array_element_to_hexa_test.c +++ b/test/regression/usbx_msrc_81109_pictbridge_array_element_to_hexa_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_utility_descriptor_parse. */ #include diff --git a/test/regression/usbx_msrc_81112_host_cdc_ecm_endpoints_get_tests.c b/test/regression/usbx_msrc_81112_host_cdc_ecm_endpoints_get_tests.c index e96673f42..30c726247 100644 --- a/test/regression/usbx_msrc_81112_host_cdc_ecm_endpoints_get_tests.c +++ b/test/regression/usbx_msrc_81112_host_cdc_ecm_endpoints_get_tests.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_msrc_81142_host_storage_endpoints_get_tests.c b/test/regression/usbx_msrc_81142_host_storage_endpoints_get_tests.c index 4a5674e46..a24485fd7 100644 --- a/test/regression/usbx_msrc_81142_host_storage_endpoints_get_tests.c +++ b/test/regression/usbx_msrc_81142_host_storage_endpoints_get_tests.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_msrc_81143_host_cdc_acm_endpoints_get_tests.c b/test/regression/usbx_msrc_81143_host_cdc_acm_endpoints_get_tests.c index f4641caa9..2e11acef4 100644 --- a/test/regression/usbx_msrc_81143_host_cdc_acm_endpoints_get_tests.c +++ b/test/regression/usbx_msrc_81143_host_cdc_acm_endpoints_get_tests.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_msrc_81184_host_audio_desc_validate_test.c b/test/regression/usbx_msrc_81184_host_audio_desc_validate_test.c index 3db3f405f..1bb9730cf 100644 --- a/test/regression/usbx_msrc_81184_host_audio_desc_validate_test.c +++ b/test/regression/usbx_msrc_81184_host_audio_desc_validate_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ /* Compile option requires: -DUX_HOST_CLASS_AUDIO_2_SUPPORT diff --git a/test/regression/usbx_msrc_81206_81225_ecm_multiple_data_reject_test.c b/test/regression/usbx_msrc_81206_81225_ecm_multiple_data_reject_test.c index 2ca59c587..be0523686 100644 --- a/test/regression/usbx_msrc_81206_81225_ecm_multiple_data_reject_test.c +++ b/test/regression/usbx_msrc_81206_81225_ecm_multiple_data_reject_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* Include necessary system files. */ #include "usbx_ux_test_cdc_ecm.h" diff --git a/test/regression/usbx_msrc_81230_host_asix_inst_free_tests.c b/test/regression/usbx_msrc_81230_host_asix_inst_free_tests.c index 97462a186..fcbee7aa9 100644 --- a/test/regression/usbx_msrc_81230_host_asix_inst_free_tests.c +++ b/test/regression/usbx_msrc_81230_host_asix_inst_free_tests.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_msrc_81231_host_prolific_inst_free_tests.c b/test/regression/usbx_msrc_81231_host_prolific_inst_free_tests.c index 202ea7f74..30e77dd2b 100644 --- a/test/regression/usbx_msrc_81231_host_prolific_inst_free_tests.c +++ b/test/regression/usbx_msrc_81231_host_prolific_inst_free_tests.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_msrc_81232_host_gser_inst_free_tests.c b/test/regression/usbx_msrc_81232_host_gser_inst_free_tests.c index 9bbdf747d..e7143a375 100644 --- a/test/regression/usbx_msrc_81232_host_gser_inst_free_tests.c +++ b/test/regression/usbx_msrc_81232_host_gser_inst_free_tests.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_msrc_81233_host_swar_inst_free_tests.c b/test/regression/usbx_msrc_81233_host_swar_inst_free_tests.c index 3b19443b7..9a25ccf27 100644 --- a/test/regression/usbx_msrc_81233_host_swar_inst_free_tests.c +++ b/test/regression/usbx_msrc_81233_host_swar_inst_free_tests.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_msrc_81251_host_hid_report_add_fail_mem_test.c b/test/regression/usbx_msrc_81251_host_hid_report_add_fail_mem_test.c index 2618a3cf6..cc4ea4f67 100644 --- a/test/regression/usbx_msrc_81251_host_hid_report_add_fail_mem_test.c +++ b/test/regression/usbx_msrc_81251_host_hid_report_add_fail_mem_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests ux_host_class_hid_report_add() */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_msrc_81292_host_pima_deactivate_semaphore_test.c b/test/regression/usbx_msrc_81292_host_pima_deactivate_semaphore_test.c index e31607e99..e8a5609e8 100644 --- a/test/regression/usbx_msrc_81292_host_pima_deactivate_semaphore_test.c +++ b/test/regression/usbx_msrc_81292_host_pima_deactivate_semaphore_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_msrc_81323_host_pima_deactivate_no_int_ep_test.c b/test/regression/usbx_msrc_81323_host_pima_deactivate_no_int_ep_test.c index fbec683ae..38dec0f80 100644 --- a/test/regression/usbx_msrc_81323_host_pima_deactivate_no_int_ep_test.c +++ b/test/regression/usbx_msrc_81323_host_pima_deactivate_no_int_ep_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_msrc_81325_host_hid_remote_control_free_callback_test.c b/test/regression/usbx_msrc_81325_host_hid_remote_control_free_callback_test.c index 6bf877b46..2995bf0d5 100644 --- a/test/regression/usbx_msrc_81325_host_hid_remote_control_free_callback_test.c +++ b/test/regression/usbx_msrc_81325_host_hid_remote_control_free_callback_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests the ux_host_class_hid_mouse_wheel_get API. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_msrc_81326_host_hid_keyboard_free_callback_test.c b/test/regression/usbx_msrc_81326_host_hid_keyboard_free_callback_test.c index 849f60dc2..f92810b15 100644 --- a/test/regression/usbx_msrc_81326_host_hid_keyboard_free_callback_test.c +++ b/test/regression/usbx_msrc_81326_host_hid_keyboard_free_callback_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests the ux_host_class_hid_mouse_wheel_get API. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_msrc_81327_host_hid_mouse_free_callback_test.c b/test/regression/usbx_msrc_81327_host_hid_mouse_free_callback_test.c index d9568fc70..161d3858b 100644 --- a/test/regression/usbx_msrc_81327_host_hid_mouse_free_callback_test.c +++ b/test/regression/usbx_msrc_81327_host_hid_mouse_free_callback_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests the ux_host_class_hid_mouse_wheel_get API. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_msrc_81426_host_audio_type_get_fail_ac_link_test.c b/test/regression/usbx_msrc_81426_host_audio_type_get_fail_ac_link_test.c index 582360a70..86732d32d 100644 --- a/test/regression/usbx_msrc_81426_host_audio_type_get_fail_ac_link_test.c +++ b/test/regression/usbx_msrc_81426_host_audio_type_get_fail_ac_link_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ /* Compile option requires: -DUX_HOST_CLASS_AUDIO_2_SUPPORT diff --git a/test/regression/usbx_msrc_81428_81429_host_audio_ac_search_test.c b/test/regression/usbx_msrc_81428_81429_host_audio_ac_search_test.c index 29a3fff30..7346bd885 100644 --- a/test/regression/usbx_msrc_81428_81429_host_audio_ac_search_test.c +++ b/test/regression/usbx_msrc_81428_81429_host_audio_ac_search_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ /* Compile option requires: -DUX_HOST_CLASS_AUDIO_2_SUPPORT diff --git a/test/regression/usbx_msrc_81489_81570_host_cdc_acm_standalone_ac_search_test.c b/test/regression/usbx_msrc_81489_81570_host_cdc_acm_standalone_ac_search_test.c index 2e89e5a01..c0a4a2461 100644 --- a/test/regression/usbx_msrc_81489_81570_host_cdc_acm_standalone_ac_search_test.c +++ b/test/regression/usbx_msrc_81489_81570_host_cdc_acm_standalone_ac_search_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_msrc_81572_standalone_host_printer_allocated_enum_free_test.c b/test/regression/usbx_msrc_81572_standalone_host_printer_allocated_enum_free_test.c index d09156bde..a1ebbb40c 100644 --- a/test/regression/usbx_msrc_81572_standalone_host_printer_allocated_enum_free_test.c +++ b/test/regression/usbx_msrc_81572_standalone_host_printer_allocated_enum_free_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_msrc_81573_standalone_host_hub_allocated_enum_free_test.c b/test/regression/usbx_msrc_81573_standalone_host_hub_allocated_enum_free_test.c index 8000eab58..f8c67f103 100644 --- a/test/regression/usbx_msrc_81573_standalone_host_hub_allocated_enum_free_test.c +++ b/test/regression/usbx_msrc_81573_standalone_host_hub_allocated_enum_free_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_msrc_81574_standalone_host_hid_allocated_enum_free_test.c b/test/regression/usbx_msrc_81574_standalone_host_hid_allocated_enum_free_test.c index 65a9cfbd6..aa145ff03 100644 --- a/test/regression/usbx_msrc_81574_standalone_host_hid_allocated_enum_free_test.c +++ b/test/regression/usbx_msrc_81574_standalone_host_hid_allocated_enum_free_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_msrc_81575_standalone_host_cdc_acm_allocated_enum_free_test.c b/test/regression/usbx_msrc_81575_standalone_host_cdc_acm_allocated_enum_free_test.c index 4052d95c1..aac5ad39c 100644 --- a/test/regression/usbx_msrc_81575_standalone_host_cdc_acm_allocated_enum_free_test.c +++ b/test/regression/usbx_msrc_81575_standalone_host_cdc_acm_allocated_enum_free_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_msrc_81691_standalone_host_stack_enum_double_free_test.c b/test/regression/usbx_msrc_81691_standalone_host_stack_enum_double_free_test.c index 0cb8e78c3..3416f4854 100644 --- a/test/regression/usbx_msrc_81691_standalone_host_stack_enum_double_free_test.c +++ b/test/regression/usbx_msrc_81691_standalone_host_stack_enum_double_free_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_msrc_84686_host_pima_storage_info_get_test.c b/test/regression/usbx_msrc_84686_host_pima_storage_info_get_test.c index 2b90a9de7..0ccc702f6 100644 --- a/test/regression/usbx_msrc_84686_host_pima_storage_info_get_test.c +++ b/test/regression/usbx_msrc_84686_host_pima_storage_info_get_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_pictbridge_basic_test.c b/test/regression/usbx_pictbridge_basic_test.c index 5f07e9a5b..d7da6f311 100644 --- a/test/regression/usbx_pictbridge_basic_test.c +++ b/test/regression/usbx_pictbridge_basic_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_pima_basic_test.c b/test/regression/usbx_pima_basic_test.c index 0ea99120f..b9335ddf5 100644 --- a/test/regression/usbx_pima_basic_test.c +++ b/test/regression/usbx_pima_basic_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_rndis_basic_test.c b/test/regression/usbx_rndis_basic_test.c index 55fb187ab..0b5c70eb3 100644 --- a/test/regression/usbx_rndis_basic_test.c +++ b/test/regression/usbx_rndis_basic_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #include "ux_api.h" #include "ux_system.h" #include "ux_utility.h" diff --git a/test/regression/usbx_standalone_cdc_acm_basic_memory_test.c b/test/regression/usbx_standalone_cdc_acm_basic_memory_test.c index 0a713ae92..8db31f39d 100644 --- a/test/regression/usbx_standalone_cdc_acm_basic_memory_test.c +++ b/test/regression/usbx_standalone_cdc_acm_basic_memory_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_standalone_cdc_acm_basic_test.c b/test/regression/usbx_standalone_cdc_acm_basic_test.c index e2105b7b9..ff645ead4 100644 --- a/test/regression/usbx_standalone_cdc_acm_basic_test.c +++ b/test/regression/usbx_standalone_cdc_acm_basic_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_standalone_device_cdc_acm_basic_memory_test.c b/test/regression/usbx_standalone_device_cdc_acm_basic_memory_test.c index 2c12d1215..9b34811e9 100644 --- a/test/regression/usbx_standalone_device_cdc_acm_basic_memory_test.c +++ b/test/regression/usbx_standalone_device_cdc_acm_basic_memory_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_standalone_device_cdc_acm_basic_test.c b/test/regression/usbx_standalone_device_cdc_acm_basic_test.c index a2441223a..71e3c539a 100644 --- a/test/regression/usbx_standalone_device_cdc_acm_basic_test.c +++ b/test/regression/usbx_standalone_device_cdc_acm_basic_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_standalone_device_cdc_acm_transmission_test.c b/test/regression/usbx_standalone_device_cdc_acm_transmission_test.c index 966c686e4..be21eb2ab 100644 --- a/test/regression/usbx_standalone_device_cdc_acm_transmission_test.c +++ b/test/regression/usbx_standalone_device_cdc_acm_transmission_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_standalone_device_storage_basic_test.c b/test/regression/usbx_standalone_device_storage_basic_test.c index 660bae254..08110c9bd 100644 --- a/test/regression/usbx_standalone_device_storage_basic_test.c +++ b/test/regression/usbx_standalone_device_storage_basic_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_standalone_device_storage_error_cv_test.c b/test/regression/usbx_standalone_device_storage_error_cv_test.c index 4fd64c3be..497f0adb8 100644 --- a/test/regression/usbx_standalone_device_storage_error_cv_test.c +++ b/test/regression/usbx_standalone_device_storage_error_cv_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_standalone_device_storage_read_write_test.c b/test/regression/usbx_standalone_device_storage_read_write_test.c index 5bc6a646c..cf8139be7 100644 --- a/test/regression/usbx_standalone_device_storage_read_write_test.c +++ b/test/regression/usbx_standalone_device_storage_read_write_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_standalone_host_storage_basic_test.c b/test/regression/usbx_standalone_host_storage_basic_test.c index d2a318f93..e700bf92c 100644 --- a/test/regression/usbx_standalone_host_storage_basic_test.c +++ b/test/regression/usbx_standalone_host_storage_basic_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_standalone_host_storage_insert_eject_test.c b/test/regression/usbx_standalone_host_storage_insert_eject_test.c index d25ce9ea9..299ad183f 100644 --- a/test/regression/usbx_standalone_host_storage_insert_eject_test.c +++ b/test/regression/usbx_standalone_host_storage_insert_eject_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_standalone_host_storage_read_write_test.c b/test/regression/usbx_standalone_host_storage_read_write_test.c index a8ad6481c..1d703cfcb 100644 --- a/test/regression/usbx_standalone_host_storage_read_write_test.c +++ b/test/regression/usbx_standalone_host_storage_read_write_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_storage_basic_memory_test.c b/test/regression/usbx_storage_basic_memory_test.c index 170fdefbe..771d2ac9f 100644 --- a/test/regression/usbx_storage_basic_memory_test.c +++ b/test/regression/usbx_storage_basic_memory_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_storage_direct_calls_test.c b/test/regression/usbx_storage_direct_calls_test.c index 8a45d9c94..62372437d 100644 --- a/test/regression/usbx_storage_direct_calls_test.c +++ b/test/regression/usbx_storage_direct_calls_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #include "usbx_test_common_storage.h" #include "tx_thread.h" diff --git a/test/regression/usbx_storage_multi_lun_test.c b/test/regression/usbx_storage_multi_lun_test.c index 39b5a76eb..c80532e53 100644 --- a/test/regression/usbx_storage_multi_lun_test.c +++ b/test/regression/usbx_storage_multi_lun_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_storage_tests.c b/test/regression/usbx_storage_tests.c index 15e350396..1fc8b1fab 100644 --- a/test/regression/usbx_storage_tests.c +++ b/test/regression/usbx_storage_tests.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #include #include #include "fx_api.h" diff --git a/test/regression/usbx_test_USBX_141_keyboard_layout.c b/test/regression/usbx_test_USBX_141_keyboard_layout.c index f2f36aa93..df999de4a 100644 --- a/test/regression/usbx_test_USBX_141_keyboard_layout.c +++ b/test/regression/usbx_test_USBX_141_keyboard_layout.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test concentrates on the ux_host_class_hid_keyboard_key_get API. */ #include diff --git a/test/regression/usbx_test_USBX_142_DTR_callback.c b/test/regression/usbx_test_USBX_142_DTR_callback.c index 8085f3019..efaab26aa 100644 --- a/test/regression/usbx_test_USBX_142_DTR_callback.c +++ b/test/regression/usbx_test_USBX_142_DTR_callback.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_test_USBX_6_ux_version_id.c b/test/regression/usbx_test_USBX_6_ux_version_id.c index af092d689..93a7664ea 100644 --- a/test/regression/usbx_test_USBX_6_ux_version_id.c +++ b/test/regression/usbx_test_USBX_6_ux_version_id.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_utility_timer_.... */ #include diff --git a/test/regression/usbx_test_common.h b/test/regression/usbx_test_common.h index fbc75ea8e..47c71c796 100644 --- a/test/regression/usbx_test_common.h +++ b/test/regression/usbx_test_common.h @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #include /* This is how ux_utility_memory_allocate calculates the final memory size. */ diff --git a/test/regression/usbx_test_common_hid.h b/test/regression/usbx_test_common_hid.h index a017dc1b0..13b77c128 100644 --- a/test/regression/usbx_test_common_hid.h +++ b/test/regression/usbx_test_common_hid.h @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #include #include #include "tx_api.h" diff --git a/test/regression/usbx_test_common_storage.h b/test/regression/usbx_test_common_storage.h index 5d24ab314..ff2eefa5b 100644 --- a/test/regression/usbx_test_common_storage.h +++ b/test/regression/usbx_test_common_storage.h @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_api_tracex_id_test.c b/test/regression/usbx_ux_api_tracex_id_test.c index 1854fae3f..71a084eaa 100644 --- a/test/regression/usbx_ux_api_tracex_id_test.c +++ b/test/regression/usbx_ux_api_tracex_id_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_utility_thread_identify. */ #include diff --git a/test/regression/usbx_ux_device_class_cdc_acm_activate_test.c b/test/regression/usbx_ux_device_class_cdc_acm_activate_test.c index 89308b14c..7e3c7fdca 100644 --- a/test/regression/usbx_ux_device_class_cdc_acm_activate_test.c +++ b/test/regression/usbx_ux_device_class_cdc_acm_activate_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_device_class_cdc_acm_bulkout_thread_test.c b/test/regression/usbx_ux_device_class_cdc_acm_bulkout_thread_test.c index 0346112f9..cf1f55812 100644 --- a/test/regression/usbx_ux_device_class_cdc_acm_bulkout_thread_test.c +++ b/test/regression/usbx_ux_device_class_cdc_acm_bulkout_thread_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_device_class_cdc_acm_deactivate_test.c b/test/regression/usbx_ux_device_class_cdc_acm_deactivate_test.c index e8553e622..710a92f8c 100644 --- a/test/regression/usbx_ux_device_class_cdc_acm_deactivate_test.c +++ b/test/regression/usbx_ux_device_class_cdc_acm_deactivate_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_device_class_cdc_acm_ioctl_test.c b/test/regression/usbx_ux_device_class_cdc_acm_ioctl_test.c index a454456b1..fde39013e 100644 --- a/test/regression/usbx_ux_device_class_cdc_acm_ioctl_test.c +++ b/test/regression/usbx_ux_device_class_cdc_acm_ioctl_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_device_class_cdc_acm_timeout_test.c b/test/regression/usbx_ux_device_class_cdc_acm_timeout_test.c index 29073ba08..a9eba5bb8 100644 --- a/test/regression/usbx_ux_device_class_cdc_acm_timeout_test.c +++ b/test/regression/usbx_ux_device_class_cdc_acm_timeout_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_device_class_cdc_acm_transmission_test.c b/test/regression/usbx_ux_device_class_cdc_acm_transmission_test.c index d393e80a4..1ee6458ca 100644 --- a/test/regression/usbx_ux_device_class_cdc_acm_transmission_test.c +++ b/test/regression/usbx_ux_device_class_cdc_acm_transmission_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_device_class_cdc_acm_write_test.c b/test/regression/usbx_ux_device_class_cdc_acm_write_test.c index 67314983e..614638357 100644 --- a/test/regression/usbx_ux_device_class_cdc_acm_write_test.c +++ b/test/regression/usbx_ux_device_class_cdc_acm_write_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_device_class_cdc_ecm_activate_test.c b/test/regression/usbx_ux_device_class_cdc_ecm_activate_test.c index 67cee5cbf..8b21e9201 100644 --- a/test/regression/usbx_ux_device_class_cdc_ecm_activate_test.c +++ b/test/regression/usbx_ux_device_class_cdc_ecm_activate_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* Include necessary system files. */ #include "usbx_ux_test_cdc_ecm.h" diff --git a/test/regression/usbx_ux_device_class_cdc_ecm_bulkin_thread_test.c b/test/regression/usbx_ux_device_class_cdc_ecm_bulkin_thread_test.c index 8f5826865..7cab2db4b 100644 --- a/test/regression/usbx_ux_device_class_cdc_ecm_bulkin_thread_test.c +++ b/test/regression/usbx_ux_device_class_cdc_ecm_bulkin_thread_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* Include necessary system files. */ #include "usbx_ux_test_cdc_ecm.h" diff --git a/test/regression/usbx_ux_device_class_cdc_ecm_bulkout_thread_test.c b/test/regression/usbx_ux_device_class_cdc_ecm_bulkout_thread_test.c index eb61e9306..1888af14c 100644 --- a/test/regression/usbx_ux_device_class_cdc_ecm_bulkout_thread_test.c +++ b/test/regression/usbx_ux_device_class_cdc_ecm_bulkout_thread_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* Include necessary system files. */ #include "usbx_ux_test_cdc_ecm.h" diff --git a/test/regression/usbx_ux_device_class_cdc_ecm_change_test.c b/test/regression/usbx_ux_device_class_cdc_ecm_change_test.c index c90c0b560..b349af6d9 100644 --- a/test/regression/usbx_ux_device_class_cdc_ecm_change_test.c +++ b/test/regression/usbx_ux_device_class_cdc_ecm_change_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* Include necessary system files. */ #include "usbx_ux_test_cdc_ecm.h" diff --git a/test/regression/usbx_ux_device_class_cdc_ecm_control_request_test.c b/test/regression/usbx_ux_device_class_cdc_ecm_control_request_test.c index 5c812b866..331275101 100644 --- a/test/regression/usbx_ux_device_class_cdc_ecm_control_request_test.c +++ b/test/regression/usbx_ux_device_class_cdc_ecm_control_request_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* Include necessary system files. */ #include "usbx_ux_test_cdc_ecm.h" diff --git a/test/regression/usbx_ux_device_class_cdc_ecm_deactivate_test.c b/test/regression/usbx_ux_device_class_cdc_ecm_deactivate_test.c index 9cf5a3be2..f2a5bf8d2 100644 --- a/test/regression/usbx_ux_device_class_cdc_ecm_deactivate_test.c +++ b/test/regression/usbx_ux_device_class_cdc_ecm_deactivate_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* Include necessary system files. */ #include "usbx_ux_test_cdc_ecm.h" diff --git a/test/regression/usbx_ux_device_class_cdc_ecm_entry_test.c b/test/regression/usbx_ux_device_class_cdc_ecm_entry_test.c index 5472299c0..e26ae7c62 100644 --- a/test/regression/usbx_ux_device_class_cdc_ecm_entry_test.c +++ b/test/regression/usbx_ux_device_class_cdc_ecm_entry_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* Include necessary system files. */ #include "usbx_ux_test_cdc_ecm.h" diff --git a/test/regression/usbx_ux_device_class_cdc_ecm_initialize_test.c b/test/regression/usbx_ux_device_class_cdc_ecm_initialize_test.c index d82254007..47dff03fa 100644 --- a/test/regression/usbx_ux_device_class_cdc_ecm_initialize_test.c +++ b/test/regression/usbx_ux_device_class_cdc_ecm_initialize_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* Include necessary system files. */ #include "usbx_ux_test_cdc_ecm.h" diff --git a/test/regression/usbx_ux_device_class_cdc_ecm_interrupt_thread_test.c b/test/regression/usbx_ux_device_class_cdc_ecm_interrupt_thread_test.c index 5ba6d3313..59953c11d 100644 --- a/test/regression/usbx_ux_device_class_cdc_ecm_interrupt_thread_test.c +++ b/test/regression/usbx_ux_device_class_cdc_ecm_interrupt_thread_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* Include necessary system files. */ #include "usbx_ux_test_cdc_ecm.h" diff --git a/test/regression/usbx_ux_device_class_cdc_ecm_uninitialize_test.c b/test/regression/usbx_ux_device_class_cdc_ecm_uninitialize_test.c index 6071c3c60..29e7359e2 100644 --- a/test/regression/usbx_ux_device_class_cdc_ecm_uninitialize_test.c +++ b/test/regression/usbx_ux_device_class_cdc_ecm_uninitialize_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* Include necessary system files. */ #include "ux_api.h" diff --git a/test/regression/usbx_ux_device_class_hid_activate_test.c b/test/regression/usbx_ux_device_class_hid_activate_test.c index aa03a00e5..cac534831 100644 --- a/test/regression/usbx_ux_device_class_hid_activate_test.c +++ b/test/regression/usbx_ux_device_class_hid_activate_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests the ux_device_class_hid_activate API. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_ux_device_class_hid_activate_test2.c b/test/regression/usbx_ux_device_class_hid_activate_test2.c index 27efee8b4..31dcda591 100644 --- a/test/regression/usbx_ux_device_class_hid_activate_test2.c +++ b/test/regression/usbx_ux_device_class_hid_activate_test2.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #include "usbx_test_common_hid.h" #include "ux_host_class_hid_keyboard.h" diff --git a/test/regression/usbx_ux_device_class_hid_activate_test3.c b/test/regression/usbx_ux_device_class_hid_activate_test3.c index 17dc47f3f..9511d2153 100644 --- a/test/regression/usbx_ux_device_class_hid_activate_test3.c +++ b/test/regression/usbx_ux_device_class_hid_activate_test3.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #include "usbx_test_common_hid.h" #include "ux_host_class_hid_keyboard.h" diff --git a/test/regression/usbx_ux_device_class_hid_basic_memory_test.c b/test/regression/usbx_ux_device_class_hid_basic_memory_test.c index 9f72b178a..7eea3128b 100644 --- a/test/regression/usbx_ux_device_class_hid_basic_memory_test.c +++ b/test/regression/usbx_ux_device_class_hid_basic_memory_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests the ux_device_class_hid API. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_ux_device_class_hid_control_request_test.c b/test/regression/usbx_ux_device_class_hid_control_request_test.c index e8f90877e..0b3eb6f6d 100644 --- a/test/regression/usbx_ux_device_class_hid_control_request_test.c +++ b/test/regression/usbx_ux_device_class_hid_control_request_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests _ux_device_class_hid_control_request(). Note that the 4 requests we're testing (GET_IDLE, SET_IDLE, GET_PROTOCOL, and SET_PROTOCOL) have yet to be implemented on the device; Therefore, right now, not much is done in the way of checking output. */ diff --git a/test/regression/usbx_ux_device_class_hid_deactivate_test.c b/test/regression/usbx_ux_device_class_hid_deactivate_test.c index 16737e461..3eef093e6 100644 --- a/test/regression/usbx_ux_device_class_hid_deactivate_test.c +++ b/test/regression/usbx_ux_device_class_hid_deactivate_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests the ux_device_class_hid_deactivate API. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_ux_device_class_hid_descriptor_send_test.c b/test/regression/usbx_ux_device_class_hid_descriptor_send_test.c index 52f2a47e1..b86bb29c9 100644 --- a/test/regression/usbx_ux_device_class_hid_descriptor_send_test.c +++ b/test/regression/usbx_ux_device_class_hid_descriptor_send_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #include "usbx_test_common_hid.h" #include "ux_host_class_hid_keyboard.h" diff --git a/test/regression/usbx_ux_device_class_hid_entry_test.c b/test/regression/usbx_ux_device_class_hid_entry_test.c index 78b529db8..bff9f7ac2 100644 --- a/test/regression/usbx_ux_device_class_hid_entry_test.c +++ b/test/regression/usbx_ux_device_class_hid_entry_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests the ux_device_class_hid_entry API. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_ux_device_class_hid_event_get_AND_set_test.c b/test/regression/usbx_ux_device_class_hid_event_get_AND_set_test.c index 98172cc03..177d775df 100644 --- a/test/regression/usbx_ux_device_class_hid_event_get_AND_set_test.c +++ b/test/regression/usbx_ux_device_class_hid_event_get_AND_set_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #include "usbx_test_common_hid.h" #include "ux_host_class_hid_keyboard.h" diff --git a/test/regression/usbx_ux_device_class_hid_idle_rate_test.c b/test/regression/usbx_ux_device_class_hid_idle_rate_test.c index 61bee745d..40fc9cdff 100644 --- a/test/regression/usbx_ux_device_class_hid_idle_rate_test.c +++ b/test/regression/usbx_ux_device_class_hid_idle_rate_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests the * _ux_device_class_hid_control_request * _ux_device_class_hid_interrupt_thread diff --git a/test/regression/usbx_ux_device_class_hid_initialize_test.c b/test/regression/usbx_ux_device_class_hid_initialize_test.c index 379dba692..416c6b49b 100644 --- a/test/regression/usbx_ux_device_class_hid_initialize_test.c +++ b/test/regression/usbx_ux_device_class_hid_initialize_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #include "usbx_test_common_hid.h" #include "ux_host_class_hid_keyboard.h" diff --git a/test/regression/usbx_ux_device_class_hid_interrupt_thread_test.c b/test/regression/usbx_ux_device_class_hid_interrupt_thread_test.c index 80c65b63f..8cdcd3b20 100644 --- a/test/regression/usbx_ux_device_class_hid_interrupt_thread_test.c +++ b/test/regression/usbx_ux_device_class_hid_interrupt_thread_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests _ux_device_class_hid_interrupt_thread(), which only runs when there is a new event available in the queue. */ diff --git a/test/regression/usbx_ux_device_class_hid_interrupt_thread_test2.c b/test/regression/usbx_ux_device_class_hid_interrupt_thread_test2.c index 4f1adba45..de7bbef99 100644 --- a/test/regression/usbx_ux_device_class_hid_interrupt_thread_test2.c +++ b/test/regression/usbx_ux_device_class_hid_interrupt_thread_test2.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests _ux_device_class_hid_interrupt_thread(), which only runs when there is a new event available in the queue. */ diff --git a/test/regression/usbx_ux_device_class_hid_read_test.c b/test/regression/usbx_ux_device_class_hid_read_test.c index dd26a4983..0090bccb5 100644 --- a/test/regression/usbx_ux_device_class_hid_read_test.c +++ b/test/regression/usbx_ux_device_class_hid_read_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests the * _ux_device_class_hid_control_request * _ux_device_class_hid_interrupt_thread diff --git a/test/regression/usbx_ux_device_class_hid_receiver_memory_test.c b/test/regression/usbx_ux_device_class_hid_receiver_memory_test.c index 89a52c948..c91bedc7f 100644 --- a/test/regression/usbx_ux_device_class_hid_receiver_memory_test.c +++ b/test/regression/usbx_ux_device_class_hid_receiver_memory_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests the ux_device_class_hid API. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_ux_device_class_hid_receiver_test.c b/test/regression/usbx_ux_device_class_hid_receiver_test.c index 2643b972b..baea6f0cc 100644 --- a/test/regression/usbx_ux_device_class_hid_receiver_test.c +++ b/test/regression/usbx_ux_device_class_hid_receiver_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests the * _ux_device_class_hid_control_request * _ux_device_class_hid_interrupt_thread diff --git a/test/regression/usbx_ux_device_class_hid_report_set_test.c b/test/regression/usbx_ux_device_class_hid_report_set_test.c index 3210f0c0f..8ac319e46 100644 --- a/test/regression/usbx_ux_device_class_hid_report_set_test.c +++ b/test/regression/usbx_ux_device_class_hid_report_set_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test concentrates on ux_device_class_hid_report_set(), specifically when the report id is non-zero and the report to set is larger than the device's event buffer length. */ diff --git a/test/regression/usbx_ux_device_class_hid_report_set_test2.c b/test/regression/usbx_ux_device_class_hid_report_set_test2.c index 01c70273d..947555db5 100644 --- a/test/regression/usbx_ux_device_class_hid_report_set_test2.c +++ b/test/regression/usbx_ux_device_class_hid_report_set_test2.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /**************************************************/ /** Test case: if (hid -> ux_device_class_hid_callback != UX_NULL) fails. **/ /** How: Do hid_parameter.ux_device_class_hid_parameter_callback = UX_NULL; before passing hid_parameter to device class register function. **/ diff --git a/test/regression/usbx_ux_device_class_hid_report_test.c b/test/regression/usbx_ux_device_class_hid_report_test.c index 92a6a7723..f1a9983b9 100644 --- a/test/regression/usbx_ux_device_class_hid_report_test.c +++ b/test/regression/usbx_ux_device_class_hid_report_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests the ux_device_class_hid API. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_ux_device_class_hid_set_protocol_callback_test.c b/test/regression/usbx_ux_device_class_hid_set_protocol_callback_test.c index b1c0e7105..9386c1dd5 100644 --- a/test/regression/usbx_ux_device_class_hid_set_protocol_callback_test.c +++ b/test/regression/usbx_ux_device_class_hid_set_protocol_callback_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test focuses on HID device class protocol set/get functionality and related callbacks. */ #include diff --git a/test/regression/usbx_ux_device_class_hid_uninitialize_test.c b/test/regression/usbx_ux_device_class_hid_uninitialize_test.c index 1dfe9ecc0..5c57d8ac6 100644 --- a/test/regression/usbx_ux_device_class_hid_uninitialize_test.c +++ b/test/regression/usbx_ux_device_class_hid_uninitialize_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #include "usbx_test_common_hid.h" #include "ux_host_class_hid_keyboard.h" diff --git a/test/regression/usbx_ux_device_class_hid_wMaxPacketSize_test.c b/test/regression/usbx_ux_device_class_hid_wMaxPacketSize_test.c index 2dd87e7de..ca454be5a 100644 --- a/test/regression/usbx_ux_device_class_hid_wMaxPacketSize_test.c +++ b/test/regression/usbx_ux_device_class_hid_wMaxPacketSize_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests the * _ux_device_class_hid_control_request * _ux_device_class_hid_interrupt_thread diff --git a/test/regression/usbx_ux_device_class_storage_control_request_test.c b/test/regression/usbx_ux_device_class_storage_control_request_test.c index 483f691f5..2c5ca6126 100644 --- a/test/regression/usbx_ux_device_class_storage_control_request_test.c +++ b/test/regression/usbx_ux_device_class_storage_control_request_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_device_class_storage_entry_test.c b/test/regression/usbx_ux_device_class_storage_entry_test.c index 4758b97af..8377809f2 100644 --- a/test/regression/usbx_ux_device_class_storage_entry_test.c +++ b/test/regression/usbx_ux_device_class_storage_entry_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_device_class_storage_format_test.c b/test/regression/usbx_ux_device_class_storage_format_test.c index 06f3160d5..fa2b39ebc 100644 --- a/test/regression/usbx_ux_device_class_storage_format_test.c +++ b/test/regression/usbx_ux_device_class_storage_format_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_device_class_storage_initialize_test.c b/test/regression/usbx_ux_device_class_storage_initialize_test.c index 80581074d..031a9a492 100644 --- a/test/regression/usbx_ux_device_class_storage_initialize_test.c +++ b/test/regression/usbx_ux_device_class_storage_initialize_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_device_class_storage_inquiry_test.c b/test/regression/usbx_ux_device_class_storage_inquiry_test.c index 03c64dace..32972c50c 100644 --- a/test/regression/usbx_ux_device_class_storage_inquiry_test.c +++ b/test/regression/usbx_ux_device_class_storage_inquiry_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_device_class_storage_invalid_lun_test.c b/test/regression/usbx_ux_device_class_storage_invalid_lun_test.c index b691bb3ef..69198c48f 100644 --- a/test/regression/usbx_ux_device_class_storage_invalid_lun_test.c +++ b/test/regression/usbx_ux_device_class_storage_invalid_lun_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_device_class_storage_media_start_stop_test.c b/test/regression/usbx_ux_device_class_storage_media_start_stop_test.c index 4dc96211e..af1090608 100644 --- a/test/regression/usbx_ux_device_class_storage_media_start_stop_test.c +++ b/test/regression/usbx_ux_device_class_storage_media_start_stop_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to cover ux_slave_class_storage_media_start_stop callback handling. */ #include diff --git a/test/regression/usbx_ux_device_class_storage_mode_select_test.c b/test/regression/usbx_ux_device_class_storage_mode_select_test.c index 05548c60c..e4e98ea25 100644 --- a/test/regression/usbx_ux_device_class_storage_mode_select_test.c +++ b/test/regression/usbx_ux_device_class_storage_mode_select_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_device_class_storage_mode_sense_test.c b/test/regression/usbx_ux_device_class_storage_mode_sense_test.c index d7e5f6fbd..0dd8f4fd8 100644 --- a/test/regression/usbx_ux_device_class_storage_mode_sense_test.c +++ b/test/regression/usbx_ux_device_class_storage_mode_sense_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_device_class_storage_prevent_allow_media_removal_test.c b/test/regression/usbx_ux_device_class_storage_prevent_allow_media_removal_test.c index 66429d49f..31c7291d0 100644 --- a/test/regression/usbx_ux_device_class_storage_prevent_allow_media_removal_test.c +++ b/test/regression/usbx_ux_device_class_storage_prevent_allow_media_removal_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_device_class_storage_read_test.c b/test/regression/usbx_ux_device_class_storage_read_test.c index 57d94250b..e689ddd18 100644 --- a/test/regression/usbx_ux_device_class_storage_read_test.c +++ b/test/regression/usbx_ux_device_class_storage_read_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_device_class_storage_request_sense_coverage_test.c b/test/regression/usbx_ux_device_class_storage_request_sense_coverage_test.c index 869f0f66c..09179cf5d 100644 --- a/test/regression/usbx_ux_device_class_storage_request_sense_coverage_test.c +++ b/test/regression/usbx_ux_device_class_storage_request_sense_coverage_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #include #include "tx_api.h" #include "ux_api.h" diff --git a/test/regression/usbx_ux_device_class_storage_request_sense_test.c b/test/regression/usbx_ux_device_class_storage_request_sense_test.c index 5cedef8b6..b21028215 100644 --- a/test/regression/usbx_ux_device_class_storage_request_sense_test.c +++ b/test/regression/usbx_ux_device_class_storage_request_sense_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_device_class_storage_start_stop_test.c b/test/regression/usbx_ux_device_class_storage_start_stop_test.c index bf432b619..fe0a16485 100644 --- a/test/regression/usbx_ux_device_class_storage_start_stop_test.c +++ b/test/regression/usbx_ux_device_class_storage_start_stop_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_device_class_storage_synchronize_cache_test.c b/test/regression/usbx_ux_device_class_storage_synchronize_cache_test.c index 6a5eb0f99..57bb9b06a 100644 --- a/test/regression/usbx_ux_device_class_storage_synchronize_cache_test.c +++ b/test/regression/usbx_ux_device_class_storage_synchronize_cache_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_device_class_storage_test_ready_test.c b/test/regression/usbx_ux_device_class_storage_test_ready_test.c index 014cb16f4..1213b1cbd 100644 --- a/test/regression/usbx_ux_device_class_storage_test_ready_test.c +++ b/test/regression/usbx_ux_device_class_storage_test_ready_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_device_class_storage_thread_test.c b/test/regression/usbx_ux_device_class_storage_thread_test.c index dfd33d8ee..553bb9e6f 100644 --- a/test/regression/usbx_ux_device_class_storage_thread_test.c +++ b/test/regression/usbx_ux_device_class_storage_thread_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_device_class_storage_uninitialize_test.c b/test/regression/usbx_ux_device_class_storage_uninitialize_test.c index dc0b52643..d6f366c40 100644 --- a/test/regression/usbx_ux_device_class_storage_uninitialize_test.c +++ b/test/regression/usbx_ux_device_class_storage_uninitialize_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_device_class_storage_vendor_strings_test.c b/test/regression/usbx_ux_device_class_storage_vendor_strings_test.c index cccc6edfa..b729ce98a 100644 --- a/test/regression/usbx_ux_device_class_storage_vendor_strings_test.c +++ b/test/regression/usbx_ux_device_class_storage_vendor_strings_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_device_class_storage_verify_test.c b/test/regression/usbx_ux_device_class_storage_verify_test.c index ec6878763..96a0fdc79 100644 --- a/test/regression/usbx_ux_device_class_storage_verify_test.c +++ b/test/regression/usbx_ux_device_class_storage_verify_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_device_class_storage_write_test.c b/test/regression/usbx_ux_device_class_storage_write_test.c index 7d2aa061f..cb4a4e0a3 100644 --- a/test/regression/usbx_ux_device_class_storage_write_test.c +++ b/test/regression/usbx_ux_device_class_storage_write_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_device_class_video_basic_tests.c b/test/regression/usbx_ux_device_class_video_basic_tests.c index 6ee0ffe6d..27c3c6215 100644 --- a/test/regression/usbx_ux_device_class_video_basic_tests.c +++ b/test/regression/usbx_ux_device_class_video_basic_tests.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple video host/device class operation. */ #include diff --git a/test/regression/usbx_ux_device_stack_alternate_setting_get_test.c b/test/regression/usbx_ux_device_stack_alternate_setting_get_test.c index b99b1d6be..701748da5 100644 --- a/test/regression/usbx_ux_device_stack_alternate_setting_get_test.c +++ b/test/regression/usbx_ux_device_stack_alternate_setting_get_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_device_stack_alternate_setting_get. */ #include diff --git a/test/regression/usbx_ux_device_stack_alternate_setting_set_test.c b/test/regression/usbx_ux_device_stack_alternate_setting_set_test.c index 7ee180724..03e947b7b 100644 --- a/test/regression/usbx_ux_device_stack_alternate_setting_set_test.c +++ b/test/regression/usbx_ux_device_stack_alternate_setting_set_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_device_stack_alternate_setting_set. */ #include diff --git a/test/regression/usbx_ux_device_stack_bos_test.c b/test/regression/usbx_ux_device_stack_bos_test.c index 1393b162b..4ff81fe0a 100644 --- a/test/regression/usbx_ux_device_stack_bos_test.c +++ b/test/regression/usbx_ux_device_stack_bos_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the BOS. */ #include diff --git a/test/regression/usbx_ux_device_stack_class_control_request_test.c b/test/regression/usbx_ux_device_stack_class_control_request_test.c index d2e27100a..c41313324 100644 --- a/test/regression/usbx_ux_device_stack_class_control_request_test.c +++ b/test/regression/usbx_ux_device_stack_class_control_request_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #include #include "tx_api.h" #include "ux_api.h" diff --git a/test/regression/usbx_ux_device_stack_class_register_test.c b/test/regression/usbx_ux_device_stack_class_register_test.c index 1dd278569..37c55fbd0 100644 --- a/test/regression/usbx_ux_device_stack_class_register_test.c +++ b/test/regression/usbx_ux_device_stack_class_register_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_device_stack_class_register. */ #include diff --git a/test/regression/usbx_ux_device_stack_class_unregister_test.c b/test/regression/usbx_ux_device_stack_class_unregister_test.c index 275f1927a..2b0af4c82 100644 --- a/test/regression/usbx_ux_device_stack_class_unregister_test.c +++ b/test/regression/usbx_ux_device_stack_class_unregister_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_device_stack_class_unregister. */ #include diff --git a/test/regression/usbx_ux_device_stack_clear_feature_coverage_test.c b/test/regression/usbx_ux_device_stack_clear_feature_coverage_test.c index bc4c18065..6a57ffa06 100644 --- a/test/regression/usbx_ux_device_stack_clear_feature_coverage_test.c +++ b/test/regression/usbx_ux_device_stack_clear_feature_coverage_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #include #include "tx_api.h" #include "ux_api.h" diff --git a/test/regression/usbx_ux_device_stack_configuration_set_test.c b/test/regression/usbx_ux_device_stack_configuration_set_test.c index 6707e39e1..0cd0118f0 100644 --- a/test/regression/usbx_ux_device_stack_configuration_set_test.c +++ b/test/regression/usbx_ux_device_stack_configuration_set_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_device_stack_configuration_set. */ #include diff --git a/test/regression/usbx_ux_device_stack_control_request_process_coverage_test.c b/test/regression/usbx_ux_device_stack_control_request_process_coverage_test.c index 18fe33f89..b3fc95718 100644 --- a/test/regression/usbx_ux_device_stack_control_request_process_coverage_test.c +++ b/test/regression/usbx_ux_device_stack_control_request_process_coverage_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #include #include "tx_api.h" #include "ux_api.h" diff --git a/test/regression/usbx_ux_device_stack_control_request_process_test.c b/test/regression/usbx_ux_device_stack_control_request_process_test.c index 7c38523ba..8e3af7738 100644 --- a/test/regression/usbx_ux_device_stack_control_request_process_test.c +++ b/test/regression/usbx_ux_device_stack_control_request_process_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_device_stack_control_request_process. */ #include diff --git a/test/regression/usbx_ux_device_stack_descriptor_send_test.c b/test/regression/usbx_ux_device_stack_descriptor_send_test.c index 3cafba587..6de7006cd 100644 --- a/test/regression/usbx_ux_device_stack_descriptor_send_test.c +++ b/test/regression/usbx_ux_device_stack_descriptor_send_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #include "usbx_test_common_hid.h" #include "ux_host_class_hid_keyboard.h" diff --git a/test/regression/usbx_ux_device_stack_endpoint_stall_test.c b/test/regression/usbx_ux_device_stack_endpoint_stall_test.c index d721b1e90..72f0c0243 100644 --- a/test/regression/usbx_ux_device_stack_endpoint_stall_test.c +++ b/test/regression/usbx_ux_device_stack_endpoint_stall_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_device_stack_endpoint_stall. */ #include diff --git a/test/regression/usbx_ux_device_stack_get_status_test.c b/test/regression/usbx_ux_device_stack_get_status_test.c index 2c83db099..0e5a733c7 100644 --- a/test/regression/usbx_ux_device_stack_get_status_test.c +++ b/test/regression/usbx_ux_device_stack_get_status_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_device_stack_get_status. */ #include diff --git a/test/regression/usbx_ux_device_stack_initialize_test.c b/test/regression/usbx_ux_device_stack_initialize_test.c index 4e215ba49..d236741e3 100644 --- a/test/regression/usbx_ux_device_stack_initialize_test.c +++ b/test/regression/usbx_ux_device_stack_initialize_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_device_stack_initialize */ #include diff --git a/test/regression/usbx_ux_device_stack_interface_delete_test.c b/test/regression/usbx_ux_device_stack_interface_delete_test.c index 5bab843d5..9ea40a6aa 100644 --- a/test/regression/usbx_ux_device_stack_interface_delete_test.c +++ b/test/regression/usbx_ux_device_stack_interface_delete_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_device_stack_interface_delete. */ #include diff --git a/test/regression/usbx_ux_device_stack_interface_set_test.c b/test/regression/usbx_ux_device_stack_interface_set_test.c index 12c45bb5d..b72625ab7 100644 --- a/test/regression/usbx_ux_device_stack_interface_set_test.c +++ b/test/regression/usbx_ux_device_stack_interface_set_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_device_stack_interface_set. */ #include diff --git a/test/regression/usbx_ux_device_stack_interface_start_test.c b/test/regression/usbx_ux_device_stack_interface_start_test.c index 3e325eab1..b004aa9f8 100644 --- a/test/regression/usbx_ux_device_stack_interface_start_test.c +++ b/test/regression/usbx_ux_device_stack_interface_start_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_device_stack_interface_start. */ #include diff --git a/test/regression/usbx_ux_device_stack_remote_wakeup_test.c b/test/regression/usbx_ux_device_stack_remote_wakeup_test.c index 98b0524e4..2724a0b56 100644 --- a/test/regression/usbx_ux_device_stack_remote_wakeup_test.c +++ b/test/regression/usbx_ux_device_stack_remote_wakeup_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_device_stack_set_feature_test.c b/test/regression/usbx_ux_device_stack_set_feature_test.c index bd9aa8567..7d6e2b0f5 100644 --- a/test/regression/usbx_ux_device_stack_set_feature_test.c +++ b/test/regression/usbx_ux_device_stack_set_feature_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_device_stack_transfer_request. */ #include diff --git a/test/regression/usbx_ux_device_stack_standard_request_tests.c b/test/regression/usbx_ux_device_stack_standard_request_tests.c index c7eafe62e..0b0819860 100644 --- a/test/regression/usbx_ux_device_stack_standard_request_tests.c +++ b/test/regression/usbx_ux_device_stack_standard_request_tests.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_device_stack_transfer_request_test.c b/test/regression/usbx_ux_device_stack_transfer_request_test.c index 7a54d10df..ead5f7d89 100644 --- a/test/regression/usbx_ux_device_stack_transfer_request_test.c +++ b/test/regression/usbx_ux_device_stack_transfer_request_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_device_stack_transfer_request. */ #include diff --git a/test/regression/usbx_ux_device_stack_vendor_request_test.c b/test/regression/usbx_ux_device_stack_vendor_request_test.c index 01321e49b..099714e34 100644 --- a/test/regression/usbx_ux_device_stack_vendor_request_test.c +++ b/test/regression/usbx_ux_device_stack_vendor_request_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_basic_memory_tests.c b/test/regression/usbx_ux_host_basic_memory_tests.c index 07ac7cbab..3f94e6e3e 100644 --- a/test/regression/usbx_ux_host_basic_memory_tests.c +++ b/test/regression/usbx_ux_host_basic_memory_tests.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_class_cdc_acm_activate_test.c b/test/regression/usbx_ux_host_class_cdc_acm_activate_test.c index 4c482d4b0..dca75cf71 100644 --- a/test/regression/usbx_ux_host_class_cdc_acm_activate_test.c +++ b/test/regression/usbx_ux_host_class_cdc_acm_activate_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_class_cdc_acm_capabilities_get_test.c b/test/regression/usbx_ux_host_class_cdc_acm_capabilities_get_test.c index 3d1a9cd34..c656adccd 100644 --- a/test/regression/usbx_ux_host_class_cdc_acm_capabilities_get_test.c +++ b/test/regression/usbx_ux_host_class_cdc_acm_capabilities_get_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_class_cdc_acm_deactivate_test.c b/test/regression/usbx_ux_host_class_cdc_acm_deactivate_test.c index e6ff5da26..0fa09c3a0 100644 --- a/test/regression/usbx_ux_host_class_cdc_acm_deactivate_test.c +++ b/test/regression/usbx_ux_host_class_cdc_acm_deactivate_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_class_cdc_acm_endpoints_get_test.c b/test/regression/usbx_ux_host_class_cdc_acm_endpoints_get_test.c index 2ad1c223e..5c3e79cfb 100644 --- a/test/regression/usbx_ux_host_class_cdc_acm_endpoints_get_test.c +++ b/test/regression/usbx_ux_host_class_cdc_acm_endpoints_get_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_class_cdc_acm_entry_test.c b/test/regression/usbx_ux_host_class_cdc_acm_entry_test.c index 5cf7eed86..6b52fdb91 100644 --- a/test/regression/usbx_ux_host_class_cdc_acm_entry_test.c +++ b/test/regression/usbx_ux_host_class_cdc_acm_entry_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_class_cdc_acm_read_test.c b/test/regression/usbx_ux_host_class_cdc_acm_read_test.c index 13adb011e..702ed17c1 100644 --- a/test/regression/usbx_ux_host_class_cdc_acm_read_test.c +++ b/test/regression/usbx_ux_host_class_cdc_acm_read_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_class_cdc_acm_transfer_request_completed_test.c b/test/regression/usbx_ux_host_class_cdc_acm_transfer_request_completed_test.c index ecd828877..7856af3e0 100644 --- a/test/regression/usbx_ux_host_class_cdc_acm_transfer_request_completed_test.c +++ b/test/regression/usbx_ux_host_class_cdc_acm_transfer_request_completed_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_class_cdc_acm_write_test.c b/test/regression/usbx_ux_host_class_cdc_acm_write_test.c index e4c42f542..6d9992f1b 100644 --- a/test/regression/usbx_ux_host_class_cdc_acm_write_test.c +++ b/test/regression/usbx_ux_host_class_cdc_acm_write_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_class_cdc_ecm_activate_test.c b/test/regression/usbx_ux_host_class_cdc_ecm_activate_test.c index 94ee38292..3554d2573 100644 --- a/test/regression/usbx_ux_host_class_cdc_ecm_activate_test.c +++ b/test/regression/usbx_ux_host_class_cdc_ecm_activate_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* Include necessary system files. */ #include "usbx_ux_test_cdc_ecm.h" diff --git a/test/regression/usbx_ux_host_class_cdc_ecm_entry_test.c b/test/regression/usbx_ux_host_class_cdc_ecm_entry_test.c index 2b99d30b5..62f63e4ec 100644 --- a/test/regression/usbx_ux_host_class_cdc_ecm_entry_test.c +++ b/test/regression/usbx_ux_host_class_cdc_ecm_entry_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the CDC-ECM entry function. */ #include "usbx_ux_test_cdc_ecm.h" diff --git a/test/regression/usbx_ux_host_class_cdc_ecm_interrupt_notification_test.c b/test/regression/usbx_ux_host_class_cdc_ecm_interrupt_notification_test.c index c6928edec..1688fecd2 100644 --- a/test/regression/usbx_ux_host_class_cdc_ecm_interrupt_notification_test.c +++ b/test/regression/usbx_ux_host_class_cdc_ecm_interrupt_notification_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the _ux_host_class_cdc_ecm_interrupt_notification function. */ #include "usbx_ux_test_cdc_ecm.h" diff --git a/test/regression/usbx_ux_host_class_cdc_ecm_mac_address_get_test.c b/test/regression/usbx_ux_host_class_cdc_ecm_mac_address_get_test.c index 6ba17db57..d30edbee7 100644 --- a/test/regression/usbx_ux_host_class_cdc_ecm_mac_address_get_test.c +++ b/test/regression/usbx_ux_host_class_cdc_ecm_mac_address_get_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the ux_host_class_cdc_ecm_mac_address_get function. */ #include "usbx_ux_test_cdc_ecm.h" diff --git a/test/regression/usbx_ux_host_class_cdc_ecm_transmission_callback_test.c b/test/regression/usbx_ux_host_class_cdc_ecm_transmission_callback_test.c index 1867df8e2..cef8a874a 100644 --- a/test/regression/usbx_ux_host_class_cdc_ecm_transmission_callback_test.c +++ b/test/regression/usbx_ux_host_class_cdc_ecm_transmission_callback_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This functions tests the ux_host_class_cdc_ecm_transmission_callback API. */ #include "usbx_ux_test_cdc_ecm.h" diff --git a/test/regression/usbx_ux_host_class_cdc_ecm_write_test.c b/test/regression/usbx_ux_host_class_cdc_ecm_write_test.c index ef2b93c72..c58f24416 100644 --- a/test/regression/usbx_ux_host_class_cdc_ecm_write_test.c +++ b/test/regression/usbx_ux_host_class_cdc_ecm_write_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This functions tests the ux_host_class_cdc_ecm_write API. */ #include "usbx_ux_test_cdc_ecm.h" diff --git a/test/regression/usbx_ux_host_class_hid_activate_test.c b/test/regression/usbx_ux_host_class_hid_activate_test.c index 006726248..c564e4d52 100644 --- a/test/regression/usbx_ux_host_class_hid_activate_test.c +++ b/test/regression/usbx_ux_host_class_hid_activate_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests ux_host_class_hid_activate(). */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_ux_host_class_hid_client_register_test.c b/test/regression/usbx_ux_host_class_hid_client_register_test.c index 5a6fd37d5..466931019 100644 --- a/test/regression/usbx_ux_host_class_hid_client_register_test.c +++ b/test/regression/usbx_ux_host_class_hid_client_register_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test concentrates on the ux_host_class_hid_client_register api. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_ux_host_class_hid_client_register_test2.c b/test/regression/usbx_ux_host_class_hid_client_register_test2.c index 397bd842e..662f57766 100644 --- a/test/regression/usbx_ux_host_class_hid_client_register_test2.c +++ b/test/regression/usbx_ux_host_class_hid_client_register_test2.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #include "usbx_test_common_hid.h" #include "ux_host_class_hid_keyboard.h" diff --git a/test/regression/usbx_ux_host_class_hid_client_search_test.c b/test/regression/usbx_ux_host_class_hid_client_search_test.c index 043673d75..47816800c 100644 --- a/test/regression/usbx_ux_host_class_hid_client_search_test.c +++ b/test/regression/usbx_ux_host_class_hid_client_search_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test ensures that USBX continues working when none of the registered HID clients match the device's report descriptor. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_ux_host_class_hid_configure_test.c b/test/regression/usbx_ux_host_class_hid_configure_test.c index 22eefba6a..a9a23611e 100644 --- a/test/regression/usbx_ux_host_class_hid_configure_test.c +++ b/test/regression/usbx_ux_host_class_hid_configure_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests ux_host_class_hid_configure() */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_ux_host_class_hid_deactivate_test.c b/test/regression/usbx_ux_host_class_hid_deactivate_test.c index eaf23c5b7..7360f0fd4 100644 --- a/test/regression/usbx_ux_host_class_hid_deactivate_test.c +++ b/test/regression/usbx_ux_host_class_hid_deactivate_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #include "usbx_test_common_hid.h" #include "ux_host_class_hid_keyboard.h" diff --git a/test/regression/usbx_ux_host_class_hid_deactivate_test2.c b/test/regression/usbx_ux_host_class_hid_deactivate_test2.c index 2870e4bc9..332589715 100644 --- a/test/regression/usbx_ux_host_class_hid_deactivate_test2.c +++ b/test/regression/usbx_ux_host_class_hid_deactivate_test2.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #include "usbx_test_common_hid.h" #include "ux_host_class_hid_keyboard.h" diff --git a/test/regression/usbx_ux_host_class_hid_deactivate_test3.c b/test/regression/usbx_ux_host_class_hid_deactivate_test3.c index 54ae5ca2a..cdc17c195 100644 --- a/test/regression/usbx_ux_host_class_hid_deactivate_test3.c +++ b/test/regression/usbx_ux_host_class_hid_deactivate_test3.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #include "usbx_test_common_hid.h" #include "ux_host_class_hid_keyboard.h" diff --git a/test/regression/usbx_ux_host_class_hid_descriptor_parse_coverage_test.c b/test/regression/usbx_ux_host_class_hid_descriptor_parse_coverage_test.c index b754b88f0..b12492929 100644 --- a/test/regression/usbx_ux_host_class_hid_descriptor_parse_coverage_test.c +++ b/test/regression/usbx_ux_host_class_hid_descriptor_parse_coverage_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #include #include "tx_api.h" #include "ux_api.h" diff --git a/test/regression/usbx_ux_host_class_hid_descriptor_parse_test.c b/test/regression/usbx_ux_host_class_hid_descriptor_parse_test.c index 1622d2c29..9e45c86ae 100644 --- a/test/regression/usbx_ux_host_class_hid_descriptor_parse_test.c +++ b/test/regression/usbx_ux_host_class_hid_descriptor_parse_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests ux_host_class_hid_descriptor_parse() */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_ux_host_class_hid_descriptor_parse_test2.c b/test/regression/usbx_ux_host_class_hid_descriptor_parse_test2.c index 0681da444..614da20fb 100644 --- a/test/regression/usbx_ux_host_class_hid_descriptor_parse_test2.c +++ b/test/regression/usbx_ux_host_class_hid_descriptor_parse_test2.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests _ux_host_class_hid_descriptor_parse(). */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_ux_host_class_hid_descriptor_parse_test3.c b/test/regression/usbx_ux_host_class_hid_descriptor_parse_test3.c index aa5c94abf..ada83cde4 100644 --- a/test/regression/usbx_ux_host_class_hid_descriptor_parse_test3.c +++ b/test/regression/usbx_ux_host_class_hid_descriptor_parse_test3.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests _ux_host_class_hid_descriptor_parse(). */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_ux_host_class_hid_descriptor_parse_test4.c b/test/regression/usbx_ux_host_class_hid_descriptor_parse_test4.c index 2bffc152a..ca272b21f 100644 --- a/test/regression/usbx_ux_host_class_hid_descriptor_parse_test4.c +++ b/test/regression/usbx_ux_host_class_hid_descriptor_parse_test4.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests _ux_host_class_hid_descriptor_parse(). */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_ux_host_class_hid_descriptor_parse_test5.c b/test/regression/usbx_ux_host_class_hid_descriptor_parse_test5.c index a62ecf150..cac0af7ce 100644 --- a/test/regression/usbx_ux_host_class_hid_descriptor_parse_test5.c +++ b/test/regression/usbx_ux_host_class_hid_descriptor_parse_test5.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests _ux_host_class_hid_descriptor_parse(). */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_ux_host_class_hid_descriptor_parse_test6.c b/test/regression/usbx_ux_host_class_hid_descriptor_parse_test6.c index 889434bb6..4d6995197 100644 --- a/test/regression/usbx_ux_host_class_hid_descriptor_parse_test6.c +++ b/test/regression/usbx_ux_host_class_hid_descriptor_parse_test6.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests _ux_host_class_hid_descriptor_parse(). */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_ux_host_class_hid_descriptor_parse_test7.c b/test/regression/usbx_ux_host_class_hid_descriptor_parse_test7.c index 891b042e0..bd81ea61c 100644 --- a/test/regression/usbx_ux_host_class_hid_descriptor_parse_test7.c +++ b/test/regression/usbx_ux_host_class_hid_descriptor_parse_test7.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #include "usbx_test_common_hid.h" #include "ux_host_class_hid_keyboard.h" diff --git a/test/regression/usbx_ux_host_class_hid_entry_test.c b/test/regression/usbx_ux_host_class_hid_entry_test.c index 2aa2b56cd..3219050d8 100644 --- a/test/regression/usbx_ux_host_class_hid_entry_test.c +++ b/test/regression/usbx_ux_host_class_hid_entry_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #include "usbx_test_common_hid.h" #include "ux_host_class_hid_keyboard.h" diff --git a/test/regression/usbx_ux_host_class_hid_idle_get_test.c b/test/regression/usbx_ux_host_class_hid_idle_get_test.c index 0ccab4dd2..11f9b7a04 100644 --- a/test/regression/usbx_ux_host_class_hid_idle_get_test.c +++ b/test/regression/usbx_ux_host_class_hid_idle_get_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #include "usbx_test_common_hid.h" #include "ux_host_class_hid_keyboard.h" diff --git a/test/regression/usbx_ux_host_class_hid_idle_set_test.c b/test/regression/usbx_ux_host_class_hid_idle_set_test.c index a990b1c4d..0213cdc96 100644 --- a/test/regression/usbx_ux_host_class_hid_idle_set_test.c +++ b/test/regression/usbx_ux_host_class_hid_idle_set_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests ux_host_class_hid_idle_set() */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_ux_host_class_hid_interrupt_endpoint_search_int_out_test.c b/test/regression/usbx_ux_host_class_hid_interrupt_endpoint_search_int_out_test.c index 3d6cde39c..2b30788e6 100644 --- a/test/regression/usbx_ux_host_class_hid_interrupt_endpoint_search_int_out_test.c +++ b/test/regression/usbx_ux_host_class_hid_interrupt_endpoint_search_int_out_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests ux_host_class_hid_interrupt_endpoint_search for interrupt OUT endpoint. */ diff --git a/test/regression/usbx_ux_host_class_hid_interrupt_endpoint_search_test.c b/test/regression/usbx_ux_host_class_hid_interrupt_endpoint_search_test.c index 9d1aa00bf..f902de09a 100644 --- a/test/regression/usbx_ux_host_class_hid_interrupt_endpoint_search_test.c +++ b/test/regression/usbx_ux_host_class_hid_interrupt_endpoint_search_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests ux_host_class_hid_interrupt_endpoint_search() */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_ux_host_class_hid_interrupt_endpoint_search_test2.c b/test/regression/usbx_ux_host_class_hid_interrupt_endpoint_search_test2.c index ed7631aa0..faa860d16 100644 --- a/test/regression/usbx_ux_host_class_hid_interrupt_endpoint_search_test2.c +++ b/test/regression/usbx_ux_host_class_hid_interrupt_endpoint_search_test2.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests ux_host_class_hid_interrupt_endpoint_search. */ /**************************************************/ diff --git a/test/regression/usbx_ux_host_class_hid_keyboard_activate_test.c b/test/regression/usbx_ux_host_class_hid_keyboard_activate_test.c index 5f8e192f9..e355e1ce7 100644 --- a/test/regression/usbx_ux_host_class_hid_keyboard_activate_test.c +++ b/test/regression/usbx_ux_host_class_hid_keyboard_activate_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #include "usbx_test_common_hid.h" #include "ux_host_class_hid_keyboard.h" #include "tx_thread.h" diff --git a/test/regression/usbx_ux_host_class_hid_keyboard_callback_test.c b/test/regression/usbx_ux_host_class_hid_keyboard_callback_test.c index ab0465f32..cbf2bbf7a 100644 --- a/test/regression/usbx_ux_host_class_hid_keyboard_callback_test.c +++ b/test/regression/usbx_ux_host_class_hid_keyboard_callback_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests focuses on code coverage of ux_host_class_hid_keyboard_callback. */ #include diff --git a/test/regression/usbx_ux_host_class_hid_keyboard_callback_test2.c b/test/regression/usbx_ux_host_class_hid_keyboard_callback_test2.c index 084b10d64..eb5c2c309 100644 --- a/test/regression/usbx_ux_host_class_hid_keyboard_callback_test2.c +++ b/test/regression/usbx_ux_host_class_hid_keyboard_callback_test2.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /**************************************************/ /** Test case: if (callback -> ux_host_class_hid_report_callback_value < UX_HID_KEYBOARD_KEYS_UPPER_RANGE) fails **/ /**************************************************/ diff --git a/test/regression/usbx_ux_host_class_hid_keyboard_entry_test.c b/test/regression/usbx_ux_host_class_hid_keyboard_entry_test.c index f8d577393..a6f1d4839 100644 --- a/test/regression/usbx_ux_host_class_hid_keyboard_entry_test.c +++ b/test/regression/usbx_ux_host_class_hid_keyboard_entry_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests the ux_host_class_hid_keyboard_entry API. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_ux_host_class_hid_keyboard_ioctl_test.c b/test/regression/usbx_ux_host_class_hid_keyboard_ioctl_test.c index 96b237f9c..0854125fb 100644 --- a/test/regression/usbx_ux_host_class_hid_keyboard_ioctl_test.c +++ b/test/regression/usbx_ux_host_class_hid_keyboard_ioctl_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests that the host correctly receives the keys the device sends to it. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_ux_host_class_hid_keyboard_thread_test.c b/test/regression/usbx_ux_host_class_hid_keyboard_thread_test.c index 84b84dbd3..53c079bb0 100644 --- a/test/regression/usbx_ux_host_class_hid_keyboard_thread_test.c +++ b/test/regression/usbx_ux_host_class_hid_keyboard_thread_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test ux_host_class_hid_keyboard_thread(). */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_ux_host_class_hid_keyboard_thread_test2.c b/test/regression/usbx_ux_host_class_hid_keyboard_thread_test2.c index ff1550adc..4ac9ba671 100644 --- a/test/regression/usbx_ux_host_class_hid_keyboard_thread_test2.c +++ b/test/regression/usbx_ux_host_class_hid_keyboard_thread_test2.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /**************************************************/ /** Test case: _ux_host_class_hid_report_id_get(hid, &report_id) fails **/ /** Why direct: In order to make _ux_host_class_hid_report_id_get() fail, we must either make _ux_host_stack_class_instance_verify fail, or **/ diff --git a/test/regression/usbx_ux_host_class_hid_local_item_parse_test.c b/test/regression/usbx_ux_host_class_hid_local_item_parse_test.c index de52b3ca1..5a76e5b90 100644 --- a/test/regression/usbx_ux_host_class_hid_local_item_parse_test.c +++ b/test/regression/usbx_ux_host_class_hid_local_item_parse_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test ensures that the parser generates an error upon encountering an invalid close delimiter tag. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_ux_host_class_hid_logitech_pro_x_superlight_test.c b/test/regression/usbx_ux_host_class_hid_logitech_pro_x_superlight_test.c index b83af5647..79e3ff1b9 100644 --- a/test/regression/usbx_ux_host_class_hid_logitech_pro_x_superlight_test.c +++ b/test/regression/usbx_ux_host_class_hid_logitech_pro_x_superlight_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /**************************************************/ /** Test case: The default case of switch (item -> ux_host_class_hid_item_report_tag). **/ /**************************************************/ diff --git a/test/regression/usbx_ux_host_class_hid_main_item_parse_test.c b/test/regression/usbx_ux_host_class_hid_main_item_parse_test.c index 6310a2034..af00664ab 100644 --- a/test/regression/usbx_ux_host_class_hid_main_item_parse_test.c +++ b/test/regression/usbx_ux_host_class_hid_main_item_parse_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /**************************************************/ /** Test case: The default case of switch (item -> ux_host_class_hid_item_report_tag). **/ /**************************************************/ diff --git a/test/regression/usbx_ux_host_class_hid_main_item_parse_test2.c b/test/regression/usbx_ux_host_class_hid_main_item_parse_test2.c index 86bcf1872..18195974e 100644 --- a/test/regression/usbx_ux_host_class_hid_main_item_parse_test2.c +++ b/test/regression/usbx_ux_host_class_hid_main_item_parse_test2.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /**************************************************/ /** Test case: hid_parser -> ux_host_class_hid_parser_main_usage == 0) fails in **/ /** if ((hid_parser -> ux_host_class_hid_parser_main_page == 0) && (hid_parser -> ux_host_class_hid_parser_main_usage == 0)) **/ diff --git a/test/regression/usbx_ux_host_class_hid_mouse_activate_test.c b/test/regression/usbx_ux_host_class_hid_mouse_activate_test.c index ac6ffd204..e1540e277 100644 --- a/test/regression/usbx_ux_host_class_hid_mouse_activate_test.c +++ b/test/regression/usbx_ux_host_class_hid_mouse_activate_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests the ux_host_class_hid_mouse_activate API. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_ux_host_class_hid_mouse_buttons_get_test.c b/test/regression/usbx_ux_host_class_hid_mouse_buttons_get_test.c index aa9940638..3088fe10d 100644 --- a/test/regression/usbx_ux_host_class_hid_mouse_buttons_get_test.c +++ b/test/regression/usbx_ux_host_class_hid_mouse_buttons_get_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests the ux_host_class_hid_mouse_buttons_get API. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_ux_host_class_hid_mouse_entry_test.c b/test/regression/usbx_ux_host_class_hid_mouse_entry_test.c index 317155cc5..86a6fd76d 100644 --- a/test/regression/usbx_ux_host_class_hid_mouse_entry_test.c +++ b/test/regression/usbx_ux_host_class_hid_mouse_entry_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests the ux_host_class_hid_mouse_entry API. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_ux_host_class_hid_mouse_entry_test2.c b/test/regression/usbx_ux_host_class_hid_mouse_entry_test2.c index 1e5f1a763..a065f3b6f 100644 --- a/test/regression/usbx_ux_host_class_hid_mouse_entry_test2.c +++ b/test/regression/usbx_ux_host_class_hid_mouse_entry_test2.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /**************************************************/ /** Test case: command -> ux_host_class_hid_client_command_usage == UX_HOST_CLASS_HID_GENERIC_DESKTOP_MOUSE fails in /** if ((command -> ux_host_class_hid_client_command_page == UX_HOST_CLASS_HID_PAGE_GENERIC_DESKTOP_CONTROLS) && diff --git a/test/regression/usbx_ux_host_class_hid_mouse_entry_test3.c b/test/regression/usbx_ux_host_class_hid_mouse_entry_test3.c index afc6ecdc7..5b51e9ca6 100644 --- a/test/regression/usbx_ux_host_class_hid_mouse_entry_test3.c +++ b/test/regression/usbx_ux_host_class_hid_mouse_entry_test3.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /**************************************************/ /** Test case: command -> ux_host_class_hid_client_command_page == UX_HOST_CLASS_HID_PAGE_GENERIC_DESKTOP_CONTROLS fails in /** if ((command -> ux_host_class_hid_client_command_page == UX_HOST_CLASS_HID_PAGE_GENERIC_DESKTOP_CONTROLS) && diff --git a/test/regression/usbx_ux_host_class_hid_mouse_positions_get_test.c b/test/regression/usbx_ux_host_class_hid_mouse_positions_get_test.c index b8ecb9f67..d4bad8d5d 100644 --- a/test/regression/usbx_ux_host_class_hid_mouse_positions_get_test.c +++ b/test/regression/usbx_ux_host_class_hid_mouse_positions_get_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests the ux_host_class_hid_mouse_positions_get API. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_ux_host_class_hid_mouse_wheel_get_test.c b/test/regression/usbx_ux_host_class_hid_mouse_wheel_get_test.c index ac452fc18..ce997f2b8 100644 --- a/test/regression/usbx_ux_host_class_hid_mouse_wheel_get_test.c +++ b/test/regression/usbx_ux_host_class_hid_mouse_wheel_get_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests the ux_host_class_hid_mouse_wheel_get API. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_ux_host_class_hid_periodic_report_start_test.c b/test/regression/usbx_ux_host_class_hid_periodic_report_start_test.c index 7c775bf12..013801d2c 100644 --- a/test/regression/usbx_ux_host_class_hid_periodic_report_start_test.c +++ b/test/regression/usbx_ux_host_class_hid_periodic_report_start_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests ux_host_class_hid_periodic_report_start() */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_ux_host_class_hid_periodic_report_start_test2.c b/test/regression/usbx_ux_host_class_hid_periodic_report_start_test2.c index f1db8a86e..8eae8aab4 100644 --- a/test/regression/usbx_ux_host_class_hid_periodic_report_start_test2.c +++ b/test/regression/usbx_ux_host_class_hid_periodic_report_start_test2.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests ux_host_class_hid_periodic_report_start() */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_ux_host_class_hid_periodic_report_stop_test.c b/test/regression/usbx_ux_host_class_hid_periodic_report_stop_test.c index 2b6d2ff47..773d31112 100644 --- a/test/regression/usbx_ux_host_class_hid_periodic_report_stop_test.c +++ b/test/regression/usbx_ux_host_class_hid_periodic_report_stop_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests the ux_host_class_hid_periodic_report_stop API. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_ux_host_class_hid_remote_control_activate_test.c b/test/regression/usbx_ux_host_class_hid_remote_control_activate_test.c index 5da82a3f5..9b2cfd97d 100644 --- a/test/regression/usbx_ux_host_class_hid_remote_control_activate_test.c +++ b/test/regression/usbx_ux_host_class_hid_remote_control_activate_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /**************************************************/ /** Test case: _ux_host_class_hid_report_callback_register(hid, &call_back); fails AND it's status is checked **/ /** HOW: Have no input reports in the report descriptor. **/ diff --git a/test/regression/usbx_ux_host_class_hid_remote_control_activate_test2.c b/test/regression/usbx_ux_host_class_hid_remote_control_activate_test2.c index 1aea4a9b2..259c36097 100644 --- a/test/regression/usbx_ux_host_class_hid_remote_control_activate_test2.c +++ b/test/regression/usbx_ux_host_class_hid_remote_control_activate_test2.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #include "usbx_test_common_hid.h" #include "ux_host_class_hid_remote_control.h" diff --git a/test/regression/usbx_ux_host_class_hid_remote_control_callback_test.c b/test/regression/usbx_ux_host_class_hid_remote_control_callback_test.c index 2e09e40be..dd9a751f2 100644 --- a/test/regression/usbx_ux_host_class_hid_remote_control_callback_test.c +++ b/test/regression/usbx_ux_host_class_hid_remote_control_callback_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests _ux_host_class_hid_remote_control_callback. */ /**************************************************/ diff --git a/test/regression/usbx_ux_host_class_hid_remote_control_entry_test.c b/test/regression/usbx_ux_host_class_hid_remote_control_entry_test.c index 5b12e8ee5..c684d9f28 100644 --- a/test/regression/usbx_ux_host_class_hid_remote_control_entry_test.c +++ b/test/regression/usbx_ux_host_class_hid_remote_control_entry_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests the ux_host_class_hid_remote_control_entry API. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_ux_host_class_hid_remote_control_entry_test2.c b/test/regression/usbx_ux_host_class_hid_remote_control_entry_test2.c index 3a3a44590..fc7ca084d 100644 --- a/test/regression/usbx_ux_host_class_hid_remote_control_entry_test2.c +++ b/test/regression/usbx_ux_host_class_hid_remote_control_entry_test2.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /**************************************************/ /** Test case: command -> ux_host_class_hid_client_command_page == UX_HOST_CLASS_HID_PAGE_CONSUMER fails in /** if ((command -> ux_host_class_hid_client_command_page == UX_HOST_CLASS_HID_PAGE_CONSUMER) && diff --git a/test/regression/usbx_ux_host_class_hid_remote_control_entry_test3.c b/test/regression/usbx_ux_host_class_hid_remote_control_entry_test3.c index 9c4bca8ab..c8ceec05f 100644 --- a/test/regression/usbx_ux_host_class_hid_remote_control_entry_test3.c +++ b/test/regression/usbx_ux_host_class_hid_remote_control_entry_test3.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /**************************************************/ /** Test case: command -> ux_host_class_hid_client_command_usage == UX_HOST_CLASS_HID_CONSUMER_REMOTE_CONTROL fails in /** if ((command -> ux_host_class_hid_client_command_page == UX_HOST_CLASS_HID_PAGE_CONSUMER) && diff --git a/test/regression/usbx_ux_host_class_hid_remote_control_usage_get_test.c b/test/regression/usbx_ux_host_class_hid_remote_control_usage_get_test.c index 910f38889..cc334326b 100644 --- a/test/regression/usbx_ux_host_class_hid_remote_control_usage_get_test.c +++ b/test/regression/usbx_ux_host_class_hid_remote_control_usage_get_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests the ux_host_class_hid_remote_control_usage_get API. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_ux_host_class_hid_report_add_test.c b/test/regression/usbx_ux_host_class_hid_report_add_test.c index f5b626c1f..d13574342 100644 --- a/test/regression/usbx_ux_host_class_hid_report_add_test.c +++ b/test/regression/usbx_ux_host_class_hid_report_add_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests ux_host_class_hid_report_add() */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_ux_host_class_hid_report_callback_register_test.c b/test/regression/usbx_ux_host_class_hid_report_callback_register_test.c index 05704fcf2..835a693d8 100644 --- a/test/regression/usbx_ux_host_class_hid_report_callback_register_test.c +++ b/test/regression/usbx_ux_host_class_hid_report_callback_register_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests ux_host_class_hid_report_callback_register(). */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_ux_host_class_hid_report_descriptor_get_test.c b/test/regression/usbx_ux_host_class_hid_report_descriptor_get_test.c index e1e650ecc..413887770 100644 --- a/test/regression/usbx_ux_host_class_hid_report_descriptor_get_test.c +++ b/test/regression/usbx_ux_host_class_hid_report_descriptor_get_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /**************************************************/ /** Test case: default case of **/ /** switch(item.ux_host_class_hid_item_report_type) **/ diff --git a/test/regression/usbx_ux_host_class_hid_report_descriptor_get_test2.c b/test/regression/usbx_ux_host_class_hid_report_descriptor_get_test2.c index a737ce271..65b049da6 100644 --- a/test/regression/usbx_ux_host_class_hid_report_descriptor_get_test2.c +++ b/test/regression/usbx_ux_host_class_hid_report_descriptor_get_test2.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #include "usbx_test_common_hid.h" #include "ux_host_class_hid_keyboard.h" diff --git a/test/regression/usbx_ux_host_class_hid_report_descriptor_get_test3.c b/test/regression/usbx_ux_host_class_hid_report_descriptor_get_test3.c index 45fc8e9c2..50b8e2847 100644 --- a/test/regression/usbx_ux_host_class_hid_report_descriptor_get_test3.c +++ b/test/regression/usbx_ux_host_class_hid_report_descriptor_get_test3.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #include "usbx_test_common_hid.h" #include "ux_host_class_hid_keyboard.h" diff --git a/test/regression/usbx_ux_host_class_hid_report_descriptor_get_test4.c b/test/regression/usbx_ux_host_class_hid_report_descriptor_get_test4.c index b81bb900a..b8e01f72d 100644 --- a/test/regression/usbx_ux_host_class_hid_report_descriptor_get_test4.c +++ b/test/regression/usbx_ux_host_class_hid_report_descriptor_get_test4.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #include "usbx_test_common_hid.h" #include "ux_host_class_hid_keyboard.h" diff --git a/test/regression/usbx_ux_host_class_hid_report_get_test.c b/test/regression/usbx_ux_host_class_hid_report_get_test.c index e711e8573..2cabf78dd 100644 --- a/test/regression/usbx_ux_host_class_hid_report_get_test.c +++ b/test/regression/usbx_ux_host_class_hid_report_get_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test concentrates on the ux_host_class_hid_report_get API. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_ux_host_class_hid_report_get_test2.c b/test/regression/usbx_ux_host_class_hid_report_get_test2.c index a52240292..9bbf95126 100644 --- a/test/regression/usbx_ux_host_class_hid_report_get_test2.c +++ b/test/regression/usbx_ux_host_class_hid_report_get_test2.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #include "usbx_test_common_hid.h" #include "ux_host_class_hid_keyboard.h" diff --git a/test/regression/usbx_ux_host_class_hid_report_id_get_test.c b/test/regression/usbx_ux_host_class_hid_report_id_get_test.c index a3664babf..e915e8433 100644 --- a/test/regression/usbx_ux_host_class_hid_report_id_get_test.c +++ b/test/regression/usbx_ux_host_class_hid_report_id_get_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This file tests ux_host_class_hid_report_id_get() */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_ux_host_class_hid_report_set_int_out_test.c b/test/regression/usbx_ux_host_class_hid_report_set_int_out_test.c index c09f5365e..5f839ca08 100644 --- a/test/regression/usbx_ux_host_class_hid_report_set_int_out_test.c +++ b/test/regression/usbx_ux_host_class_hid_report_set_int_out_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test concentrates on the ux_host_class_hid_report_set API. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_ux_host_class_hid_report_set_test.c b/test/regression/usbx_ux_host_class_hid_report_set_test.c index 37b25a3cf..35f02ce12 100644 --- a/test/regression/usbx_ux_host_class_hid_report_set_test.c +++ b/test/regression/usbx_ux_host_class_hid_report_set_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test concentrates on the ux_host_class_hid_report_set API. */ #include "usbx_test_common_hid.h" diff --git a/test/regression/usbx_ux_host_class_hid_transfer_request_completed_test.c b/test/regression/usbx_ux_host_class_hid_transfer_request_completed_test.c index e57c2c918..f3fcfbc2b 100644 --- a/test/regression/usbx_ux_host_class_hid_transfer_request_completed_test.c +++ b/test/regression/usbx_ux_host_class_hid_transfer_request_completed_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #include "usbx_test_common_hid.h" #include "ux_host_class_hid_keyboard.h" diff --git a/test/regression/usbx_ux_host_class_hub_descriptor_get_coverage_test.c b/test/regression/usbx_ux_host_class_hub_descriptor_get_coverage_test.c index 911710822..f8956ab7d 100644 --- a/test/regression/usbx_ux_host_class_hub_descriptor_get_coverage_test.c +++ b/test/regression/usbx_ux_host_class_hub_descriptor_get_coverage_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #include #include "tx_api.h" #include "ux_api.h" diff --git a/test/regression/usbx_ux_host_class_hub_entry_test.c b/test/regression/usbx_ux_host_class_hub_entry_test.c index db59daa03..016015154 100644 --- a/test/regression/usbx_ux_host_class_hub_entry_test.c +++ b/test/regression/usbx_ux_host_class_hub_entry_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the ux_host_class_hub_entry.c API. */ #include "usbx_ux_test_hub.h" diff --git a/test/regression/usbx_ux_host_class_hub_status_get_test.c b/test/regression/usbx_ux_host_class_hub_status_get_test.c index 5da0a4d27..7fa996a32 100644 --- a/test/regression/usbx_ux_host_class_hub_status_get_test.c +++ b/test/regression/usbx_ux_host_class_hub_status_get_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the ux_host_class_hub_status_get.c API. */ #include "usbx_ux_test_hub.h" diff --git a/test/regression/usbx_ux_host_class_hub_transfer_request_completed_test.c b/test/regression/usbx_ux_host_class_hub_transfer_request_completed_test.c index f0ed89e5b..dda7b4db8 100644 --- a/test/regression/usbx_ux_host_class_hub_transfer_request_completed_test.c +++ b/test/regression/usbx_ux_host_class_hub_transfer_request_completed_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This tests the ux_host_class_hub_transfer_request_completed.c API. */ #include "usbx_ux_test_hub.h" diff --git a/test/regression/usbx_ux_host_class_printer_basic_tests.c b/test/regression/usbx_ux_host_class_printer_basic_tests.c index 322fb862d..a81ca3092 100644 --- a/test/regression/usbx_ux_host_class_printer_basic_tests.c +++ b/test/regression/usbx_ux_host_class_printer_basic_tests.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_class_storage_activate_test.c b/test/regression/usbx_ux_host_class_storage_activate_test.c index e416d0ce8..663c4d1e8 100644 --- a/test/regression/usbx_ux_host_class_storage_activate_test.c +++ b/test/regression/usbx_ux_host_class_storage_activate_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_class_storage_configure_coverage_test.c b/test/regression/usbx_ux_host_class_storage_configure_coverage_test.c index 9707b3ce0..0f91f19e6 100644 --- a/test/regression/usbx_ux_host_class_storage_configure_coverage_test.c +++ b/test/regression/usbx_ux_host_class_storage_configure_coverage_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #include #include "tx_api.h" #include "ux_api.h" diff --git a/test/regression/usbx_ux_host_class_storage_configure_test.c b/test/regression/usbx_ux_host_class_storage_configure_test.c index 00f433e25..160b12acd 100644 --- a/test/regression/usbx_ux_host_class_storage_configure_test.c +++ b/test/regression/usbx_ux_host_class_storage_configure_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_class_storage_device_initialize_test.c b/test/regression/usbx_ux_host_class_storage_device_initialize_test.c index bc9c3a213..b700cd864 100644 --- a/test/regression/usbx_ux_host_class_storage_device_initialize_test.c +++ b/test/regression/usbx_ux_host_class_storage_device_initialize_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_class_storage_device_support_check_test.c b/test/regression/usbx_ux_host_class_storage_device_support_check_test.c index 8126c0e89..9b3ba078e 100644 --- a/test/regression/usbx_ux_host_class_storage_device_support_check_test.c +++ b/test/regression/usbx_ux_host_class_storage_device_support_check_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_class_storage_driver_entry_test.c b/test/regression/usbx_ux_host_class_storage_driver_entry_test.c index bd454d3b1..ab7ad8694 100644 --- a/test/regression/usbx_ux_host_class_storage_driver_entry_test.c +++ b/test/regression/usbx_ux_host_class_storage_driver_entry_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_class_storage_entry_test.c b/test/regression/usbx_ux_host_class_storage_entry_test.c index a64739f5d..21eb99580 100644 --- a/test/regression/usbx_ux_host_class_storage_entry_test.c +++ b/test/regression/usbx_ux_host_class_storage_entry_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_class_storage_fats_exfat_test.c b/test/regression/usbx_ux_host_class_storage_fats_exfat_test.c index 7ea567303..f907147b9 100644 --- a/test/regression/usbx_ux_host_class_storage_fats_exfat_test.c +++ b/test/regression/usbx_ux_host_class_storage_fats_exfat_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_class_storage_fx_driver.c b/test/regression/usbx_ux_host_class_storage_fx_driver.c index 2dfea3b3b..bc6d25694 100644 --- a/test/regression/usbx_ux_host_class_storage_fx_driver.c +++ b/test/regression/usbx_ux_host_class_storage_fx_driver.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* Implements FX driver entry if FX_MEDIA not integrated in UX Host Class Storage. */ #include diff --git a/test/regression/usbx_ux_host_class_storage_max_lun_get_test.c b/test/regression/usbx_ux_host_class_storage_max_lun_get_test.c index 7c1223c36..b00e8982e 100644 --- a/test/regression/usbx_ux_host_class_storage_max_lun_get_test.c +++ b/test/regression/usbx_ux_host_class_storage_max_lun_get_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_class_storage_media_capacity_get_test.c b/test/regression/usbx_ux_host_class_storage_media_capacity_get_test.c index 4a60893c1..e6cd6a276 100644 --- a/test/regression/usbx_ux_host_class_storage_media_capacity_get_test.c +++ b/test/regression/usbx_ux_host_class_storage_media_capacity_get_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_class_storage_media_get_test.c b/test/regression/usbx_ux_host_class_storage_media_get_test.c index 13de5c8f2..5c9dd0f6a 100644 --- a/test/regression/usbx_ux_host_class_storage_media_get_test.c +++ b/test/regression/usbx_ux_host_class_storage_media_get_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the storage host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_class_storage_media_mount_test.c b/test/regression/usbx_ux_host_class_storage_media_mount_test.c index 9bb19407e..35009ad70 100644 --- a/test/regression/usbx_ux_host_class_storage_media_mount_test.c +++ b/test/regression/usbx_ux_host_class_storage_media_mount_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_class_storage_media_open_test.c b/test/regression/usbx_ux_host_class_storage_media_open_test.c index 879e46535..b0baa4a81 100644 --- a/test/regression/usbx_ux_host_class_storage_media_open_test.c +++ b/test/regression/usbx_ux_host_class_storage_media_open_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_class_storage_media_protection_check_test.c b/test/regression/usbx_ux_host_class_storage_media_protection_check_test.c index 5d8ed670f..b5af421b4 100644 --- a/test/regression/usbx_ux_host_class_storage_media_protection_check_test.c +++ b/test/regression/usbx_ux_host_class_storage_media_protection_check_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_class_storage_media_read_test.c b/test/regression/usbx_ux_host_class_storage_media_read_test.c index f32c04b47..3abbf53b1 100644 --- a/test/regression/usbx_ux_host_class_storage_media_read_test.c +++ b/test/regression/usbx_ux_host_class_storage_media_read_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_class_storage_media_recovery_sense_get_test.c b/test/regression/usbx_ux_host_class_storage_media_recovery_sense_get_test.c index f477c4238..65b689b78 100644 --- a/test/regression/usbx_ux_host_class_storage_media_recovery_sense_get_test.c +++ b/test/regression/usbx_ux_host_class_storage_media_recovery_sense_get_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_class_storage_media_write_test.c b/test/regression/usbx_ux_host_class_storage_media_write_test.c index eff5b2e3a..4ca1e5a60 100644 --- a/test/regression/usbx_ux_host_class_storage_media_write_test.c +++ b/test/regression/usbx_ux_host_class_storage_media_write_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_class_storage_request_sense_test.c b/test/regression/usbx_ux_host_class_storage_request_sense_test.c index 468d373c6..caae8153c 100644 --- a/test/regression/usbx_ux_host_class_storage_request_sense_test.c +++ b/test/regression/usbx_ux_host_class_storage_request_sense_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_class_storage_start_stop_test.c b/test/regression/usbx_ux_host_class_storage_start_stop_test.c index 89a2ff9ae..2f007a2d8 100644 --- a/test/regression/usbx_ux_host_class_storage_start_stop_test.c +++ b/test/regression/usbx_ux_host_class_storage_start_stop_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_class_storage_thread_entry_test.c b/test/regression/usbx_ux_host_class_storage_thread_entry_test.c index 4adb8caa7..09138d613 100644 --- a/test/regression/usbx_ux_host_class_storage_thread_entry_test.c +++ b/test/regression/usbx_ux_host_class_storage_thread_entry_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_class_storage_transport_bo_test.c b/test/regression/usbx_ux_host_class_storage_transport_bo_test.c index 4c564b4b4..24d9b7b4e 100644 --- a/test/regression/usbx_ux_host_class_storage_transport_bo_test.c +++ b/test/regression/usbx_ux_host_class_storage_transport_bo_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_class_video_basic_tests.c b/test/regression/usbx_ux_host_class_video_basic_tests.c index 41578c754..caaf0664a 100644 --- a/test/regression/usbx_ux_host_class_video_basic_tests.c +++ b/test/regression/usbx_ux_host_class_video_basic_tests.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_class_video_dwMaxPayloadTransferSize_test.c b/test/regression/usbx_ux_host_class_video_dwMaxPayloadTransferSize_test.c index 9732e2b66..a176719cf 100644 --- a/test/regression/usbx_ux_host_class_video_dwMaxPayloadTransferSize_test.c +++ b/test/regression/usbx_ux_host_class_video_dwMaxPayloadTransferSize_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_class_video_format_frame_based_test.c b/test/regression/usbx_ux_host_class_video_format_frame_based_test.c index f55ed4eb9..1df7912fe 100644 --- a/test/regression/usbx_ux_host_class_video_format_frame_based_test.c +++ b/test/regression/usbx_ux_host_class_video_format_frame_based_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_class_video_format_h264_test.c b/test/regression/usbx_ux_host_class_video_format_h264_test.c index 263599f76..4621d4f49 100644 --- a/test/regression/usbx_ux_host_class_video_format_h264_test.c +++ b/test/regression/usbx_ux_host_class_video_format_h264_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_device_basic_memory_tests.c b/test/regression/usbx_ux_host_device_basic_memory_tests.c index ec1b8e312..df3018c03 100644 --- a/test/regression/usbx_ux_host_device_basic_memory_tests.c +++ b/test/regression/usbx_ux_host_device_basic_memory_tests.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_device_basic_tests.c b/test/regression/usbx_ux_host_device_basic_tests.c index 703c883cc..340284832 100644 --- a/test/regression/usbx_ux_host_device_basic_tests.c +++ b/test/regression/usbx_ux_host_device_basic_tests.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_device_initialize_tests.c b/test/regression/usbx_ux_host_device_initialize_tests.c index f32b32abd..2ea725735 100644 --- a/test/regression/usbx_ux_host_device_initialize_tests.c +++ b/test/regression/usbx_ux_host_device_initialize_tests.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_stack_bandwidth_test.c b/test/regression/usbx_ux_host_stack_bandwidth_test.c index dfb2dd67d..767f96b0e 100644 --- a/test/regression/usbx_ux_host_stack_bandwidth_test.c +++ b/test/regression/usbx_ux_host_stack_bandwidth_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_host_stack_bandwidth_.... */ #include diff --git a/test/regression/usbx_ux_host_stack_class_device_scan_test.c b/test/regression/usbx_ux_host_stack_class_device_scan_test.c index 5bf214d4e..442e15981 100644 --- a/test/regression/usbx_ux_host_stack_class_device_scan_test.c +++ b/test/regression/usbx_ux_host_stack_class_device_scan_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_stack_class_get_test.c b/test/regression/usbx_ux_host_stack_class_get_test.c index 5f0848e3e..6813643ec 100644 --- a/test/regression/usbx_ux_host_stack_class_get_test.c +++ b/test/regression/usbx_ux_host_stack_class_get_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_host_stack_class_get. */ #include diff --git a/test/regression/usbx_ux_host_stack_class_instance_destroy_test.c b/test/regression/usbx_ux_host_stack_class_instance_destroy_test.c index 5ac99f995..0135b3103 100644 --- a/test/regression/usbx_ux_host_stack_class_instance_destroy_test.c +++ b/test/regression/usbx_ux_host_stack_class_instance_destroy_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_stack_class_instance_get_test.c b/test/regression/usbx_ux_host_stack_class_instance_get_test.c index 88298d0bc..df542b571 100644 --- a/test/regression/usbx_ux_host_stack_class_instance_get_test.c +++ b/test/regression/usbx_ux_host_stack_class_instance_get_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_stack_class_instance_verify_test.c b/test/regression/usbx_ux_host_stack_class_instance_verify_test.c index 48fd5cc0e..f95292871 100644 --- a/test/regression/usbx_ux_host_stack_class_instance_verify_test.c +++ b/test/regression/usbx_ux_host_stack_class_instance_verify_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_stack_class_interface_scan_test.c b/test/regression/usbx_ux_host_stack_class_interface_scan_test.c index bf99fcb9e..6a0669bce 100644 --- a/test/regression/usbx_ux_host_stack_class_interface_scan_test.c +++ b/test/regression/usbx_ux_host_stack_class_interface_scan_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_stack_class_register_test.c b/test/regression/usbx_ux_host_stack_class_register_test.c index 7dcd3fc37..dc452b83d 100644 --- a/test/regression/usbx_ux_host_stack_class_register_test.c +++ b/test/regression/usbx_ux_host_stack_class_register_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_host_stack_class_register. */ #include diff --git a/test/regression/usbx_ux_host_stack_class_unregister_test.c b/test/regression/usbx_ux_host_stack_class_unregister_test.c index 570712aff..24f3385cb 100644 --- a/test/regression/usbx_ux_host_stack_class_unregister_test.c +++ b/test/regression/usbx_ux_host_stack_class_unregister_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_utility_memory_.... */ #include diff --git a/test/regression/usbx_ux_host_stack_configuration_descriptor_parse_test.c b/test/regression/usbx_ux_host_stack_configuration_descriptor_parse_test.c index 97fd1f1a4..756475dba 100644 --- a/test/regression/usbx_ux_host_stack_configuration_descriptor_parse_test.c +++ b/test/regression/usbx_ux_host_stack_configuration_descriptor_parse_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_host_stack_configuration_descriptor_parse. */ #include diff --git a/test/regression/usbx_ux_host_stack_configuration_enumerate_test.c b/test/regression/usbx_ux_host_stack_configuration_enumerate_test.c index 6aa1afbe9..f50c010f0 100644 --- a/test/regression/usbx_ux_host_stack_configuration_enumerate_test.c +++ b/test/regression/usbx_ux_host_stack_configuration_enumerate_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_host_stack_configuration_enumerate. */ #include diff --git a/test/regression/usbx_ux_host_stack_configuration_instance_delete_test.c b/test/regression/usbx_ux_host_stack_configuration_instance_delete_test.c index edec2c2e5..dd363ef4e 100644 --- a/test/regression/usbx_ux_host_stack_configuration_instance_delete_test.c +++ b/test/regression/usbx_ux_host_stack_configuration_instance_delete_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_host_stack_configuration_instance_delete. */ #include diff --git a/test/regression/usbx_ux_host_stack_configuration_interface_get_test.c b/test/regression/usbx_ux_host_stack_configuration_interface_get_test.c index af698fb2b..9a95e26e5 100644 --- a/test/regression/usbx_ux_host_stack_configuration_interface_get_test.c +++ b/test/regression/usbx_ux_host_stack_configuration_interface_get_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_host_stack_configuration_interface_get. */ #include diff --git a/test/regression/usbx_ux_host_stack_configuration_set_test.c b/test/regression/usbx_ux_host_stack_configuration_set_test.c index 16a3879c4..1ff391282 100644 --- a/test/regression/usbx_ux_host_stack_configuration_set_test.c +++ b/test/regression/usbx_ux_host_stack_configuration_set_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_stack_device_address_set_test.c b/test/regression/usbx_ux_host_stack_device_address_set_test.c index eb3709466..080ca57b0 100644 --- a/test/regression/usbx_ux_host_stack_device_address_set_test.c +++ b/test/regression/usbx_ux_host_stack_device_address_set_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_stack_device_configuration_activate_test.c b/test/regression/usbx_ux_host_stack_device_configuration_activate_test.c index 4fa48288d..da58c51eb 100644 --- a/test/regression/usbx_ux_host_stack_device_configuration_activate_test.c +++ b/test/regression/usbx_ux_host_stack_device_configuration_activate_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_stack_device_configuration_get_test.c b/test/regression/usbx_ux_host_stack_device_configuration_get_test.c index 0d10702a6..1655076c7 100644 --- a/test/regression/usbx_ux_host_stack_device_configuration_get_test.c +++ b/test/regression/usbx_ux_host_stack_device_configuration_get_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_host_stack_device_configuration_get. */ #include diff --git a/test/regression/usbx_ux_host_stack_device_configuration_reset_coverage_test.c b/test/regression/usbx_ux_host_stack_device_configuration_reset_coverage_test.c index 4724ddd04..6a3f559c9 100644 --- a/test/regression/usbx_ux_host_stack_device_configuration_reset_coverage_test.c +++ b/test/regression/usbx_ux_host_stack_device_configuration_reset_coverage_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #include #include "tx_api.h" #include "ux_api.h" diff --git a/test/regression/usbx_ux_host_stack_device_configuration_reset_select_test.c b/test/regression/usbx_ux_host_stack_device_configuration_reset_select_test.c index 7f7eac0e6..1cfde028f 100644 --- a/test/regression/usbx_ux_host_stack_device_configuration_reset_select_test.c +++ b/test/regression/usbx_ux_host_stack_device_configuration_reset_select_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_host_stack_device_configuration_reset/select. */ #include diff --git a/test/regression/usbx_ux_host_stack_device_descriptor_read_test.c b/test/regression/usbx_ux_host_stack_device_descriptor_read_test.c index 3f305596c..daa2ee0bb 100644 --- a/test/regression/usbx_ux_host_stack_device_descriptor_read_test.c +++ b/test/regression/usbx_ux_host_stack_device_descriptor_read_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_host_stack_device_descriptor_read. */ #include diff --git a/test/regression/usbx_ux_host_stack_device_get_test.c b/test/regression/usbx_ux_host_stack_device_get_test.c index 8ef100b54..30058947f 100644 --- a/test/regression/usbx_ux_host_stack_device_get_test.c +++ b/test/regression/usbx_ux_host_stack_device_get_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_host_stack_device_get. */ #include diff --git a/test/regression/usbx_ux_host_stack_device_remove_test.c b/test/regression/usbx_ux_host_stack_device_remove_test.c index a3f677447..3108df614 100644 --- a/test/regression/usbx_ux_host_stack_device_remove_test.c +++ b/test/regression/usbx_ux_host_stack_device_remove_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_stack_device_string_get_test.c b/test/regression/usbx_ux_host_stack_device_string_get_test.c index 99b9a8e93..5e4012a4c 100644 --- a/test/regression/usbx_ux_host_stack_device_string_get_test.c +++ b/test/regression/usbx_ux_host_stack_device_string_get_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_stack_endpoint_instance_create_test.c b/test/regression/usbx_ux_host_stack_endpoint_instance_create_test.c index d47a810ea..11a655395 100644 --- a/test/regression/usbx_ux_host_stack_endpoint_instance_create_test.c +++ b/test/regression/usbx_ux_host_stack_endpoint_instance_create_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_stack_endpoint_instance_test.c b/test/regression/usbx_ux_host_stack_endpoint_instance_test.c index 9de7476d1..8e664523f 100644 --- a/test/regression/usbx_ux_host_stack_endpoint_instance_test.c +++ b/test/regression/usbx_ux_host_stack_endpoint_instance_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_host_stack_endpoint_instance_.... */ #include diff --git a/test/regression/usbx_ux_host_stack_endpoint_reset_test.c b/test/regression/usbx_ux_host_stack_endpoint_reset_test.c index a6e0c0143..05a0d7246 100644 --- a/test/regression/usbx_ux_host_stack_endpoint_reset_test.c +++ b/test/regression/usbx_ux_host_stack_endpoint_reset_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_stack_enum_bMaxPacketSize0_test.c b/test/regression/usbx_ux_host_stack_enum_bMaxPacketSize0_test.c index 2ef10293d..00e7d6bc0 100644 --- a/test/regression/usbx_ux_host_stack_enum_bMaxPacketSize0_test.c +++ b/test/regression/usbx_ux_host_stack_enum_bMaxPacketSize0_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the BOS. */ #include diff --git a/test/regression/usbx_ux_host_stack_enum_wMaxPacketSize_test.c b/test/regression/usbx_ux_host_stack_enum_wMaxPacketSize_test.c index 8d3a9f3d7..72f84605f 100644 --- a/test/regression/usbx_ux_host_stack_enum_wMaxPacketSize_test.c +++ b/test/regression/usbx_ux_host_stack_enum_wMaxPacketSize_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the BOS. */ #include diff --git a/test/regression/usbx_ux_host_stack_hcd_register_test.c b/test/regression/usbx_ux_host_stack_hcd_register_test.c index 4b3a8f649..b4743cb17 100644 --- a/test/regression/usbx_ux_host_stack_hcd_register_test.c +++ b/test/regression/usbx_ux_host_stack_hcd_register_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_host_stack_hcd_register. */ #include diff --git a/test/regression/usbx_ux_host_stack_hcd_thread_entry_test.c b/test/regression/usbx_ux_host_stack_hcd_thread_entry_test.c index 34ddf7669..e0e7531b5 100644 --- a/test/regression/usbx_ux_host_stack_hcd_thread_entry_test.c +++ b/test/regression/usbx_ux_host_stack_hcd_thread_entry_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the _ux_host_stack_hcd_thread_entry. */ #include diff --git a/test/regression/usbx_ux_host_stack_hcd_transfer_request_test.c b/test/regression/usbx_ux_host_stack_hcd_transfer_request_test.c index c4ea98a59..d88f3b36c 100644 --- a/test/regression/usbx_ux_host_stack_hcd_transfer_request_test.c +++ b/test/regression/usbx_ux_host_stack_hcd_transfer_request_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_host_stack_hcd_transfer_request. */ #include diff --git a/test/regression/usbx_ux_host_stack_hcd_unregister_test.c b/test/regression/usbx_ux_host_stack_hcd_unregister_test.c index f53f7fb5a..ac94f040d 100644 --- a/test/regression/usbx_ux_host_stack_hcd_unregister_test.c +++ b/test/regression/usbx_ux_host_stack_hcd_unregister_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_utility_memory_.... */ #include diff --git a/test/regression/usbx_ux_host_stack_interface_endpoint_get_test.c b/test/regression/usbx_ux_host_stack_interface_endpoint_get_test.c index 96ca2dc7b..23941dbc7 100644 --- a/test/regression/usbx_ux_host_stack_interface_endpoint_get_test.c +++ b/test/regression/usbx_ux_host_stack_interface_endpoint_get_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_stack_interface_setting_select_test.c b/test/regression/usbx_ux_host_stack_interface_setting_select_test.c index 0b3e2bfeb..87529baca 100644 --- a/test/regression/usbx_ux_host_stack_interface_setting_select_test.c +++ b/test/regression/usbx_ux_host_stack_interface_setting_select_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_host_stack_interface_setting_select. */ #include diff --git a/test/regression/usbx_ux_host_stack_interfaces_scan_test.c b/test/regression/usbx_ux_host_stack_interfaces_scan_test.c index f809d68a9..dc317ef87 100644 --- a/test/regression/usbx_ux_host_stack_interfaces_scan_test.c +++ b/test/regression/usbx_ux_host_stack_interfaces_scan_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_stack_new_configuration_create_test.c b/test/regression/usbx_ux_host_stack_new_configuration_create_test.c index d5587c34a..00a213c16 100644 --- a/test/regression/usbx_ux_host_stack_new_configuration_create_test.c +++ b/test/regression/usbx_ux_host_stack_new_configuration_create_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_stack_new_device_create_test.c b/test/regression/usbx_ux_host_stack_new_device_create_test.c index c9587454c..d26ca016c 100644 --- a/test/regression/usbx_ux_host_stack_new_device_create_test.c +++ b/test/regression/usbx_ux_host_stack_new_device_create_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_stack_new_device_get_test.c b/test/regression/usbx_ux_host_stack_new_device_get_test.c index 7dbe059b6..068cfa20a 100644 --- a/test/regression/usbx_ux_host_stack_new_device_get_test.c +++ b/test/regression/usbx_ux_host_stack_new_device_get_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_host_stack_new_device_get. */ #include diff --git a/test/regression/usbx_ux_host_stack_new_interface_create_test.c b/test/regression/usbx_ux_host_stack_new_interface_create_test.c index dced9788e..3ad11d269 100644 --- a/test/regression/usbx_ux_host_stack_new_interface_create_test.c +++ b/test/regression/usbx_ux_host_stack_new_interface_create_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_stack_rh_change_process_test.c b/test/regression/usbx_ux_host_stack_rh_change_process_test.c index ae24d084a..255011e47 100644 --- a/test/regression/usbx_ux_host_stack_rh_change_process_test.c +++ b/test/regression/usbx_ux_host_stack_rh_change_process_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_stack_rh_device_insertion_test.c b/test/regression/usbx_ux_host_stack_rh_device_insertion_test.c index 7c7b923e1..547d3a166 100644 --- a/test/regression/usbx_ux_host_stack_rh_device_insertion_test.c +++ b/test/regression/usbx_ux_host_stack_rh_device_insertion_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_stack_transfer_request_abort_test.c b/test/regression/usbx_ux_host_stack_transfer_request_abort_test.c index a62af87ca..fb19a8be1 100644 --- a/test/regression/usbx_ux_host_stack_transfer_request_abort_test.c +++ b/test/regression/usbx_ux_host_stack_transfer_request_abort_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_ux_host_stack_transfer_request_test.c b/test/regression/usbx_ux_host_stack_transfer_request_test.c index 4d934c6ea..8cbca9b96 100644 --- a/test/regression/usbx_ux_host_stack_transfer_request_test.c +++ b/test/regression/usbx_ux_host_stack_transfer_request_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_host_stack_transfer_request. */ #include diff --git a/test/regression/usbx_ux_host_stack_uninitialize_test.c b/test/regression/usbx_ux_host_stack_uninitialize_test.c index 30e90dd48..431c0c41e 100644 --- a/test/regression/usbx_ux_host_stack_uninitialize_test.c +++ b/test/regression/usbx_ux_host_stack_uninitialize_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_utility_memory_.... */ #include diff --git a/test/regression/usbx_ux_test_cdc_ecm.h b/test/regression/usbx_ux_test_cdc_ecm.h index 75297e033..795be97ef 100644 --- a/test/regression/usbx_ux_test_cdc_ecm.h +++ b/test/regression/usbx_ux_test_cdc_ecm.h @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #ifndef USBX_UX_TEST_CDC_ECM_H #define USBX_UX_TEST_CDC_ECM_H diff --git a/test/regression/usbx_ux_test_hub.h b/test/regression/usbx_ux_test_hub.h index d9c05f0b0..bc0bfe97d 100644 --- a/test/regression/usbx_ux_test_hub.h +++ b/test/regression/usbx_ux_test_hub.h @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #include #include "tx_api.h" #include "ux_api.h" diff --git a/test/regression/usbx_ux_utility_basic_memory_management_test.c b/test/regression/usbx_ux_utility_basic_memory_management_test.c index 5fe01c5de..e2797b26c 100644 --- a/test/regression/usbx_ux_utility_basic_memory_management_test.c +++ b/test/regression/usbx_ux_utility_basic_memory_management_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #include #include "tx_api.h" #include "ux_api.h" diff --git a/test/regression/usbx_ux_utility_descriptor_pack_test.c b/test/regression/usbx_ux_utility_descriptor_pack_test.c index e81da535a..02a5938e8 100644 --- a/test/regression/usbx_ux_utility_descriptor_pack_test.c +++ b/test/regression/usbx_ux_utility_descriptor_pack_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_utility_descriptor_pack. */ #include diff --git a/test/regression/usbx_ux_utility_descriptor_parse_test.c b/test/regression/usbx_ux_utility_descriptor_parse_test.c index b19853023..0e36f8a48 100644 --- a/test/regression/usbx_ux_utility_descriptor_parse_test.c +++ b/test/regression/usbx_ux_utility_descriptor_parse_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_utility_descriptor_parse. */ #include diff --git a/test/regression/usbx_ux_utility_descriptor_struct_test.c b/test/regression/usbx_ux_utility_descriptor_struct_test.c index e821abcf6..67a83c9a9 100644 --- a/test/regression/usbx_ux_utility_descriptor_struct_test.c +++ b/test/regression/usbx_ux_utility_descriptor_struct_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_utility_descriptor_parse. */ #include diff --git a/test/regression/usbx_ux_utility_event_flags_test.c b/test/regression/usbx_ux_utility_event_flags_test.c index 33d3df82f..1edf8e9c1 100644 --- a/test/regression/usbx_ux_utility_event_flags_test.c +++ b/test/regression/usbx_ux_utility_event_flags_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_utility_event_flags. */ #include diff --git a/test/regression/usbx_ux_utility_memory_safe_test.c b/test/regression/usbx_ux_utility_memory_safe_test.c index 52bb04bb1..fe409fb78 100644 --- a/test/regression/usbx_ux_utility_memory_safe_test.c +++ b/test/regression/usbx_ux_utility_memory_safe_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_utility_memory_.... */ #include diff --git a/test/regression/usbx_ux_utility_memory_test.c b/test/regression/usbx_ux_utility_memory_test.c index 72be3d97a..5dd1d40e7 100644 --- a/test/regression/usbx_ux_utility_memory_test.c +++ b/test/regression/usbx_ux_utility_memory_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_utility_memory_.... */ #include diff --git a/test/regression/usbx_ux_utility_mutex_test.c b/test/regression/usbx_ux_utility_mutex_test.c index 545bf18d7..0fcc234cf 100644 --- a/test/regression/usbx_ux_utility_mutex_test.c +++ b/test/regression/usbx_ux_utility_mutex_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_utility_mutex_.... */ #include diff --git a/test/regression/usbx_ux_utility_pci_class_scan_test.c b/test/regression/usbx_ux_utility_pci_class_scan_test.c index 81e00895e..ab8ff9745 100644 --- a/test/regression/usbx_ux_utility_pci_class_scan_test.c +++ b/test/regression/usbx_ux_utility_pci_class_scan_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the _ux_utility_pci_class_scan. */ #include diff --git a/test/regression/usbx_ux_utility_pci_read_test.c b/test/regression/usbx_ux_utility_pci_read_test.c index 700d48b64..77277fa1c 100644 --- a/test/regression/usbx_ux_utility_pci_read_test.c +++ b/test/regression/usbx_ux_utility_pci_read_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_utility_pci_read. */ #include diff --git a/test/regression/usbx_ux_utility_pci_write_test.c b/test/regression/usbx_ux_utility_pci_write_test.c index 3125e2037..bd001dff2 100644 --- a/test/regression/usbx_ux_utility_pci_write_test.c +++ b/test/regression/usbx_ux_utility_pci_write_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the _ux_utility_pci_write. */ #include diff --git a/test/regression/usbx_ux_utility_physical_address_test.c b/test/regression/usbx_ux_utility_physical_address_test.c index 1475e6f78..6994084a2 100644 --- a/test/regression/usbx_ux_utility_physical_address_test.c +++ b/test/regression/usbx_ux_utility_physical_address_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_utility_physical_address. */ #include diff --git a/test/regression/usbx_ux_utility_semaphore_test.c b/test/regression/usbx_ux_utility_semaphore_test.c index 580c9768a..ba0401235 100644 --- a/test/regression/usbx_ux_utility_semaphore_test.c +++ b/test/regression/usbx_ux_utility_semaphore_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_utility_semaphore. */ #include diff --git a/test/regression/usbx_ux_utility_string_length_check_test.c b/test/regression/usbx_ux_utility_string_length_check_test.c index 09b39cbba..4e2c18ade 100644 --- a/test/regression/usbx_ux_utility_string_length_check_test.c +++ b/test/regression/usbx_ux_utility_string_length_check_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_utility_string_length_check. */ #include diff --git a/test/regression/usbx_ux_utility_thread_create_test.c b/test/regression/usbx_ux_utility_thread_create_test.c index 4f2e8ea2f..43ca62cb5 100644 --- a/test/regression/usbx_ux_utility_thread_create_test.c +++ b/test/regression/usbx_ux_utility_thread_create_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_utility_thread_create. */ #include diff --git a/test/regression/usbx_ux_utility_thread_identify_test.c b/test/regression/usbx_ux_utility_thread_identify_test.c index c56ca3ad2..893bf1daa 100644 --- a/test/regression/usbx_ux_utility_thread_identify_test.c +++ b/test/regression/usbx_ux_utility_thread_identify_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_utility_thread_identify. */ #include diff --git a/test/regression/usbx_ux_utility_thread_schedule_other_test.c b/test/regression/usbx_ux_utility_thread_schedule_other_test.c index 95eb34706..e8c1a5784 100644 --- a/test/regression/usbx_ux_utility_thread_schedule_other_test.c +++ b/test/regression/usbx_ux_utility_thread_schedule_other_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_utility_thread_schedule_other_.... */ #include diff --git a/test/regression/usbx_ux_utility_thread_suspend_test.c b/test/regression/usbx_ux_utility_thread_suspend_test.c index 80833bf50..7c5debfe8 100644 --- a/test/regression/usbx_ux_utility_thread_suspend_test.c +++ b/test/regression/usbx_ux_utility_thread_suspend_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_utility_thread_suspend. */ #include diff --git a/test/regression/usbx_ux_utility_time_elapsed_test.c b/test/regression/usbx_ux_utility_time_elapsed_test.c index f651867b0..81dbf33e5 100644 --- a/test/regression/usbx_ux_utility_time_elapsed_test.c +++ b/test/regression/usbx_ux_utility_time_elapsed_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_utility_time_elapsed macro.... */ #include diff --git a/test/regression/usbx_ux_utility_timer_test.c b/test/regression/usbx_ux_utility_timer_test.c index 8eb60df9d..2c49b0018 100644 --- a/test/regression/usbx_ux_utility_timer_test.c +++ b/test/regression/usbx_ux_utility_timer_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_utility_timer_.... */ #include diff --git a/test/regression/usbx_ux_utility_unicode_to_string_test.c b/test/regression/usbx_ux_utility_unicode_to_string_test.c index ea801b385..79c644fdf 100644 --- a/test/regression/usbx_ux_utility_unicode_to_string_test.c +++ b/test/regression/usbx_ux_utility_unicode_to_string_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_utility_unicode_to_string. */ #include diff --git a/test/regression/usbx_uxe_device_audio_test.c b/test/regression/usbx_uxe_device_audio_test.c index 2f14708bc..153653b6a 100644 --- a/test/regression/usbx_uxe_device_audio_test.c +++ b/test/regression/usbx_uxe_device_audio_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_utility_descriptor_pack. */ #include diff --git a/test/regression/usbx_uxe_device_ccid_test.c b/test/regression/usbx_uxe_device_ccid_test.c index 376a45c96..e7b8e2056 100644 --- a/test/regression/usbx_uxe_device_ccid_test.c +++ b/test/regression/usbx_uxe_device_ccid_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_utility_descriptor_pack. */ #include diff --git a/test/regression/usbx_uxe_device_cdc_acm_test.c b/test/regression/usbx_uxe_device_cdc_acm_test.c index e0d85e3b4..2ec30e00e 100644 --- a/test/regression/usbx_uxe_device_cdc_acm_test.c +++ b/test/regression/usbx_uxe_device_cdc_acm_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_utility_descriptor_pack. */ #include diff --git a/test/regression/usbx_uxe_device_dfu_test.c b/test/regression/usbx_uxe_device_dfu_test.c index f553008e1..cc322078f 100644 --- a/test/regression/usbx_uxe_device_dfu_test.c +++ b/test/regression/usbx_uxe_device_dfu_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the simple dpump host/device class operation. */ #include diff --git a/test/regression/usbx_uxe_device_hid_test.c b/test/regression/usbx_uxe_device_hid_test.c index ca03f7efa..cc0225e23 100644 --- a/test/regression/usbx_uxe_device_hid_test.c +++ b/test/regression/usbx_uxe_device_hid_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_utility_descriptor_pack. */ #include diff --git a/test/regression/usbx_uxe_device_pima_test.c b/test/regression/usbx_uxe_device_pima_test.c index 5cbea5d49..b9796ea80 100644 --- a/test/regression/usbx_uxe_device_pima_test.c +++ b/test/regression/usbx_uxe_device_pima_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_utility_descriptor_pack. */ #include diff --git a/test/regression/usbx_uxe_device_printer_test.c b/test/regression/usbx_uxe_device_printer_test.c index 2cc29b41a..cd81c0c30 100644 --- a/test/regression/usbx_uxe_device_printer_test.c +++ b/test/regression/usbx_uxe_device_printer_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_utility_descriptor_pack. */ #include diff --git a/test/regression/usbx_uxe_device_stack_test.c b/test/regression/usbx_uxe_device_stack_test.c index ad20181d3..0a47e86f9 100644 --- a/test/regression/usbx_uxe_device_stack_test.c +++ b/test/regression/usbx_uxe_device_stack_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_utility_descriptor_pack. */ #include diff --git a/test/regression/usbx_uxe_device_storage_test.c b/test/regression/usbx_uxe_device_storage_test.c index ab93ea769..d68504dce 100644 --- a/test/regression/usbx_uxe_device_storage_test.c +++ b/test/regression/usbx_uxe_device_storage_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_utility_descriptor_pack. */ #include diff --git a/test/regression/usbx_uxe_device_video_test.c b/test/regression/usbx_uxe_device_video_test.c index 7e7ff7ccf..9a4a3f00c 100644 --- a/test/regression/usbx_uxe_device_video_test.c +++ b/test/regression/usbx_uxe_device_video_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_utility_descriptor_pack. */ #include diff --git a/test/regression/usbx_uxe_host_audio_test.c b/test/regression/usbx_uxe_host_audio_test.c index e3c0e2c2c..a2544d25b 100644 --- a/test/regression/usbx_uxe_host_audio_test.c +++ b/test/regression/usbx_uxe_host_audio_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_utility_descriptor_pack. */ #include diff --git a/test/regression/usbx_uxe_host_cdc_acm_test.c b/test/regression/usbx_uxe_host_cdc_acm_test.c index ea07fa287..cd369b0bf 100644 --- a/test/regression/usbx_uxe_host_cdc_acm_test.c +++ b/test/regression/usbx_uxe_host_cdc_acm_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_utility_descriptor_pack. */ #include diff --git a/test/regression/usbx_uxe_host_gser_test.c b/test/regression/usbx_uxe_host_gser_test.c index 7ecb8b8ec..4862f4cd0 100644 --- a/test/regression/usbx_uxe_host_gser_test.c +++ b/test/regression/usbx_uxe_host_gser_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_utility_descriptor_pack. */ #include diff --git a/test/regression/usbx_uxe_host_hid_test.c b/test/regression/usbx_uxe_host_hid_test.c index e635a5706..ad89b9813 100644 --- a/test/regression/usbx_uxe_host_hid_test.c +++ b/test/regression/usbx_uxe_host_hid_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_utility_descriptor_pack. */ #include diff --git a/test/regression/usbx_uxe_host_pima_test.c b/test/regression/usbx_uxe_host_pima_test.c index 11d757c0e..e22a69fb5 100644 --- a/test/regression/usbx_uxe_host_pima_test.c +++ b/test/regression/usbx_uxe_host_pima_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_utility_descriptor_pack. */ #include diff --git a/test/regression/usbx_uxe_host_printer_test.c b/test/regression/usbx_uxe_host_printer_test.c index 2374123f4..77d961956 100644 --- a/test/regression/usbx_uxe_host_printer_test.c +++ b/test/regression/usbx_uxe_host_printer_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_utility_descriptor_pack. */ #include diff --git a/test/regression/usbx_uxe_host_prolific_test.c b/test/regression/usbx_uxe_host_prolific_test.c index ad55de3ae..1967bcf30 100644 --- a/test/regression/usbx_uxe_host_prolific_test.c +++ b/test/regression/usbx_uxe_host_prolific_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_utility_descriptor_pack. */ #include diff --git a/test/regression/usbx_uxe_host_stack_test.c b/test/regression/usbx_uxe_host_stack_test.c index 1476ba608..175b3c854 100644 --- a/test/regression/usbx_uxe_host_stack_test.c +++ b/test/regression/usbx_uxe_host_stack_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_utility_descriptor_pack. */ #include diff --git a/test/regression/usbx_uxe_host_storage_test.c b/test/regression/usbx_uxe_host_storage_test.c index 0d66a8236..490509ab3 100644 --- a/test/regression/usbx_uxe_host_storage_test.c +++ b/test/regression/usbx_uxe_host_storage_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_utility_descriptor_pack. */ #include diff --git a/test/regression/usbx_uxe_host_swar_test.c b/test/regression/usbx_uxe_host_swar_test.c index 33fc3b382..3deddddf0 100644 --- a/test/regression/usbx_uxe_host_swar_test.c +++ b/test/regression/usbx_uxe_host_swar_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_utility_descriptor_pack. */ #include diff --git a/test/regression/usbx_uxe_host_video_test.c b/test/regression/usbx_uxe_host_video_test.c index c7a6585a7..23d4ef114 100644 --- a/test/regression/usbx_uxe_host_video_test.c +++ b/test/regression/usbx_uxe_host_video_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_utility_descriptor_pack. */ #include diff --git a/test/regression/usbx_uxe_system_test.c b/test/regression/usbx_uxe_system_test.c index 910038d35..2ac99c7b9 100644 --- a/test/regression/usbx_uxe_system_test.c +++ b/test/regression/usbx_uxe_system_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test the ux_utility_descriptor_pack. */ #include diff --git a/test/regression/usbxtestcontrol.c b/test/regression/usbxtestcontrol.c index fa6bba6fb..69863cb44 100644 --- a/test/regression/usbxtestcontrol.c +++ b/test/regression/usbxtestcontrol.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This is the test control routine of the USBX kernel. All tests are dispatched from this routine. */ #include "tx_api.h" diff --git a/test/regression/ux_device_class_dummy.c b/test/regression/ux_device_class_dummy.c index 4f401d4b0..d1a07ca93 100644 --- a/test/regression/ux_device_class_dummy.c +++ b/test/regression/ux_device_class_dummy.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #include "ux_api.h" #include "ux_device_class_dummy.h" diff --git a/test/regression/ux_device_class_dummy.h b/test/regression/ux_device_class_dummy.h index 79087d6cc..044751b03 100644 --- a/test/regression/ux_device_class_dummy.h +++ b/test/regression/ux_device_class_dummy.h @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #ifndef UX_DEVICE_CLASS_DUMMY_H #define UX_DEVICE_CLASS_DUMMY_H diff --git a/test/regression/ux_device_class_dummy_hub.c b/test/regression/ux_device_class_dummy_hub.c index 1bca5c206..895a7e75a 100644 --- a/test/regression/ux_device_class_dummy_hub.c +++ b/test/regression/ux_device_class_dummy_hub.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #include #include "tx_api.h" #include "ux_api.h" diff --git a/test/regression/ux_device_class_dummy_hub.h b/test/regression/ux_device_class_dummy_hub.h index c0860e363..fcc470bb4 100644 --- a/test/regression/ux_device_class_dummy_hub.h +++ b/test/regression/ux_device_class_dummy_hub.h @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #ifndef UX_DEVICE_CLASS_DUMMY_HUB_H #define UX_DEVICE_CLASS_DUMMY_HUB_H diff --git a/test/regression/ux_device_class_dummy_printer.c b/test/regression/ux_device_class_dummy_printer.c index a5667ca00..046d8efde 100644 --- a/test/regression/ux_device_class_dummy_printer.c +++ b/test/regression/ux_device_class_dummy_printer.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #include #include "tx_api.h" #include "ux_api.h" diff --git a/test/regression/ux_device_class_dummy_printer.h b/test/regression/ux_device_class_dummy_printer.h index e51adf3df..314b2cc8c 100644 --- a/test/regression/ux_device_class_dummy_printer.h +++ b/test/regression/ux_device_class_dummy_printer.h @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #ifndef UX_DEVICE_CLASS_DUMMY_PRINTER_H #define UX_DEVICE_CLASS_DUMMY_PRINTER_H diff --git a/test/regression/ux_host_class_dummy.c b/test/regression/ux_host_class_dummy.c index fd7ea6e93..1bfea99fa 100644 --- a/test/regression/ux_host_class_dummy.c +++ b/test/regression/ux_host_class_dummy.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #include "ux_test.h" #include "ux_api.h" diff --git a/test/regression/ux_host_class_dummy.h b/test/regression/ux_host_class_dummy.h index 5be183265..2c2d42e8f 100644 --- a/test/regression/ux_host_class_dummy.h +++ b/test/regression/ux_host_class_dummy.h @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #ifndef UX_HOST_CLASS_DUMMY_H #define UX_HOST_CLASS_DUMMY_H diff --git a/test/regression/ux_test.c b/test/regression/ux_test.c index b2eeb8e6a..f8cfdc110 100644 --- a/test/regression/ux_test.c +++ b/test/regression/ux_test.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #include "ux_test.h" #include "ux_test_hcd_sim_host.h" #include "ux_test_dcd_sim_slave.h" diff --git a/test/regression/ux_test.h b/test/regression/ux_test.h index 6fa632f22..d9c8642ed 100644 --- a/test/regression/ux_test.h +++ b/test/regression/ux_test.h @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* USBX common things for testing. */ #ifndef _UX_TEST_H diff --git a/test/regression/ux_test_actions.h b/test/regression/ux_test_actions.h index bbe0f0670..beed7c613 100644 --- a/test/regression/ux_test_actions.h +++ b/test/regression/ux_test_actions.h @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #ifndef UX_TEST_ACTIONS_H #define UX_TEST_ACTIONS_H diff --git a/test/regression/ux_test_dcd_sim_slave.c b/test/regression/ux_test_dcd_sim_slave.c index 21da6cbe2..fc1eda56d 100644 --- a/test/regression/ux_test_dcd_sim_slave.c +++ b/test/regression/ux_test_dcd_sim_slave.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test simulator is designed to redirect simulate ux_hcd_sim_slave_ APIs for test. */ #include "tx_api.h" diff --git a/test/regression/ux_test_dcd_sim_slave.h b/test/regression/ux_test_dcd_sim_slave.h index 4aad65985..cdef03616 100644 --- a/test/regression/ux_test_dcd_sim_slave.h +++ b/test/regression/ux_test_dcd_sim_slave.h @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test simulator is designed to simulate ux_hcd_ APIs for test. */ #ifndef _UX_TEST_DCD_SIM_SLAVE_H diff --git a/test/regression/ux_test_hcd_sim_host.c b/test/regression/ux_test_hcd_sim_host.c index c58db657d..04f18a6ed 100644 --- a/test/regression/ux_test_hcd_sim_host.c +++ b/test/regression/ux_test_hcd_sim_host.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test simulator is designed to simulate ux_hcd_ APIs for test. */ #include "tx_api.h" diff --git a/test/regression/ux_test_hcd_sim_host.h b/test/regression/ux_test_hcd_sim_host.h index cd398eb2f..fd5ef5435 100644 --- a/test/regression/ux_test_hcd_sim_host.h +++ b/test/regression/ux_test_hcd_sim_host.h @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test simulator is designed to simulate ux_hcd_ APIs for test. */ #ifndef _UX_TEST_HCD_SIM_HOST_H diff --git a/test/regression/ux_test_jpeg_image.h b/test/regression/ux_test_jpeg_image.h index 4690288d8..07fdad480 100644 --- a/test/regression/ux_test_jpeg_image.h +++ b/test/regression/ux_test_jpeg_image.h @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #ifndef UX_TEST_JPEG_IMAGE_H #define UX_TEST_JPEG_IMAGE_H diff --git a/test/regression/ux_test_race_condition_overrides.c b/test/regression/ux_test_race_condition_overrides.c index 340a1659f..529ad474a 100644 --- a/test/regression/ux_test_race_condition_overrides.c +++ b/test/regression/ux_test_race_condition_overrides.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + #include "ux_test.h" #include "ux_api.h" #include "ux_host_class_storage.h" diff --git a/test/regression/ux_test_standalone_references.c b/test/regression/ux_test_standalone_references.c index a21b23eaf..6cc98d738 100644 --- a/test/regression/ux_test_standalone_references.c +++ b/test/regression/ux_test_standalone_references.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* Pure UX configurations, isolate other headers configurations. */ #include "ux_api.h" diff --git a/test/regression/ux_test_utility_sim.c b/test/regression/ux_test_utility_sim.c index a1f951c0a..7a98fe5d4 100644 --- a/test/regression/ux_test_utility_sim.c +++ b/test/regression/ux_test_utility_sim.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test simulator is designed to simulate ux_utility_ APIs for test. */ #include diff --git a/test/regression/ux_test_utility_sim.h b/test/regression/ux_test_utility_sim.h index e08edf2dc..3df5dcd68 100644 --- a/test/regression/ux_test_utility_sim.h +++ b/test/regression/ux_test_utility_sim.h @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test simulator is designed to simulate ux_utility_ APIs for test. */ #ifndef _UX_TEST_UTILITY_SIM_H diff --git a/test/regression/ux_test_utility_sim_no_overriding.c b/test/regression/ux_test_utility_sim_no_overriding.c index 47da15675..b9227d387 100644 --- a/test/regression/ux_test_utility_sim_no_overriding.c +++ b/test/regression/ux_test_utility_sim_no_overriding.c @@ -1,3 +1,14 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test simulator is designed to simulate ux_utility_ APIs for test. */ #include