CVS: python/msp430 jtag.py,1.17,1.18
Chris Liechti <[email protected]>
| Newsgroups | gmane.comp.hardware.texas-instruments.msp430.gcc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/mspgcc/python/msp430
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17603/python/msp430
Modified Files:
jtag.py
Log Message:
bugfix and make ctypes backed API compatible with parjtag
Index: jtag.py
===================================================================
RCS file: /cvsroot/mspgcc/python/msp430/jtag.py,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -w -d -r1.17 -r1.18
--- jtag.py 27 Dec 2005 16:28:54 -0000 1.17
+++ jtag.py 28 Dec 2005 19:56:51 -0000 1.18
@@ -257,7 +257,7 @@
if size & 1:
raise ValueError("data must be of even size")
- status = MSP430_FuncletWait(code, size, 1, int(timeout*1000), ctypes.byref(runtime))
+ status = MSP430_FuncletWait(code, size, 1, timeout, ctypes.byref(runtime))
if status != STATUS_OK:
raise IOError("Could not execute code")
return runtime.value
@@ -450,7 +450,7 @@
sys.stderr.flush()
if len(self.data) != 1:
raise JTAGException("Funclets must have exactly one segment")
- runtime = _parjtag.funclet(self.data[0].data, timeout*1000) / 1000.0
+ runtime = _parjtag.funclet(self.data[0].data, int(timeout*1000)) / 1000.0
if runtime >= timeout:
sys.stderr.write("Funclet stopped on timeout\n")
sys.stderr.flush()
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click