]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/flash.h
USB comms: part 3 towards @micolous PR#463
[proxmark3-svn] / client / flash.h
index d5f47b9d467b52462bfe2f7e628f45082237c3a2..f8ffd221ae1ef793bc6ef7ad69212c04f5f13dee 100644 (file)
@@ -11,6 +11,7 @@
 
 #include <stdint.h>
 #include "elf.h"
+#include "uart.h"
 
 typedef struct {
        void *data;
@@ -26,10 +27,13 @@ typedef struct {
 } flash_file_t;
 
 int flash_load(flash_file_t *ctx, const char *name, int can_write_bl);
-int flash_start_flashing(int enable_bl_writes);
+int flash_start_flashing(int enable_bl_writes, char *serial_port_name);
 int flash_write(flash_file_t *ctx);
 void flash_free(flash_file_t *ctx);
 int flash_stop_flashing(void);
+void CloseProxmark(const char *serial_port_name);
+bool OpenProxmark(size_t i, const char *serial_port_name);
 
+extern serial_port sp;
 #endif
 
Impressum, Datenschutz