Skip to content

Customizable CFG_TUD_HID_EP_BUFSIZE + CFG_TUD_ENDPOINT0_SIZE #571

Description

@FromDarkHell

Is your feature request related to a problem? Please describe.
For a project I'm working on, I need to be able to have full HID parity with an existing device. For this, I need the ability to change CFG_TUD_HID_EP_BUFSIZE from 64 to 32. If I don't have any easy way to change the CFG_TUD_HID_EP_BUFSIZE define, I'd have to require builders to go in and manually edit src/arduino/ports/*/tusb_config.h to redefine CFG_TUD_HID_EP_BUFSIZE to 32.

Describe the solution you'd like
Add guards/ifdef checks for CFG_TUD_HID_EP_BUFSIZE (and preferably CFG_TUD_ENDPOINT0_SIZE as well), so these values can easily be changed. With these changes, there also needs to be a static check for CFG_TUD_ENDPOINT0_SIZE >= CFG_TUD_HID_EP_BUFSIZE afaik.

Additional context

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions