CVS: python/msp430 jtag.py,1.9,1.10
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-serv1985/msp430
Modified Files:
jtag.py
Log Message:
- make ctypes backend working on linux
- location of libraries are passed in env variables
Index: jtag.py
===================================================================
RCS file: /cvsroot/mspgcc/python/msp430/jtag.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -w -d -r1.9 -r1.10
--- jtag.py 14 Jun 2005 10:15:26 -0000 1.9
+++ jtag.py 25 Sep 2005 02:30:44 -0000 1.10
@@ -41,7 +41,7 @@
try:
import _parjtag
except ImportError:
- raise ImportError("Can't find neither _parjtag nor ctypes. No JTAG backend available.")
+ raise ImportError("Can not find neither _parjtag nor ctypes. No JTAG backend available.")
else:
backend = "_parjtag so/dll"
else:
@@ -55,7 +55,8 @@
if sys.platform == 'win32':
MSP430mspgcc = ctypes.windll.MSP430mspgcc
else:
- MSP430mspgcc = ctypes.cdll.MSP430mspgcc
+ import os
+ MSP430mspgcc = ctypes.cdll.LoadLibrary(os.path.join(os.environ['LIBMSPGCC_PATH'], 'libMSP430mspgcc.so'))
MSP430_Initialize = MSP430mspgcc.MSP430_Initialize
MSP430_Initialize.argtypes = [ctypes.c_char_p, ctypes.POINTER(ctypes.c_long)]
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php