Skip to content

USB Enumeration V2#100

Merged
kammce merged 14 commits into
mainfrom
usb-enum-v2
Jun 3, 2026
Merged

USB Enumeration V2#100
kammce merged 14 commits into
mainfrom
usb-enum-v2

Conversation

@kammce

@kammce kammce commented May 7, 2026

Copy link
Copy Markdown
Member

Summary

This PR refactors the USB enumerator to transition from host-event to bus-event based event handling, removes constraints on interface enumeration, and adds comprehensive API documentation.

Key Changes

  • Event System Refactoring: Moved from on_host_event to on_bus_event for better event handling model
  • Removed Constraints: Lifted restrictions on interfaces for inplace_enumerator for more flexible device enumeration
  • Bus & Remote Wake Events: Added support for bus events and remote wake functionality
  • API Documentation: Added comprehensive API documentation to public APIs

File Changes

  • enumerator.hpp: Major refactoring of event handling and interface enumeration (+861/-565 lines)
  • descriptors.hpp: Enhanced descriptor generation capabilities
  • constants.hpp: Renamed from utils.hpp for better organization
  • usb.test.cpp: Updated tests for new event model
  • Supporting files: Updated mock USB APIs and configuration files

@kammce kammce force-pushed the usb-enum-v2 branch 4 times, most recently from 5cda782 to 716e0af Compare May 10, 2026 16:24
@kammce kammce marked this pull request as ready for review May 12, 2026 03:04
@kammce kammce changed the title Usb enum v2 USB Enumeration V2 May 12, 2026
@kammce kammce force-pushed the usb-enum-v2 branch 2 times, most recently from 9f68ab9 to f39f4d4 Compare May 12, 2026 03:18
@kammce kammce requested a review from PhazonicRidley May 12, 2026 03:18
Comment thread v5/include/libhal-util/usb/enumerator.hpp Outdated
Comment thread v5/include/libhal-util/usb/enumerator.hpp
Comment thread v5/include/libhal-util/usb/enumerator.hpp
@kammce kammce requested a review from PhazonicRidley May 20, 2026 20:38

@PhazonicRidley PhazonicRidley left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and pretty much what we went over a few weeks ago.

Comment thread v5/include/libhal-util/usb/enumerator.hpp
@kammce kammce merged commit 5df91a5 into main Jun 3, 2026
9 checks passed
@kammce kammce deleted the usb-enum-v2 branch June 3, 2026 23:55
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.

2 participants