5 * Created on October 1, 2011, 11:29 PM
15 #include <libusb-1.0/libusb.h>
16 #include "stlink-common.h"
18 #if defined(CONFIG_USE_LIBUSB)
19 struct stlink_libusb {
20 libusb_context* libusb_ctx;
21 libusb_device_handle* usb_handle;
22 struct libusb_transfer* req_trans;
23 struct libusb_transfer* rep_trans;
28 #error "it's all bad!"
29 struct stlink_libusb {};
33 stlink_t* stlink_open_usb(const char *dev_name, const int verbose);
40 #endif /* STLINK_USB_H */