Skip to content

Flush USB Tx FIFO before sending new data through the keyboard endpoint #2

@devcexx

Description

@devcexx

Currently the keyboard writes a new report to the USB Tx FIFO everytime there's new data to send, but not when the host asks for it. This means that the host may receive some slightly outdated data. To my knowledge, this is the way that usb-device, usbd-hid and synopsys-usb-otg crates allows us to write reports into the USB endpoint, but maybe we can do a little bit better by always clearing the Tx FIFO before sending new data, effectively replacing the old data that was pending to be sent.

Ref:

// TODO This method writes to the USB FIFO once we have

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions