projects
/
fw
/
stlink
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Properly use tags. Doesn't help though.
[fw/stlink]
/
src
/
test_sg.c
diff --git
a/src/test_sg.c
b/src/test_sg.c
index a4db8f2365e0f84fdd0fd2b5fddf52833ddaae11..742ba445387d72bfaed11aab7be2209027a7add8 100644
(file)
--- a/
src/test_sg.c
+++ b/
src/test_sg.c
@@
-6,10
+6,6
@@
#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
-#if CONFIG_USE_LIBSG
-#include <scsi/sg_lib.h>
-#include <scsi/sg_pt.h>
-#endif
#include "stlink-common.h"
int main(int argc, char *argv[]) {
#include "stlink-common.h"
int main(int argc, char *argv[]) {
@@
-33,14
+29,14
@@
int main(int argc, char *argv[]) {
dev_name = argv[1];
break;
default:
dev_name = argv[1];
break;
default:
+ fprintf(stderr, "bzzt\n");
return EXIT_FAILURE;
}
return EXIT_FAILURE;
}
- stlink_t *sl = stlink_
quirk_open(dev_name, 10
);
+ stlink_t *sl = stlink_
v1_open(dev_name, 99
);
if (sl == NULL)
return EXIT_FAILURE;
if (sl == NULL)
return EXIT_FAILURE;
-
-
+
// we are in mass mode, go to swd
stlink_enter_swd_mode(sl);
stlink_current_mode(sl);
// we are in mass mode, go to swd
stlink_enter_swd_mode(sl);
stlink_current_mode(sl);