OpenDevicePartnership / OpenDevicePartnership/embedded-services

Initialize device.regs according to HID descriptor

Open
#675 0 comments 0 reactions 1 assignee View on GitHub

@razbhe10 is already working on this.

Since Jan 13, 2026.

enhancement
Dominant language
Rust
Stars
23
Forks
53
Avg merge
2d 20h
Merged PRs (30d)
13

Description

Currently, all handlers (input, command, report description) pull addresses directly from the HID descriptor. A better approach might be to initialize device.regs when reading the HID descriptor and then have the handlers use device.regs instead. The only catch is that we’d need to lock device.regs during this process. Right now, get_hid_descriptor takes care of the locking.

@jerrysxie Should we explore this option in a separate thread?

Originally posted by @razbhe10 in https://github.com/OpenDevicePartnership/embedded-services/pull/666#discussion_r2685293023

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.