CVS: jtag/hardware_access HIL.c,1.4,1.5

Chris Liechti <[email protected]>
Newsgroups gmane.comp.hardware.texas-instruments.msp430.gcc.cvs
Message-ID <[email protected]>
Update of /cvsroot/mspgcc/jtag/hardware_access
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30799/jtag/hardware_access

Modified Files:
	HIL.c 
Log Message:
win32 implementation: allow 0xnnn parameters to specify the IO address maualy, the behaviour of 1 .. 3  does not change

Index: HIL.c
===================================================================
RCS file: /cvsroot/mspgcc/jtag/hardware_access/HIL.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -w -d -r1.4 -r1.5
--- HIL.c	12 Jul 2004 19:57:27 -0000	1.4
+++ HIL.c	22 Apr 2005 10:27:52 -0000	1.5
@@ -230,11 +230,15 @@
     OSVERSIONINFO vi;
     
     /* Configure the parallel port. */
+    if (strstr(port, "0x") == port) {
+        port_base = strtol(port, NULL, 0);
+    } else {
     nPort = atoi(port); // Convert port string to integer.
     if ((nPort < 1)  ||  (nPort > 3))
         return (STATUS_ERROR); // Invalid port specifier.
 
     port_base = portAddress[nPort];
+    }
 
     QueryPerformanceFrequency(&freq);           //store resolution of timing function
     



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&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.