5 * Created on October 1, 2011, 11:29 PM
15 #include <libusb-1.0/libusb.h>
16 #include "stlink-common.h"
18 #define STLINK_SG_SIZE 31
19 #define STLINK_CMD_SIZE 16
21 #if defined(CONFIG_USE_LIBUSB)
22 struct stlink_libusb {
23 libusb_context* libusb_ctx;
24 libusb_device_handle* usb_handle;
25 struct libusb_transfer* req_trans;
26 struct libusb_transfer* rep_trans;
30 unsigned int sg_transfer_idx;
34 #error "it's all bad!"
35 struct stlink_libusb {};
39 stlink_t* stlink_open_usb(const int verbose);
46 #endif /* STLINK_USB_H */