mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-14 02:26:59 -07:00
USB comms: part 2 towards @micolous PR#463 (#595)
* change variable 'offline' from global to static * change variable 'FlushAfterWrite' from global to static * remove unused global variable 'current_command' * WaitForResponseTimeoutW(CMD_UNKNOWN, ...) waits for any command * #include "printf.h" or <stdio.h> in iso15693tools.c to define sprintf() * and some minor changes/comments
This commit is contained in:
parent
e069547c27
commit
61aaee35cc
13 changed files with 61 additions and 35 deletions
|
@ -30,6 +30,11 @@ typedef struct {
|
|||
pthread_mutex_t recv_lock;
|
||||
} receiver_arg;
|
||||
|
||||
|
||||
// Wrappers required as static variables can only be used in one file.
|
||||
void SetOffline(bool new_offline);
|
||||
bool IsOffline();
|
||||
|
||||
void SendCommand(UsbCommand *c);
|
||||
|
||||
void *uart_receiver(void *targ);
|
||||
|
@ -40,6 +45,5 @@ bool WaitForResponseTimeout(uint32_t cmd, UsbCommand* response, size_t ms_timeou
|
|||
bool WaitForResponse(uint32_t cmd, UsbCommand* response);
|
||||
|
||||
extern serial_port sp;
|
||||
extern bool offline;
|
||||
|
||||
#endif // COMMS_H_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue