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,11 @@
#include <stdbool.h>
#include <stdint.h>
#include <pthread.h>
// a global mutex to prevent interlaced printing from different threads
pthread_mutex_t print_lock;
extern uint8_t g_debugMode;
void ShowGui(void);
void HideGraphWindow(void);
@ -23,8 +28,7 @@ void SetLogFilename(char *fn);
extern double CursorScaleFactor;
extern int PlotGridX, PlotGridY, PlotGridXdefault, PlotGridYdefault, CursorCPos, CursorDPos, GridOffset;
extern int offline;
extern int flushAfterWrite; //buzzy
extern bool flushAfterWrite; //buzzy
extern bool GridLocked;
extern bool showDemod;