26 Jim_SetResultFormatted(goi->
interp,
"option: %s bad parameter",
34 Jim_SetResultFormatted(goi->
interp,
"no memory");
44 #define NTAP_OPT_IRLEN 0
45 #define NTAP_OPT_IRMASK 1
46 #define NTAP_OPT_IRCAPTURE 2
47 #define NTAP_OPT_ENABLED 3
48 #define NTAP_OPT_DISABLED 4
49 #define NTAP_OPT_EXPECTED_ID 5
50 #define NTAP_OPT_VERSION 6
51 #define NTAP_OPT_BYPASS 7
69 { .name =
NULL, .value = -1},
72 tap = calloc(1,
sizeof(
struct jtag_tap));
74 Jim_SetResultFormatted(goi->
interp,
"no memory");
82 Jim_SetResultFormatted(goi->
interp,
83 "Missing CHIP TAP OPTIONS ....");
90 tap->
chip = strdup(tmp);
96 x = strlen(tap->
chip) + 1 + strlen(tap->
tapname) + 1;
101 LOG_DEBUG(
"Creating New Tap, Chip: %s, Tap: %s, Dotted: %s, %d params",
#define NTAP_OPT_DISABLED
static int jim_hl_newtap_cmd(struct jim_getopt_info *goi)
#define NTAP_OPT_EXPECTED_ID
#define NTAP_OPT_IRCAPTURE
int jim_hl_newtap(Jim_Interp *interp, int argc, Jim_Obj *const *argv)
static int jim_newtap_expected_id(struct jim_nvp *n, struct jim_getopt_info *goi, struct jtag_tap *tap)
int jim_getopt_wide(struct jim_getopt_info *goi, jim_wide *puthere)
Remove argv[0] as wide.
int jim_getopt_setup(struct jim_getopt_info *p, Jim_Interp *interp, int argc, Jim_Obj *const *argv)
GetOpt - how to.
int jim_getopt_string(struct jim_getopt_info *goi, const char **puthere, int *len)
Remove argv[0] as string.
int jim_getopt_nvp(struct jim_getopt_info *goi, const struct jim_nvp *nvp, struct jim_nvp **puthere)
Remove argv[0] as NVP.
void jim_getopt_nvp_unknown(struct jim_getopt_info *goi, const struct jim_nvp *nvptable, int hadprefix)
Create an appropriate error message for an NVP.
void jtag_tap_init(struct jtag_tap *tap)
#define LOG_DEBUG(expr ...)
A TCL -ish GetOpt like code.
Name Value Pairs, aka: NVP.
bool disabled_after_reset
Is this TAP disabled after JTAG reset?
uint8_t expected_ids_cnt
Number of expected identification codes.
bool enabled
Is this TAP currently enabled?
uint32_t * expected_ids
Array of expected identification codes.