CVS: python msp430-jtag.py,1.6,1.7

Chris Liechti <[email protected]>
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-serv16892/python

Modified Files:
	msp430-jtag.py 
Log Message:
- implement --no-close

Index: msp430-jtag.py
===================================================================
RCS file: /cvsroot/mspgcc/python/msp430-jtag.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -w -d -r1.6 -r1.7
--- msp430-jtag.py	6 Nov 2004 00:15:48 -0000	1.6
+++ msp430-jtag.py	12 Dec 2004 16:30:51 -0000	1.7
@@ -109,6 +109,7 @@
     lpt         = None
     funclet     = None
     ramsize     = None
+    do_close    = 1
 
     sys.stderr.write("MSP430 parallel JTAG programmer Version: %s\n" % VERSION)
     try:
@@ -119,7 +120,8 @@
              "erase=", "eraseinfo",
              "verify", "reset", "go=", "debug",
              "upload=", "download=", "size=", "hex", "bin", "ihex",
-             "intelhex", "titext", "funclet", "ramsize=", "progress"]
+             "intelhex", "titext", "funclet", "ramsize=", "progress",
+             "no-close"]
         )
     except getopt.GetoptError:
         # print help information and exit:
@@ -224,6 +226,8 @@
                 sys.exit(2)
         elif o in ("-S", "--progress"):
             jtagobj.showprogess = 1
+        elif o in ("--no-close"):
+            do_close = 0
 
     if len(args) == 0:
         sys.stderr.write("Use -h for help\n")
@@ -345,6 +349,7 @@
     
     finally:
         jtagobj.reset(1, 1)                             #reset and release target
+        if do_close:
         jtagobj.close()                                 #Release communication port
 
 if __name__ == '__main__':



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.