4 # (C) 2009 Travis Goodspeed <travis at radiantmachines.com>
6 # This code is being rewritten and refactored. You've been warned!
8 import sys, os, code, binascii;
9 #import rlcompleter, readline;
11 from GoodFET import GoodFET, getClient;
12 from GoodFETConsole import GoodFETConsole;
14 from intelhex import IntelHex;
17 print "Usage: %s [driver|verb]\n" % sys.argv[0];
18 print "driver:= monitor | cc | avr | spi | msp430 | nrf";
21 print "This is an unfinished client. You probably want goodfet.$chip instead.";
26 from scanwin32 import *;
31 for order, port, desc, hwid in sorted(scan.comports()):
38 print "%s: (%s) ->" % (port, hwid),
41 except serial.serialutil.SerialException:
42 print "Not Ready - Is the process in use?"
50 print "Using driver %s" % driver;
51 #client=eval("%s()" % driver);
52 client=getClient(driver);
53 console=client.getConsole();