Skip to content

Commit cd55ec7

Browse files
committed
Release 6.1.12
1 parent 082fd9d commit cd55ec7

File tree

287 files changed

+12518
-2638
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

287 files changed

+12518
-2638
lines changed

common/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/usbx_device_classes)
33
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/usbx_host_classes)
44
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/usbx_host_controllers)
55
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/usbx_network)
6+
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/usbx_pictbridge)

common/core/inc/ux_api.h

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
/* APPLICATION INTERFACE DEFINITION RELEASE */
2727
/* */
2828
/* ux_api.h PORTABLE C */
29-
/* 6.1.11 */
29+
/* 6.1.12 */
3030
/* AUTHOR */
3131
/* */
3232
/* Chaoqiong Xiao, Microsoft Corporation */
@@ -115,6 +115,13 @@
115115
/* standalone compiling error, */
116116
/* added CCID trace IDs, */
117117
/* resulting in version 6.1.11 */
118+
/* 07-29-2022 Chaoqiong Xiao Modified comment(s), */
119+
/* fixed parameter/variable */
120+
/* names conflict C++ keyword, */
121+
/* added feedback size defs, */
122+
/* added shared device config */
123+
/* descriptor for enum scan, */
124+
/* resulting in version 6.1.12 */
118125
/* */
119126
/**************************************************************************/
120127

@@ -282,7 +289,7 @@ typedef signed char SCHAR;
282289
#define AZURE_RTOS_USBX
283290
#define USBX_MAJOR_VERSION 6
284291
#define USBX_MINOR_VERSION 1
285-
#define USBX_PATCH_VERSION 11
292+
#define USBX_PATCH_VERSION 12
286293

287294
/* Macros for concatenating tokens, where UX_CONCATn concatenates n tokens. */
288295

