projects
/
fw
/
stlink
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Store the masked chip_id in the stlink structure. Should fix unexpected
[fw/stlink]
/
src
/
stlink-usb.h
diff --git
a/src/stlink-usb.h
b/src/stlink-usb.h
index c632a8c4163da3257a61014cf1b614b30e7cc884..2f3b8cc3ed7f84c17994debaaa68da442aaf86bd 100644
(file)
--- a/
src/stlink-usb.h
+++ b/
src/stlink-usb.h
@@
-18,7
+18,6
@@
extern "C" {
#define STLINK_SG_SIZE 31
#define STLINK_CMD_SIZE 16
#define STLINK_SG_SIZE 31
#define STLINK_CMD_SIZE 16
-#if defined(CONFIG_USE_LIBUSB)
struct stlink_libusb {
libusb_context* libusb_ctx;
libusb_device_handle* usb_handle;
struct stlink_libusb {
libusb_context* libusb_ctx;
libusb_device_handle* usb_handle;
@@
-30,11
+29,6
@@
extern "C" {
unsigned int sg_transfer_idx;
unsigned int cmd_len;
};
unsigned int sg_transfer_idx;
unsigned int cmd_len;
};
-#else
-#error "it's all bad!"
- struct stlink_libusb {};
-#endif
-
stlink_t* stlink_open_usb(const int verbose);
stlink_t* stlink_open_usb(const int verbose);