Skip to content

Commit f856e41

Browse files
authored
Fixed standalone device HID issue and enable all tests by default. (#129)
* Fixed device hid receiver save position issue. * Enable all tests by default.
1 parent 6ed7092 commit f856e41

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

.github/workflows/regression_test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
tests_to_run:
99
description: 'all, single or multiple of default_build_coverage error_check_build_full_coverage tracex_enable_build device_buffer_owner_build device_zero_copy_build nofx_build_coverage optimized_build standalone_device_build_coverage standalone_device_buffer_owner_build standalone_device_zero_copy_build standalone_host_build_coverage standalone_build_coverage generic_build otg_support_build memory_management_build_coverage msrc_rtos_build msrc_standalone_build'
1010
required: false
11-
default: 'default_build_coverage'
11+
default: 'all'
1212
skip_coverage:
1313
required: false
1414
type: boolean
@@ -55,7 +55,7 @@ jobs:
5555
uses: azure-rtos/threadx/.github/workflows/regression_template.yml@master
5656
with:
5757
cmake_path: ./test/cmake/usbx
58-
build_script: ./scripts/build.sh default_build_coverage
59-
test_script: ./scripts/test.sh default_build_coverage
58+
build_script: ./scripts/build.sh all
59+
test_script: ./scripts/test.sh all
6060
coverage_name: default_build_coverage
6161
skip_coverage: false

common/usbx_device_classes/src/ux_device_class_hid_receiver_tasks_run.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
/* FUNCTION RELEASE */
3636
/* */
3737
/* _ux_device_class_hid_receiver_tasks_run PORTABLE C */
38-
/* 6.3.0 */
38+
/* 6.x */
3939
/* AUTHOR */
4040
/* */
4141
/* Chaoqiong Xiao, Microsoft Corporation */
@@ -70,6 +70,9 @@
7070
/* 10-31-2023 Chaoqiong Xiao Modified comment(s), */
7171
/* added zero copy support, */
7272
/* resulting in version 6.3.0 */
73+
/* xx-xx-xxxx Chaoqiong Xiao Modified comment(s), */
74+
/* fixed save position issue, */
75+
/* resulting in version 6.x */
7376
/* */
7477
/**************************************************************************/
7578
UINT _ux_device_class_hid_receiver_tasks_run(UX_SLAVE_CLASS_HID *hid)
@@ -165,14 +168,16 @@ ULONG temp;
165168
return(UX_STATE_NEXT);
166169
}
167170

171+
/* Get current save position. */
172+
pos = receiver -> ux_device_class_hid_receiver_event_save_pos;
173+
168174
#if (UX_DEVICE_ENDPOINT_BUFFER_OWNER == 1) && defined(UX_DEVICE_CLASS_HID_ZERO_COPY)
169175

170176
/* Save received event length. */
171177
temp = transfer -> ux_slave_transfer_request_actual_length;
172178
#else
173179

174180
/* Save received event data and length. */
175-
pos = receiver -> ux_device_class_hid_receiver_event_save_pos;
176181
buffer = (UCHAR *)&pos -> ux_device_class_hid_received_event_data;
177182
temp = transfer -> ux_slave_transfer_request_actual_length;
178183
_ux_utility_memory_copy(buffer,

0 commit comments

Comments
 (0)