CVS: python/mspgcc jtag.py,1.7,1.8

Chris Liechti <[email protected]> Mon, 11 Sep 2006 10:31:24 -0700
Newsgroups gmane.comp.hardware.texas-instruments.msp430.gcc.cvs
Message-ID <[email protected]>
Update of /cvsroot/mspgcc/python/mspgcc
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv18218/python/mspgcc

Modified Files:
	jtag.py 
Log Message:
the beginnings of a simple statistical profiler

Index: jtag.py
===================================================================
RCS file: /cvsroot/mspgcc/python/mspgcc/jtag.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -w -d -r1.7 -r1.8
--- jtag.py	18 May 2006 21:34:17 -0000	1.7
+++ jtag.py	11 Sep 2006 17:31:22 -0000	1.8
@@ -143,7 +143,7 @@
         global MSP430_Memory, MSP430_VerifyMem, MSP430_EraseCheck
         global MSP430_ReadRegister, MSP430_WriteRegister, MSP430_FuncletWait
         global MSP430_isHalted, MSP430_Error_Number, MSP430_Error_String
-        global MSP430_Secure
+        global MSP430_Secure, MSP430_readMAB
         
         MSP430_Initialize               = MSP430mspgcc.MSP430_Initialize
         MSP430_Initialize.argtypes      = [ctypes.c_char_p, ctypes.POINTER(ctypes.c_long)]
@@ -232,6 +232,12 @@
                 sys.stderr.write('MSP430_Secure not found in library. Not supported.\n')
             def MSP430_Secure():
                 raise NotImplementedError("this function is not supported with this MSP430 library")
+        try:
+            MSP430_readMAB                  = MSP430mspgcc.MSP430_readMAB
+            MSP430_readMAB.argtypes         = []
+            MSP430_readMAB.restype          = ctypes.c_int
+        except AttributeError:
+            pass
         
         messagecallback = ctypes.CFUNCTYPE(ctypes.c_int, ctypes.c_short, ctypes.c_short) #void f(WORD count, WORD total)
 


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