#include #include #include #include #include "jtag_core.h" #include "args.h" #define PROBES_MAX_NUM 16 #define PROBE_NAME_SIZE 64 struct probe { int drv; int probe; int probe_id; char name[PROBE_NAME_SIZE]; }; void jprint(jtag_core *jc, const char *msg) { printf(msg); } int list_probes(jtag_core *jc, struct probe probes[], int show) { int i = 0; int j = 0; int n = 0; char probe_name[PROBE_NAME_SIZE] = {0}; int n_probe_drv = 0; int n_probes = 0; /* Drivers and probes */ n_probe_drv = jtagcore_get_number_of_probes_drv(jc); if (n_probe_drv > 0) { if (0 != show) printf("Found a debug probe driver:\n"); } else { if (0 != show) printf("No probes driver found\n"); return n; } for (i=0;i 0) { if (0 != show) printf("Found a debug probe:\n"); } else { if (0 != show) printf("No probe found.\n"); continue; } for (j=0;j