This commit is contained in:
François Dausseur
2025-02-13 17:25:36 +01:00
parent c5fca73cc6
commit f1c68de819
19 changed files with 456 additions and 283 deletions

26
app/src/common.h Normal file
View 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