CVS: python msp430-jtag.py,1.24,1.25
Chris Liechti <[email protected]> Sun, 23 Apr 2006 16:38:20 -0700
| Newsgroups | gmane.comp.hardware.texas-instruments.msp430.gcc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/mspgcc/python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15867/python
Modified Files:
msp430-jtag.py
Log Message:
make backend selectable by command line parameter
Index: msp430-jtag.py
===================================================================
RCS file: /cvsroot/mspgcc/python/msp430-jtag.py,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -w -d -r1.24 -r1.25
--- msp430-jtag.py 11 Apr 2006 18:35:23 -0000 1.24
+++ msp430-jtag.py 23 Apr 2006 23:38:18 -0000 1.25
@@ -185,7 +185,7 @@
"upload=", "download=", "size=", "hex", "bin", "ihex",
"intelhex", "titext", "elf", "funclet", "ramsize=", "progress",
"no-close", "parameter=", "result=", "timeout=", "secure",
- "quiet"]
+ "quiet", "backend="]
)
except getopt.GetoptError, e:
# print help information and exit:
@@ -197,6 +197,16 @@
if o in ("-h", "--help"):
usage()
sys.exit()
+ elif o in ("", "--backend"):
+ if a == 'mspgcc':
+ backend = jtag.CTYPES_MSPGCC
+ elif a == 'parjtag':
+ backend = jtag.PARJTAG
+ elif a == 'ti':
+ backend = jtag.CTYPES_TI
+ else:
+ raise ValueError("no such backend: %r" % a)
+ jtag.init_backend(backend)
elif o in ("-l", "--lpt"):
lpt = a
elif o in ("-w", "--wait"):
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642