Skip to content

Add HID Mouse/Keyboard samples RTOS#20

Open
ayedm1 wants to merge 50 commits into
devfrom
usbx_samples_hid_rtos
Open

Add HID Mouse/Keyboard samples RTOS#20
ayedm1 wants to merge 50 commits into
devfrom
usbx_samples_hid_rtos

Conversation

@ayedm1
Copy link
Copy Markdown
Owner

@ayedm1 ayedm1 commented May 5, 2026

Add regression test for hid samples

Sebastian Paarz and others added 30 commits March 11, 2025 23:55
…cursion

- 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 <haithem.rahmani@st.com>
…_endpoint

Terminate the hid host interrupt out endpoint on deactivate
fix (host/storage): prevent stack overflow from infinite partition recursion
Merge changes ahead of the 202504 release
- Issue due to "fix (host/storage): prevent stack overflow from infinite partition recursion" commit

Fix
- Add missing UX_HOST_CLASS_STORAGE_MAX_PARTITIONS_COUNT in some ux_port.h
Merging changes ahead of hotfix release 202504a
If the queue is empty we need the check here.
Added ports for RXv1/GNU, RXv2/GNU and RXv3/GNU
- 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)
- Adds _ux_dcd_sim_slave_uninitialize() to free the simulated slave DCD controller instance, clear DCD bindings, and return the DCD to UX_UNUSED (idempotent if already unused).
- Registers the new uninitialize source in CMakeLists.txt.
- Updates simulator headers to export ux_dcd_sim_slave_uninitialize (and ux_hcd_sim_host_uninitialize) and does minor whitespace/style cleanup in the simulator header blocks.
- Implements handling of UX_SLAVE_CLASS_CDC_ACM_SEND_BREAK in the CDC ACM control request path.
- Ensures break state is cleared on class deactivation to avoid carrying state across disconnect/reset cycles.
- Minor comment/whitespace cleanups in touched headers/sources.
- Testing: Build-only / compilation sanity/send break request. (no new automated tests added).
…d_nullptr_check

Added a check for NULL packet before using the pointer
When compiling with UX_ENABLE_DEBUG_LOG the call to
_ux_utility_memory_allocate requires the system mutex.
…eate_mutex_before_memory_allocation

Modified logic to create mutex before calling _ux_utility_memory_allocate
Added uninitialize API to the DCD Simulator Controller Driver
fdesbiens and others added 20 commits March 2, 2026 11:43
…meration

Fixed Linux enumeration for device RNDIS
…d_eject_media

Added START STOP (load/eject) request support to Device MSC
…al_defines

Improved code to leverage the ux internal macros instead of using direct tx struct fields
Updated copyright headers and version number constants
…ak_req

Added break request support to Device CDC ACM
Merge changes ahead of the v6.5.0.202601 release
Add regression test for hid samples
@ayedm1 ayedm1 changed the base branch from main to dev May 9, 2026 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants