X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/afdcb8c159a73aba95a017f1cfec98e8fa2b93c1..818efbebb87ec5485fbf367021dca42514dfdee0:/client/flash.h diff --git a/client/flash.h b/client/flash.h index 279062af..f8ffd221 100644 --- a/client/flash.h +++ b/client/flash.h @@ -11,7 +11,7 @@ #include #include "elf.h" -#include "comms.h" +#include "uart.h" typedef struct { void *data; @@ -27,12 +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(receiver_arg* conn, int enable_bl_writes, char *serial_port_name); +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(receiver_arg* conn, char* serial_port_name); -bool OpenProxmark(char* serial_port_name); +void CloseProxmark(const char *serial_port_name); +bool OpenProxmark(size_t i, const char *serial_port_name); +extern serial_port sp; #endif