Lines 96-102
Link Here
|
96 |
/* See http://www.anchorchips.com for the |
96 |
/* See http://www.anchorchips.com for the |
97 |
* EZ-USB Technical Reference Manual (EZUSB_TRM.pdf). |
97 |
* EZ-USB Technical Reference Manual (EZUSB_TRM.pdf). |
98 |
*/ |
98 |
*/ |
99 |
#define CPUCS 0x7f92 |
99 |
static unsigned int CPUCS = 0x7f92; |
100 |
#define USBSC 0x7fd6 |
100 |
#define USBSC 0x7fd6 |
101 |
|
101 |
|
102 |
/* This whole reading routine sucks. you could do it in |
102 |
/* This whole reading routine sucks. you could do it in |
Lines 340-346
Link Here
|
340 |
char * progname; |
340 |
char * progname; |
341 |
void usage() |
341 |
void usage() |
342 |
{ |
342 |
{ |
343 |
fprintf(stderr, "Syntax: %s [-r] [-v] [-f hexfile] device\n", progname); |
343 |
fprintf(stderr, "Syntax: %s [-r] [-v] [-2] [-f hexfile] device\n", progname); |
344 |
exit(1); |
344 |
exit(1); |
345 |
} |
345 |
} |
346 |
|
346 |
|
Lines 363-369
Link Here
|
363 |
progname = argv[0]; |
363 |
progname = argv[0]; |
364 |
|
364 |
|
365 |
/* handle the arguments */ |
365 |
/* handle the arguments */ |
366 |
while((ch = getopt(argc, argv, "xrvf:")) != -1) |
366 |
while((ch = getopt(argc, argv, "2xrvf:")) != -1) |
367 |
switch (ch) { |
367 |
switch (ch) { |
368 |
case 'v': |
368 |
case 'v': |
369 |
verbose++; |
369 |
verbose++; |
Lines 374-379
Link Here
|
374 |
case 'f': |
374 |
case 'f': |
375 |
hexfile = optarg; |
375 |
hexfile = optarg; |
376 |
break; |
376 |
break; |
|
|
377 |
case '2': |
378 |
CPUCS = 0xe600; |
379 |
break; |
377 |
case 'x': |
380 |
case 'x': |
378 |
force = 1; |
381 |
force = 1; |
379 |
break; |
382 |
break; |