Closed hansemro closed 1 year ago
I am going to drop/revert control transfer support in this PR so that it can be included alongside ISP protocol support.
@ChaoticEnigma This is ready for review.
Having issues with Windows again. It works for detecting ISP but not keyboards. The error is related to matching Usage and Usage Page in the HID Report descriptor.
I might be able to workaround this by using libusb/hidapi
hidapi works much better than the current implementation.
Reverting libhidapi changes due to odd behavior in macOS that prevents the usb device from being detected on subsequent access attempts.
Workaround for Windows:
In preparation for ISP protocol support for all platforms, this PR replaces platform-specific rawhid backends with a common LibUSB-1.0 backend. With only one backend to maintain, it becomes easier to add control transfer functionality to RawHID and HIDDevice which is required by #13 for working flash programming (see #12 for more information).
Tasks: