feat(usb): migrate to libusb 1.0
Replace the old libusb 0.1 API with libusb 1.0. - Update device detection and USB transfers. - Update USB interface and resource handling. - Use pkg-config to find the library. - Update build dependencies and installation instructions.
This commit is contained in:
10 files changed
+245
-183
No files matched your search
@@ -4,3 +4,8 @@ PREFIX = /usr/local
|
||||
# NetBSD stuff
|
||||
#CPPFLAGS += -I/usr/pkg/include
|
||||
#LDFLAGS += -L/usr/pkg/lib -Wl,-R/usr/pkg/lib
|
||||
|
||||
# libusb-1.0 flags are detected by pkg-config, set them manually without it
|
||||
# (e.g. macOS with Homebrew libusb on Apple Silicon)
|
||||
#LIBUSB_CFLAGS = -I/opt/homebrew/opt/libusb/include/libusb-1.0
|
||||
#LIBUSB_LIBS = -L/opt/homebrew/opt/libusb/lib -lusb-1.0
|
||||
Reference in new issue
Block a user