-#if defined(CONFIG_USE_LIBUSB)
struct stlink_libsg {
+ libusb_context* libusb_ctx;
+ libusb_device_handle *handle;
+
int sg_fd;
int do_scsi_pt_err;
reg reg;
};
-#else
- struct stlink_libsg {};
-#endif
- stlink_t* stlink_quirk_open(const char *dev_name, const int verbose);
+ stlink_t* stlink_v1_open(const char *dev_name, const int verbose);
#ifdef __cplusplus
}