X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fstlink-sg.h;h=7c020285176283602885d285bf38e7e13eef8d98;hb=refs%2Fheads%2Fdebian;hp=beecac324e63b9408f1353789c70dedbacb17bb3;hpb=3096a8a29f6bdb30dbc34103244c523ca871902a;p=fw%2Fstlink diff --git a/src/stlink-sg.h b/src/stlink-sg.h index beecac3..7c02028 100644 --- a/src/stlink-sg.h +++ b/src/stlink-sg.h @@ -1,4 +1,4 @@ -/* +/* * File: stlink-sg.h * Author: karl * @@ -11,11 +11,11 @@ #ifdef __cplusplus extern "C" { #endif - + #include #include "stlink-common.h" - - // device access + + // device access #define RDWR 0 #define RO 1 #define SG_TIMEOUT_SEC 1 // actually 1 is about 2 sec @@ -46,7 +46,7 @@ extern "C" { libusb_device_handle *usb_handle; unsigned ep_rep; unsigned ep_req; - + int sg_fd; int do_scsi_pt_err; @@ -63,7 +63,7 @@ extern "C" { reg reg; }; - stlink_t* stlink_v1_open(const int verbose); + stlink_t* stlink_v1_open(const int verbose, int reset); #ifdef __cplusplus }