<feed xmlns='http://www.w3.org/2005/Atom'>
<title>usbx.git/test/cmake, branch master</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/usbx.git/atom/test/cmake?h=master</id>
<link rel='self' href='http://cgit.235523.xyz/usbx.git/atom/test/cmake?h=master'/>
<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>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>Device MSC: add START STOP (load/eject) request support</title>
<updated>2026-02-09T21:06:46Z</updated>
<author>
<name>MAY</name>
<email>mohamed.ayed1@outlook.com</email>
</author>
<published>2026-01-18T14:14:28Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/usbx.git/commit/?id=8cdbb7c4b1d2024280e346359433e34e4f4d4be5'/>
<id>urn:sha1:8cdbb7c4b1d2024280e346359433e34e4f4d4be5</id>
<content type='text'>
- Add mass-storage “removable media” support by tracking per-LUN prevent/allow medium removal and loaded/ejected status.
- Introduce an optional per-LUN callback to handle SCSI START STOP UNIT (including load/eject and power-condition fields).
- Extend storage constants (media types, sense keys/codes, power conditions, prevent flags) to support the new behavior and improve readability (explicit hex values).
- Initialize new per-LUN state on activation (default: medium removal allowed, medium loaded) and wire the new callback through storage initialization.
- Includes minor formatting/comment cleanups and version banner updates to 6.4.6.

SCSI Block Commands – 4 (SBC-4)
</content>
</entry>
<entry>
<title>Create failing test for time elapsed utility</title>
<updated>2025-05-12T17:06:39Z</updated>
<author>
<name>Huan Nguyen</name>
<email>h.nguyen@hs-design.com</email>
</author>
<published>2025-05-12T17:06:39Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/usbx.git/commit/?id=1f66e3c13da212d2c2db2ea215bc84d42727f4ab'/>
<id>urn:sha1:1f66e3c13da212d2c2db2ea215bc84d42727f4ab</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Updated minimal CMake version to 3.13.</title>
<updated>2025-02-24T13:54:05Z</updated>
<author>
<name>Frédéric Desbiens</name>
<email>frederic.desbiens@eclipse-foundation.org</email>
</author>
<published>2025-02-24T13:54:05Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/usbx.git/commit/?id=f1c70450ad2782b74b43542a220b8cbf0cf03aa2'/>
<id>urn:sha1:f1c70450ad2782b74b43542a220b8cbf0cf03aa2</id>
<content type='text'>
</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>Remove tests for FX exFAT.</title>
<updated>2024-01-12T06:58:41Z</updated>
<author>
<name>TiejunZhou</name>
<email>50469179+TiejunMS@users.noreply.github.com</email>
</author>
<published>2024-01-12T06:58:41Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/usbx.git/commit/?id=179e906ee2dab975a4e7a45804f17ec7036a7bda'/>
<id>urn:sha1:179e906ee2dab975a4e7a45804f17ec7036a7bda</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Update links in run.sh script</title>
<updated>2024-01-12T06:11:51Z</updated>
<author>
<name>TiejunZhou</name>
<email>50469179+TiejunMS@users.noreply.github.com</email>
</author>
<published>2024-01-12T06:06:04Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/usbx.git/commit/?id=c8bcc1b2f6736d1756fcb2a49166ab8c42f7b015'/>
<id>urn:sha1:c8bcc1b2f6736d1756fcb2a49166ab8c42f7b015</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add regression tests. (#126)</title>
<updated>2023-11-28T07:50:39Z</updated>
<author>
<name>CQ Xiao</name>
<email>53201544+xiaocq2001@users.noreply.github.com</email>
</author>
<published>2023-11-28T07:50:39Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/usbx.git/commit/?id=6ed7092b772c7363132e3d5332c0d7b0817708cf'/>
<id>urn:sha1:6ed7092b772c7363132e3d5332c0d7b0817708cf</id>
<content type='text'>
Add regression tests (auto triggered on PR, manually triggered in forked branch).</content>
</entry>
</feed>
