26 lines
531 B
C
26 lines
531 B
C
#ifndef _UTILS_H
|
|
#define _UTILS_H
|
|
|
|
#include "lib_jtag_core/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 |