CVS: python/mspgcc jtag.py,1.5,1.6

Chris Liechti <[email protected]> Mon, 01 May 2006 15:05:35 -0700
Newsgroups gmane.comp.hardware.texas-instruments.msp430.gcc.cvs
Message-ID <[email protected]>
Update of /cvsroot/mspgcc/python/mspgcc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22484/python/mspgcc

Modified Files:
	jtag.py 
Log Message:
add global defs as the backend initializationis now in a function

Index: jtag.py
===================================================================
RCS file: /cvsroot/mspgcc/python/mspgcc/jtag.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -w -d -r1.5 -r1.6
--- jtag.py	23 Apr 2006 23:38:18 -0000	1.5
+++ jtag.py	1 May 2006 22:05:33 -0000	1.6
@@ -100,8 +100,8 @@
             search_path.extend(os.environ['PATH'].split(os.pathsep))
         except KeyError:
             pass
-        
         #~ print search_path
+        
         STATUS_OK    = 0
         STATUS_ERROR = -1
         TRUE         = 1
@@ -138,6 +138,13 @@
                 raise IOError('The environment variable "LIBMSPGCC_PATH" must point to the folder that contains "libMSP430mspgcc.so": %s' % e)
             backend = CTYPES_MSPGCC
         
+        global MSP430_Initialize, MSP430_Open, MSP430_Identify, MSP430_Close
+        global MSP430_Configure, MSP430_VCC, MSP430_Reset, MSP430_Erase
+        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
+        
         MSP430_Initialize               = MSP430mspgcc.MSP430_Initialize
         MSP430_Initialize.argtypes      = [ctypes.c_char_p, ctypes.POINTER(ctypes.c_long)]
         MSP430_Initialize.restype       = ctypes.c_int



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