CVS: python/msp430 jtag.py,1.12,1.13

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-serv28962/python/msp430

Modified Files:
	jtag.py 
Log Message:
- --result -> upload register/memory
- --parameter -> download register/memory
- the two new parameters can be used to pass options to funclets and read results after their execution

Index: jtag.py
===================================================================
RCS file: /cvsroot/mspgcc/python/msp430/jtag.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -w -d -r1.12 -r1.13
--- jtag.py	13 Oct 2005 01:02:37 -0000	1.12
+++ jtag.py	23 Dec 2005 02:23:54 -0000	1.13
@@ -313,6 +313,9 @@
         if DEBUG > 1: sys.stderr.write("* setRamsize(%d)\n" % ramsize)
         _parjtag.configure(RAMSIZE_OPTION, ramsize)
 
+    def downloadData(self, startaddress, data):
+        _parjtag.memwrite(startaddress, data)
+        
     def uploadData(self, startaddress, size):
         """Upload a datablock."""
         if DEBUG > 1: sys.stderr.write("* uploadData()\n")
@@ -325,6 +328,12 @@
             sys.stderr.flush()
         _parjtag.reset(execute, release)
 
+    def getCPURegister(self, regnum):
+        return _parjtag.regread(regnum)
+        
+    def setCPURegister(self, regnum, value):
+        _parjtag.regwrite(regnum, value)
+
     # ---------- action based API ---------------
 
     def actionMassErase(self):



-------------------------------------------------------
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
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.