Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce size of HID class request buffer #261

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

dkonigsberg
Copy link
Contributor

With the change from #260, this buffer no longer needs to be so large. It can be reduced to the save a lot of memory.

The only reason this buffer was 256 bytes was to accommodate the descriptor request. With that now changed, 64 bytes should be more than enough.

Since CherryUSB statically allocates a lot of data structures, this should save quite a bit of memory when a host is configured to support multiple HID devices.

With the change from cherry-embedded#260, this buffer no longer needs to be so large.  It can be reduced to the save a lot of memory.
@sakumisu sakumisu merged commit 5a15f71 into cherry-embedded:master Sep 27, 2024
1 check passed
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