<feed xmlns='http://www.w3.org/2005/Atom'>
<title>usbx.git/common/usbx_host_classes/inc, branch dev</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/usbx.git/atom/common/usbx_host_classes/inc?h=dev</id>
<link rel='self' href='http://cgit.235523.xyz/usbx.git/atom/common/usbx_host_classes/inc?h=dev'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/usbx.git/'/>
<updated>2026-06-04T19:25:54Z</updated>
<entry>
<title>Added optional device HID protocol change callback and host HID protocol get/set API (#244)</title>
<updated>2026-06-04T19:25:54Z</updated>
<author>
<name>MAY</name>
<email>81168645+ayedm1@users.noreply.github.com</email>
</author>
<published>2026-06-04T19:25:54Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/usbx.git/commit/?id=35927220c0165c06dc90e6c9aa7a8eb9b5806065'/>
<id>urn:sha1:35927220c0165c06dc90e6c9aa7a8eb9b5806065</id>
<content type='text'>
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 &lt;frederic.desbiens@eclipse-foundation.org&gt;
Co-authored-by: Copilot &lt;223556219+Copilot@users.noreply.github.com&gt;</content>
</entry>
<entry>
<title>Add default value protection for line coding parameters in serial Host classes</title>
<updated>2026-03-25T21:00:44Z</updated>
<author>
<name>MAY</name>
<email>mohamed.ayed1@outlook.com</email>
</author>
<published>2026-03-25T21:00:44Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/usbx.git/commit/?id=0b95590b1854a9f38be39a96876067ba3e47db8f'/>
<id>urn:sha1:0b95590b1854a9f38be39a96876067ba3e47db8f</id>
<content type='text'>
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
</content>
</entry>
<entry>
<title>Fixed issue where pointer size was used instead of buffer size in ux_host_class_hid_report_item_analyse</title>
<updated>2026-03-05T11:10:25Z</updated>
<author>
<name>Frédéric Desbiens</name>
<email>frederic.desbiens@eclipse-foundation.org</email>
</author>
<published>2026-03-05T11:10:25Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/usbx.git/commit/?id=46f65a3a5971a4310e7c5c2cf3ac513db67a89d5'/>
<id>urn:sha1:46f65a3a5971a4310e7c5c2cf3ac513db67a89d5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Updated copyright headers and removed trailing whitespace</title>
<updated>2026-03-05T09:02:41Z</updated>
<author>
<name>Frédéric Desbiens</name>
<email>frederic.desbiens@eclipse-foundation.org</email>
</author>
<published>2026-03-05T09:02:41Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/usbx.git/commit/?id=ea36a88e9fee4136b56e0b8faf94b9acf4c21761'/>
<id>urn:sha1:ea36a88e9fee4136b56e0b8faf94b9acf4c21761</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix (host/storage): prevent stack overflow from infinite partition recursion</title>
<updated>2025-11-20T17:14:06Z</updated>
<author>
<name>Haithem Rahmani</name>
<email>haithem.rahmani@st.com</email>
</author>
<published>2025-11-20T15:01:44Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/usbx.git/commit/?id=d562e7a0a6d29db105d5301edc34df6b63a6ba87'/>
<id>urn:sha1:d562e7a0a6d29db105d5301edc34df6b63a6ba87</id>
<content type='text'>
- Add a partition entry counter (ux_host_class_storage_mounted_partitions_count)
   and a configurable maximum (UX_HOST_CLASS_STORAGE_MAX_PARTITIONS_COUNT) to limit
   the number of partition entries processed during mounting.

- Counter is incremented for every partition entry, and checked both before and during the partition parsing loop.
- If the limit is exceeded, the function aborts and returns UX_HOST_CLASS_STORAGE_ERROR_MEDIA_NOT_READ.
- This prevents stack overflow and infinite recursion in case of malformed or cyclic MBR/EBR partition tables.
- Default partition entry limit set to 8 by default for safety and compatibility with typical devices.

Fixes CVE-2025-55095

Signed-off-by: Haithem Rahmani &lt;haithem.rahmani@st.com&gt;
</content>
</entry>
<entry>
<title>Update copyright.</title>
<updated>2024-01-29T06:21:32Z</updated>
<author>
<name>Bo Chen (from Dev Box)</name>
<email>boche@microsoft.com</email>
</author>
<published>2024-01-29T06:21:32Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/usbx.git/commit/?id=a6087c2efa17d10f67b450392218b68571a68d16'/>
<id>urn:sha1:a6087c2efa17d10f67b450392218b68571a68d16</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Update on 23 Oct 2023. Expand to see details.</title>
<updated>2023-10-23T05:31:40Z</updated>
<author>
<name>Chaoqiong Xiao</name>
<email>chxiao@microsoft.com</email>
</author>
<published>2023-10-23T05:31:40Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/usbx.git/commit/?id=26585e42dccf2e1ce954d8cdb4890fac72d04864'/>
<id>urn:sha1:26585e42dccf2e1ce954d8cdb4890fac72d04864</id>
<content type='text'>
52c60057 Update headers and readme for 6.3.0 release.
5360ad52 Host H264 frame support.
4b097e80 Add javascript to codeql detection
70278ae3 Fixed use after free issues.
5560620e Improved standalone enum transfer flow. Turn off ASIX in standalone build. Im...
39a01206 Improved host HID clients (mouse/keyboard/remote control) deactivation sequence.
be2c7fd5 Improved standalone host CDC ACM control and data instance link management (MSRC 81489,81570)
c2368eb2 Improved AC AS management and error handing.
b9c23b38 PIMA Host/device optional interrupt endpoint support and host unused semaphore removal.
34ca3af9 Removed interface link in class linked to device.
5d3c9dd0 Improved endpoints get error handling (host CDC-ECM/ACM, storage). Moved stor...
71b08ad1 Improved host audio descriptors validation
4717e3f1 Enable weekly pipeline build to avoid CodeQL expiration
ca408b54 Checked XML tag nesting depth in Pictbridge object parsing
c300a00c Limited pictbridge array element to hexa output array size.
0e644aaa Reject fake CDC-ECM data interface not located next to its control interface.
911007a9 Improved host HID usage handling.
d0576877 Enable dummy check of python for CodeQL
2761e105 Fixed some split transfer issue.
db0dbeda Added packet length validation for received nx packet.
f5007249 Fix PIMA issues on data set extraction
3ec66399 Fixing device RNDIS bugs with zero copy
1ec77d6b Fix device HID issue when adding class memory man and zero copy.
d52e55c0 Add zero copy support in device printer
a5cb883f Added zero copy support in device CDC_ECM and RNDIS
1f967ae2 Enable codeql in onebranch pipeline
de265dbc Enable zero copy for device audio and video
53aee275 Refined memory management to reduce overhead.
</content>
</entry>
<entry>
<title>Update on 12 May 2023. Expand to see details.</title>
<updated>2023-05-12T07:01:07Z</updated>
<author>
<name>Chaoqiong Xiao</name>
<email>chxiao@microsoft.com</email>
</author>
<published>2023-05-12T07:01:07Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/usbx.git/commit/?id=ef2fa7717be8ab751fdfb5d3f91e24fbbaea8dd6'/>
<id>urn:sha1:ef2fa7717be8ab751fdfb5d3f91e24fbbaea8dd6</id>
<content type='text'>
8b59a1d4 Add support for Get String requests with 0 wIndex
106c1b06 Update cfs usage
2d45d315 Optimize SRAM for extracted USB descriptors
cf97e6e9 Fixed allocated buffer pointer checking issue.
6468c588 Guard basic types.
60b3a232 Update CFS usage
</content>
</entry>
<entry>
<title>Update on 19 Apr 2023. Expand to see details.</title>
<updated>2023-04-19T00:56:30Z</updated>
<author>
<name>Chaoqiong Xiao</name>
<email>chxiao@microsoft.com</email>
</author>
<published>2023-04-19T00:56:30Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/usbx.git/commit/?id=3af3626c9b4b5fefbe4016582b896ad79287df62'/>
<id>urn:sha1:3af3626c9b4b5fefbe4016582b896ad79287df62</id>
<content type='text'>
f6854286 USBX host video error checking support.
909e7523 Onboard to Central Feed Services
863cc0c9 Add optional error check for host storage (no FileX).
0e88a565 Added new test case for HID descriptor get.
03944f4e Add error checking to device/host stack and system.
5bec9ee8 Device PIMA error check improvement. Fixing pictbridge issues (client callbacks initialize, host device info buffer length increase).
f8c89ae9 Added host printer error checking.
</content>
</entry>
<entry>
<title>Update on 31 Mar 2023. Expand to see details.</title>
<updated>2023-03-31T07:39:33Z</updated>
<author>
<name>Chaoqiong Xiao</name>
<email>chxiao@microsoft.com</email>
</author>
<published>2023-03-31T07:39:33Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/usbx.git/commit/?id=5f758e08fe6661ee5330a764abdf6b3c5a55938f'/>
<id>urn:sha1:5f758e08fe6661ee5330a764abdf6b3c5a55938f</id>
<content type='text'>
35e477cd Fixed error checking issues on device printer class.
7bc1a9b5 USBX device video error checking support.
fb766837 Moved build option check to runtime (device HID, storage).
3af71cf8 Add optional error checking to host HIDs
e6d938ad generate usbx cmsis-pack
62c0c282 Add error checking to host serial classes (CDC ACM, GSER, PROLIFIC and SWAR)
89b8890b USBX device DFU error checking support.
4c3c3922 USBX device CCID error checking support.
1411aab4 Add error checks for device HID and RNDIS.
2f83bd01 Added host audio error checking.
18973298 USBX device CDC ACM error checking support.
</content>
</entry>
</feed>
