-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
usb: Replace USBDEVFS interface with libusb
In order to support selecting board based on serial number the iProduct field needs to be inspected, with the hand-rolled parsing of the USB descriptors this becomes cumbersome. Furthermore the direct use of Linux's USBDEVFS creats an unnecessary dependency on the host OS being Linux. It's unclear why libusb wasn't choosen in the first place, perhaps it relates to the faint memory of 0.1 vs 1.0 packaging issues? Move to libusb-1.0 in order to resolve these issues, as well as clean up the code a bit. Signed-off-by: Bjorn Andersson <[email protected]>
- Loading branch information
1 parent
5f2f82a
commit 399b3fd
Showing
4 changed files
with
107 additions
and
198 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.