wip
This commit is contained in:
26
app/src/common.h
Normal file
26
app/src/common.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#ifndef _UTILS_H
|
||||
#define _UTILS_H
|
||||
|
||||
#include "jtag_core.h"
|
||||
|
||||
#define MAX_LINE 1024
|
||||
#define MAX_ARGS 16
|
||||
#define PROBES_MAX_NUM 16
|
||||
#define PROBE_NAME_SIZE 64
|
||||
#define DEVICES_SCAN_MAX 32
|
||||
|
||||
#define MIN(a,b) (((a)<(b))?(a):(b))
|
||||
#define MAX(a,b) (((a)>(b))?(a):(b))
|
||||
|
||||
typedef int (*command_call)(jtag_core *jc, int argc, char *argv[]);
|
||||
|
||||
typedef struct {
|
||||
char *name;
|
||||
command_call cmd_call;
|
||||
} Command;
|
||||
|
||||
extern Command commands[];
|
||||
|
||||
jtag_core *bsexp_init(void);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user