@@ -1130,6 +1137,9 @@ VOID _ux_trace_event_update(TX_TRACE_BUFFER_ENTRY *event, ULONG timestamp, UL
11301137
#define UX_MAX_NUMBER_OF_TRANSACTIONS_MASK 0x1800u
11311138
#define UX_MAX_NUMBER_OF_TRANSACTIONS_SHIFT 11
11321139

1140+
#define UX_FEEDBACK_SIZE_FULL_SPEED 3 /* 10.10 format fits into 3 bytes. */
1141+
#define UX_FEEDBACK_SIZE_HIGH_SPEED 4 /* 12.13 format fits into 4 bytes. */
1142+
11331143
#define UX_REQUEST_DIRECTION 0x80u
11341144
#define UX_REQUEST_IN 0x80u
11351145
#define UX_REQUEST_OUT 0x00u
@@ -1261,9 +1271,9 @@ VOID _ux_trace_event_update(TX_TRACE_BUFFER_ENTRY *event, ULONG timestamp, UL
12611271

12621272
#define UX_DEVICE_CONNECTION 0x81u
12631273
#define UX_DEVICE_DISCONNECTION 0x82u
1264-
1274+
12651275
/* Host change callback events : _callback(event, NULL, NULL) */
1266-
1276+
12671277
#define UX_STANDALONE_WAIT_BACKGROUND_TASK 0x00u
12681278

12691279

@@ -1398,6 +1408,7 @@ VOID _ux_trace_event_update(TX_TRACE_BUFFER_ENTRY *event, ULONG timestamp, UL
13981408
#define UX_INVALID_STATE 0xfb
13991409
#define UX_INVALID_PARAMETER 0xfa
14001410
#define UX_ABORTED 0xf9
1411+
#define UX_MATH_OVERFLOW 0xf8
14011412

14021413
#define UX_TOO_MANY_DEVICES 0x11
14031414
#define UX_MEMORY_INSUFFICIENT 0x12
@@ -1469,6 +1480,7 @@ VOID _ux_trace_event_update(TX_TRACE_BUFFER_ENTRY *event, ULONG timestamp, UL
14691480

14701481
#define UX_HOST_CLASS_AUDIO_WRONG_TYPE 0x80
14711482
#define UX_HOST_CLASS_AUDIO_WRONG_INTERFACE 0x81
1483+
#define UX_HOST_CLASS_AUDIO_WRONG_FREQUENCY 0x82
14721484

14731485
#define UX_CLASS_CDC_ECM_LINK_STATE_DOWN_ERROR 0x90
14741486

@@ -1898,6 +1910,8 @@ typedef struct UX_DEVICE_STRUCT
18981910
ULONG ux_device_power_source;
18991911
struct UX_CONFIGURATION_STRUCT
19001912
*ux_device_current_configuration;
1913+
UCHAR *ux_device_packed_configuration;
1914+
ULONG ux_device_packed_configuration_keep_count;
19011915
#if !defined(UX_HOST_STANDALONE)
19021916
UX_SEMAPHORE ux_device_protection_semaphore;
19031917
#endif
@@ -2709,7 +2723,7 @@ UINT ux_host_stack_class_instance_get(UX_HOST_CLASS *host_class, UINT class_i
27092723
UINT ux_host_stack_class_register(UCHAR *class_name, UINT (*class_entry_function)(struct UX_HOST_CLASS_COMMAND_STRUCT *));
27102724
UINT ux_host_stack_class_unregister(UINT (*class_entry_function)(struct UX_HOST_CLASS_COMMAND_STRUCT *));
27112725
UINT ux_host_stack_configuration_interface_get(UX_CONFIGURATION *configuration, UINT interface_index,
2712-
UINT alternate_setting_index, UX_INTERFACE **interface);
2726+
UINT alternate_setting_index, UX_INTERFACE **ux_interface);
27132727
UINT ux_host_stack_device_configuration_activate(UX_CONFIGURATION *configuration);
27142728
UINT ux_host_stack_device_configuration_deactivate(UX_DEVICE *device);
27152729
UINT ux_host_stack_device_configuration_get(UX_DEVICE *device, UINT configuration_index, UX_CONFIGURATION **configuration);
@@ -2721,8 +2735,8 @@ UINT ux_host_stack_hcd_register(UCHAR *hcd_name, UINT (*hcd_initialize_functi
27212735
UINT ux_host_stack_hcd_unregister(UCHAR *hcd_name, ULONG hcd_param1, ULONG hcd_param2);
27222736
UINT ux_host_stack_initialize(UINT (*ux_system_host_change_function)(ULONG, UX_HOST_CLASS *, VOID *));
27232737
UINT ux_host_stack_uninitialize(VOID);
2724-
UINT ux_host_stack_interface_endpoint_get(UX_INTERFACE *interface, UINT endpoint_index, UX_ENDPOINT **endpoint);
2725-
UINT ux_host_stack_interface_setting_select(UX_INTERFACE *interface);
2738+
UINT ux_host_stack_interface_endpoint_get(UX_INTERFACE *ux_interface, UINT endpoint_index, UX_ENDPOINT **endpoint);
2739+
UINT ux_host_stack_interface_setting_select(UX_INTERFACE *ux_interface);
27262740
UINT ux_host_stack_transfer_request(UX_TRANSFER *transfer_request);
27272741
UINT ux_host_stack_transfer_request_abort(UX_TRANSFER *transfer_request);
27282742
VOID ux_host_stack_hnp_polling_thread_entry(ULONG id);
@@ -2762,11 +2776,11 @@ UINT ux_device_stack_initialize(UCHAR * device_framework_high_speed, ULONG de
27622776
UCHAR * language_id_framework, ULONG language_id_framework_length,
27632777
UINT (*ux_system_slave_change_function)(ULONG));
27642778
UINT ux_device_stack_uninitialize(VOID);
2765-
UINT ux_device_stack_interface_delete(UX_SLAVE_INTERFACE *interface);
2779+
UINT ux_device_stack_interface_delete(UX_SLAVE_INTERFACE *ux_interface);
27662780
UINT ux_device_stack_interface_get(UINT interface_value);
27672781
UINT ux_device_stack_interface_set(UCHAR * device_framework, ULONG device_framework_length,
27682782
ULONG alternate_setting_value);
2769-
UINT ux_device_stack_interface_start(UX_SLAVE_INTERFACE *interface);
2783+
UINT ux_device_stack_interface_start(UX_SLAVE_INTERFACE *ux_interface);
27702784
UINT ux_device_stack_transfer_request(UX_SLAVE_TRANSFER *transfer_request, ULONG slave_length, ULONG host_length);
27712785
UINT ux_device_stack_transfer_request_abort(UX_SLAVE_TRANSFER *transfer_request, ULONG completion_code);
27722786

0 commit comments

Comments
 (0)