Comms refactor (prerequisite of libproxmark work) (#371)

* Refactor the comms code only from PR#346, without comms_globals.h.
* OSX: Add note for example serial port
This commit is contained in:
Michael Farrell 2017-10-27 06:54:27 +11:00 committed by pwpiwi
commit afdcb8c159
19 changed files with 540 additions and 334 deletions

View file

@ -13,6 +13,7 @@
#define PROXMARK3_H__
#include "usb_cmd.h"
#include "uart.h"
#define PROXPROMPT "proxmark3> "
@ -23,7 +24,7 @@ extern "C" {
void SendCommand(UsbCommand *c);
const char *get_my_executable_path(void);
const char *get_my_executable_directory(void);
void main_loop(char *script_cmds_file, char *script_cmd, bool usb_present);
void main_loop(char *script_cmds_file, char *script_cmd, bool usb_present, serial_port* sp);
#ifdef __cplusplus
}