#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[]) {
dev_name = argv[1];
break;
default:
+ fprintf(stderr, "bzzt\n");
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;
-
-
+
// we are in mass mode, go to swd
stlink_enter_swd_mode(sl);
stlink_current_mode(sl);