From: <sv...@te...> - 2003-05-03 09:47:35
|
Author: roms Date: Sat May 3 11:47:25 2003 New Revision: 286 Added: libticables/trunk/win32/bcc32/ libticables/trunk/win32/bcc32/readme.txt libticables/trunk/win32/msvc/ libticables/trunk/win32/msvc/net.bat libticables/trunk/win32/msvc/net.sh (contents, props changed) libticables/trunk/win32/msvc/resource.h libticables/trunk/win32/msvc/test_ticables.dsp libticables/trunk/win32/msvc/test_ticables.dsw libticables/trunk/win32/msvc/ticables.aps (contents, props changed) libticables/trunk/win32/msvc/ticables.dsp libticables/trunk/win32/msvc/ticables.dsw libticables/trunk/win32/msvc/ticables.rc libticables/trunk/win32/scan.awk libticables/trunk/win32/scan.sh (contents, props changed) libticables/trunk/win32/ticables.def Modified: libticables/trunk/ChangeLog libticables/trunk/aclocal.m4 libticables/trunk/configure libticables/trunk/configure.in libticables/trunk/po/fr.po libticables/trunk/po/libticables.pot libticables/trunk/src/Makefile.am libticables/trunk/src/Makefile.in libticables/trunk/src/ser_link.c libticables/trunk/tests/Makefile.in Log: CVS synched with v3.7.6 & Win32 projects added Modified: libticables/trunk/ChangeLog ============================================================================== --- libticables/trunk/ChangeLog (original) +++ libticables/trunk/ChangeLog Sat May 3 11:47:25 2003 @@ -2,8 +2,15 @@ To do: - USB pass-thru support - - bug with API mode (LInux & Windows): may not work with some calcs ?! + - bug with API mode (Linux & Windows): may not work with some calcs ?! + - ioports.c to improve + +- 21/04/2003, version 3.7.6: + logging support added into the second serial link support. +- 20/04/2003, version 3.7.5b: + porttalk.c added in EXTRA_DIST for po compilation. + - 10/04/2003, version 3.7.5: Tijl's patch merged. Modified: libticables/trunk/aclocal.m4 ============================================================================== --- libticables/trunk/aclocal.m4 (original) +++ libticables/trunk/aclocal.m4 Sat May 3 11:47:25 2003 @@ -1,4 +1,4 @@ -dnl aclocal.m4t generated automatically by aclocal 1.4-p4 +dnl aclocal.m4 generated automatically by aclocal 1.4-p4 dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation Modified: libticables/trunk/configure ============================================================================== --- libticables/trunk/configure (original) +++ libticables/trunk/configure Sat May 3 11:47:25 2003 @@ -1456,7 +1456,7 @@ # set library version number MAJOR_VERSION=3 MINOR_VERSION=7 -MICRO_VERSION=5 +MICRO_VERSION=6 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION @@ -2668,12 +2668,12 @@ (exit $ac_status); }; }; then for ac_declaration in \ ''\ - '#include <stdlib.h>' \ 'extern "C" void std::exit (int) throw (); using std::exit;' \ 'extern "C" void std::exit (int); using std::exit;' \ 'extern "C" void exit (int) throw ();' \ 'extern "C" void exit (int);' \ - 'void exit (int);' + 'void exit (int);' \ + '#include <stdlib.h>' do cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" @@ -2994,12 +2994,12 @@ fi for ac_declaration in \ ''\ - '#include <stdlib.h>' \ 'extern "C" void std::exit (int) throw (); using std::exit;' \ 'extern "C" void std::exit (int); using std::exit;' \ 'extern "C" void exit (int) throw ();' \ 'extern "C" void exit (int);' \ - 'void exit (int);' + 'void exit (int);' \ + '#include <stdlib.h>' do cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" Modified: libticables/trunk/configure.in ============================================================================== --- libticables/trunk/configure.in (original) +++ libticables/trunk/configure.in Sat May 3 11:47:25 2003 @@ -9,7 +9,7 @@ # set library version number MAJOR_VERSION=3 MINOR_VERSION=7 -MICRO_VERSION=5 +MICRO_VERSION=6 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION AC_SUBST(MAJOR_VERSION) Modified: libticables/trunk/po/fr.po ============================================================================== --- libticables/trunk/po/fr.po (original) +++ libticables/trunk/po/fr.po Sat May 3 11:47:25 2003 @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: libticables-3.7.4\n" -"POT-Creation-Date: 2003-04-10 21:32+0200\n" +"POT-Creation-Date: 2003-05-03 11:42+0200\n" "PO-Revision-Date: 2003-04-05 21:14+0100\n" "Last-Translator: GARSAULT Sylvain <syl...@fr...>\n" "Language-Team: FRENCH <FR...@li...>\n" @@ -402,113 +402,113 @@ "C'est un bug. Reportez-le, s'il vous plaît.\n" "." -#: src/intrface.c:106 +#: src/intrface.c:109 #, c-format msgid "Libticables: version %s\n" msgstr "Libticables: version %s\n" -#: src/intrface.c:573 src/intrface.c:623 +#: src/intrface.c:578 src/intrface.c:628 msgid "Function not implemented. This is a bug. Please report it." msgstr "" "Fonction non implémentée. Ceci est un bug. Reportez-le s'il vous plaît." -#: src/intrface.c:574 src/intrface.c:624 +#: src/intrface.c:579 src/intrface.c:629 msgid "Informations:\n" msgstr "Informations:\n" -#: src/intrface.c:575 src/intrface.c:625 +#: src/intrface.c:580 src/intrface.c:630 #, c-format msgid "Cable: %i\n" msgstr "Câble: %i\n" -#: src/intrface.c:576 src/intrface.c:626 +#: src/intrface.c:581 src/intrface.c:631 msgid "Program halted before crashing...\n" msgstr "Le programme s'est arrêté avant de se terminer anormalement...\n" -#: src/intrface.c:640 +#: src/intrface.c:645 msgid "Libticables: current settings...\n" msgstr "Libticables: réglages actuels...\n" -#: src/intrface.c:642 +#: src/intrface.c:647 #, c-format msgid " Link cable: %s\n" msgstr " Câble de liaison: %s\n" -#: src/intrface.c:644 +#: src/intrface.c:649 #, c-format msgid " Port: %s\n" msgstr " Port: %s\n" -#: src/intrface.c:645 +#: src/intrface.c:650 #, c-format msgid " Method: %s\n" msgstr " Méthode: %s\n" -#: src/intrface.c:646 +#: src/intrface.c:651 #, c-format msgid " Timeout value: %i\n" msgstr " Limite de temps: %i\n" -#: src/intrface.c:647 +#: src/intrface.c:652 #, c-format msgid " Delay value: %i\n" msgstr " Délai: %i\n" -#: src/intrface.c:648 +#: src/intrface.c:653 #, c-format msgid " Baud-rate: %i\n" msgstr " Vitesse de transmission en Bauds: %i\n" -#: src/intrface.c:649 +#: src/intrface.c:654 #, c-format msgid " Hardware flow control: %s\n" msgstr " Contrôle du flux matériel: %s\n" -#: src/intrface.c:649 +#: src/intrface.c:654 msgid "on" msgstr "activé" -#: src/intrface.c:649 +#: src/intrface.c:654 msgid "off" msgstr "désactivé" -#: src/intrface.c:650 +#: src/intrface.c:655 #, c-format msgid " I/O address: 0x%03x\n" msgstr " Adresse d'entrée/sortie: 0x%03x\n" -#: src/intrface.c:651 +#: src/intrface.c:656 #, c-format msgid " Device name: %s\n" msgstr " Nom du périphérique: %s\n" -#: src/intrface.c:834 +#: src/intrface.c:839 #, c-format msgid "libticables error: port value is illegal (%i) !\n" msgstr "libticables erreur: valeur de port illégale (%i) !\n" -#: src/intrface.c:835 +#: src/intrface.c:840 msgid "Exiting...\n" msgstr "Sortie...\n" -#: src/ioports.c:259 +#: src/ioports.c:276 msgid "" "couldn't access PortTalk Driver, Please ensure driver is installed/loaded.\n" msgstr "" "Impossible d'accéder au pilote PortTalk. Vérifiez s'il vous plaît qu'il est " "installé/chargé.\n" -#: src/ioports.c:284 +#: src/ioports.c:301 #, c-format msgid "Address 0x%03X (IOPM Offset 0x%02X) has been granted access.\n" msgstr "L'accès à l'adresse 0x%03X (IOPM Offset 0x%02X) a été accordé.\n" -#: src/ioports.c:299 +#: src/ioports.c:316 #, c-format msgid "PortTalk Device Driver has set IOPM for ProcessID %d.\n" msgstr "Le pilote du périphérique PortTalk a lancé IOPM avec l'ID %d\n" -#: src/ioports.c:376 +#: src/ioports.c:393 #, c-format msgid "Libticables: serial port %s successfully reconfigured.\n" msgstr "Libticables: port série %s reconfiguré avec succès.\n" @@ -793,21 +793,21 @@ msgstr "Impossible de charger le symbole TiglUsbCheck.\n" #. keep track of the TIGL device -#: src/slv_link.c:1337 +#: src/slv_link.c:1339 msgid "TIGL-USB found with libusb.\n" msgstr "TIGL-USB trouvé avec libusb.\n" -#: src/slv_link.c:1360 +#: src/slv_link.c:1362 #, c-format msgid "usb_find_busses: %s\n" msgstr "usb_find_busses: %s\n" -#: src/slv_link.c:1367 +#: src/slv_link.c:1369 #, c-format msgid "usb_find_devices: %s\n" msgstr "usb_find_devices: %s\n" -#: src/slv_link.c:1551 +#: src/slv_link.c:1553 msgid "" "usb_bulk_read returns without any data. Retrying for circumventing quirk...\n" msgstr "usb_bulk_read n'a retourné aucune donnée. Nouvel essai...\n" Modified: libticables/trunk/po/libticables.pot ============================================================================== --- libticables/trunk/po/libticables.pot (original) +++ libticables/trunk/po/libticables.pot Sat May 3 11:47:25 2003 @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2003-04-10 21:32+0200\n" +"POT-Creation-Date: 2003-05-03 11:42+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL...@li...>\n" @@ -352,110 +352,110 @@ "." msgstr "" -#: src/intrface.c:106 +#: src/intrface.c:109 #, c-format msgid "Libticables: version %s\n" msgstr "" -#: src/intrface.c:573 src/intrface.c:623 +#: src/intrface.c:578 src/intrface.c:628 msgid "Function not implemented. This is a bug. Please report it." msgstr "" -#: src/intrface.c:574 src/intrface.c:624 +#: src/intrface.c:579 src/intrface.c:629 msgid "Informations:\n" msgstr "" -#: src/intrface.c:575 src/intrface.c:625 +#: src/intrface.c:580 src/intrface.c:630 #, c-format msgid "Cable: %i\n" msgstr "" -#: src/intrface.c:576 src/intrface.c:626 +#: src/intrface.c:581 src/intrface.c:631 msgid "Program halted before crashing...\n" msgstr "" -#: src/intrface.c:640 +#: src/intrface.c:645 msgid "Libticables: current settings...\n" msgstr "" -#: src/intrface.c:642 +#: src/intrface.c:647 #, c-format msgid " Link cable: %s\n" msgstr "" -#: src/intrface.c:644 +#: src/intrface.c:649 #, c-format msgid " Port: %s\n" msgstr "" -#: src/intrface.c:645 +#: src/intrface.c:650 #, c-format msgid " Method: %s\n" msgstr "" -#: src/intrface.c:646 +#: src/intrface.c:651 #, c-format msgid " Timeout value: %i\n" msgstr "" -#: src/intrface.c:647 +#: src/intrface.c:652 #, c-format msgid " Delay value: %i\n" msgstr "" -#: src/intrface.c:648 +#: src/intrface.c:653 #, c-format msgid " Baud-rate: %i\n" msgstr "" -#: src/intrface.c:649 +#: src/intrface.c:654 #, c-format msgid " Hardware flow control: %s\n" msgstr "" -#: src/intrface.c:649 +#: src/intrface.c:654 msgid "on" msgstr "" -#: src/intrface.c:649 +#: src/intrface.c:654 msgid "off" msgstr "" -#: src/intrface.c:650 +#: src/intrface.c:655 #, c-format msgid " I/O address: 0x%03x\n" msgstr "" -#: src/intrface.c:651 +#: src/intrface.c:656 #, c-format msgid " Device name: %s\n" msgstr "" -#: src/intrface.c:834 +#: src/intrface.c:839 #, c-format msgid "libticables error: port value is illegal (%i) !\n" msgstr "" -#: src/intrface.c:835 +#: src/intrface.c:840 msgid "Exiting...\n" msgstr "" -#: src/ioports.c:259 +#: src/ioports.c:276 msgid "" "couldn't access PortTalk Driver, Please ensure driver is installed/loaded.\n" msgstr "" -#: src/ioports.c:284 +#: src/ioports.c:301 #, c-format msgid "Address 0x%03X (IOPM Offset 0x%02X) has been granted access.\n" msgstr "" -#: src/ioports.c:299 +#: src/ioports.c:316 #, c-format msgid "PortTalk Device Driver has set IOPM for ProcessID %d.\n" msgstr "" -#: src/ioports.c:376 +#: src/ioports.c:393 #, c-format msgid "Libticables: serial port %s successfully reconfigured.\n" msgstr "" @@ -733,21 +733,21 @@ msgstr "" #. keep track of the TIGL device -#: src/slv_link.c:1337 +#: src/slv_link.c:1339 msgid "TIGL-USB found with libusb.\n" msgstr "" -#: src/slv_link.c:1360 +#: src/slv_link.c:1362 #, c-format msgid "usb_find_busses: %s\n" msgstr "" -#: src/slv_link.c:1367 +#: src/slv_link.c:1369 #, c-format msgid "usb_find_devices: %s\n" msgstr "" -#: src/slv_link.c:1551 +#: src/slv_link.c:1553 msgid "" "usb_bulk_read returns without any data. Retrying for circumventing quirk...\n" msgstr "" Modified: libticables/trunk/src/Makefile.am ============================================================================== --- libticables/trunk/src/Makefile.am (original) +++ libticables/trunk/src/Makefile.am Sat May 3 11:47:25 2003 @@ -50,7 +50,9 @@ MAINTAINERCLEANFILES = EXTRA_HEADERS = -EXTRA_DIST = *.h +EXTRA_DIST = \ + *.h + porttalk.c dos2unix: dos2unix Modified: libticables/trunk/src/Makefile.in ============================================================================== --- libticables/trunk/src/Makefile.in (original) +++ libticables/trunk/src/Makefile.in Sat May 3 11:47:25 2003 @@ -136,7 +136,8 @@ MAINTAINERCLEANFILES = EXTRA_HEADERS = -EXTRA_DIST = *.h +EXTRA_DIST = *.h + mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = ../config.h CONFIG_CLEAN_FILES = @@ -307,50 +308,6 @@ || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ done -avr_link.lo avr_link.o : avr_link.c ../config.h intl.h export.h \ - cabl_err.h cabl_def.h timeout.h externs.h verbose.h logging.h -dev_link.lo dev_link.o : dev_link.c ../config.h intl.h export.h \ - cabl_err.h cabl_def.h timeout.h externs.h verbose.h logging.h -dfl_link.lo dfl_link.o : dfl_link.c ../config.h timeout.h ioports.h \ - export.h cabl_err.h cabl_def.h logging.h externs.h -direct.lo direct.o : direct.c ../config.h export.h cabl_def.h timeout.h \ - cabl_int.h externs.h -error.lo error.o : error.c intl.h ../config.h cabl_err.h export.h \ - cabl_def.h timeout.h -intrface.lo intrface.o : intrface.c intl.h ../config.h cabl_ver.h \ - cabl_def.h export.h timeout.h cabl_err.h links.h dfl_link.h \ - par_link.h ser_link.h tig_link.h avr_link.h dev_link.h \ - vtl_link.h tie_link.h vti_link.h slv_link.h verbose.h probe.h \ - timodules.h type2str.h -ioports.lo ioports.o : ioports.c ../config.h cabl_err.h cabl_def.h \ - export.h timeout.h verbose.h ioports.h intl.h cabl_int.h \ - externs.h -logging.lo logging.o : logging.c ../config.h intl.h verbose.h export.h \ - cabl_def.h timeout.h -par_link.lo par_link.o : par_link.c ../config.h timeout.h ioports.h \ - export.h cabl_err.h cabl_def.h logging.h externs.h verbose.h -probe.lo probe.o : probe.c ../config.h intl.h cabl_def.h export.h \ - timeout.h cabl_err.h externs.h links.h dfl_link.h par_link.h \ - ser_link.h tig_link.h avr_link.h dev_link.h vtl_link.h \ - tie_link.h vti_link.h slv_link.h verbose.h -ser_link.lo ser_link.o : ser_link.c ../config.h timeout.h ioports.h \ - export.h cabl_err.h cabl_def.h externs.h logging.h -slv_link.lo slv_link.o : slv_link.c ../config.h intl.h export.h \ - cabl_def.h timeout.h cabl_err.h verbose.h logging.h externs.h -tie_link.lo tie_link.o : tie_link.c ../config.h intl.h timeout.h \ - export.h cabl_err.h cabl_def.h externs.h logging.h verbose.h -tig_link.lo tig_link.o : tig_link.c ../config.h intl.h export.h \ - cabl_err.h cabl_def.h timeout.h externs.h verbose.h logging.h -timodules.lo timodules.o : timodules.c intl.h ../config.h -type2str.lo type2str.o : type2str.c intl.h ../config.h cabl_def.h \ - export.h timeout.h verbose.h -verbose.lo verbose.o : verbose.c ../config.h export.h verbose.h \ - cabl_def.h timeout.h -vti_link.lo vti_link.o : vti_link.c ../config.h intl.h timeout.h \ - export.h cabl_err.h cabl_def.h externs.h verbose.h logging.h -vtl_link.lo vtl_link.o : vtl_link.c ../config.h cabl_def.h export.h \ - timeout.h cabl_err.h externs.h logging.h verbose.h - info-am: info: info-am dvi-am: @@ -433,6 +390,7 @@ @OS_WIN32_TRUE@ no_undefined = -no-undefined + porttalk.c dos2unix: dos2unix Modified: libticables/trunk/src/ser_link.c ============================================================================== --- libticables/trunk/src/ser_link.c (original) +++ libticables/trunk/src/ser_link.c Sat May 3 11:47:25 2003 @@ -100,6 +100,7 @@ tdr.count++; LOG_DATA(data); + for (bit = 0; bit < 8; bit++) { if (data & 1) { io_wr(com_out, 2); @@ -166,6 +167,7 @@ for (i = 0; i < delay; i++) io_rd(com_in); } + *ch = data; LOG_DATA(data); @@ -313,7 +315,9 @@ tiTIME clk; tdr.count++; + LOG_DATA(data); toSTART(clk); + for (bit = 0; bit < 8; bit++) { if (data & 1) io_wr(com_out, 2); @@ -345,6 +349,7 @@ tdr.count++; toSTART(clk); + for (i = 0, bit = 1, *ch = 0; i < 8; i++) { while ((j = io_rd(com_in)) == 3) { if (toELAPSED(clk, time_out)) @@ -369,6 +374,8 @@ bit <<= 1; } + LOG_DATA(*ch); + return 0; } Modified: libticables/trunk/tests/Makefile.in ============================================================================== --- libticables/trunk/tests/Makefile.in (original) +++ libticables/trunk/tests/Makefile.in Sat May 3 11:47:25 2003 @@ -258,10 +258,6 @@ || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ done -test_ticables.o: test_ticables.c ../config.h ../src/ticables.h \ - ../src/cabl_def.h ../src/export.h ../src/timeout.h \ - ../src/cabl_int.h ../src/cabl_err.h ../src/cabl_ver.h - info-am: info: info-am dvi-am: Added: libticables/trunk/win32/bcc32/readme.txt ============================================================================== --- (empty file) +++ libticables/trunk/win32/bcc32/readme.txt Sat May 3 11:47:25 2003 @@ -0,0 +1,28 @@ +These wrappers can be found on the TiLP homepage, developer section... + +/* + * LibTIcables & LibTIcalcs Win32 Example Program - + * Developed for BCC32 v5.x (or C++Builder) + * + * This example program demonstrates access to a specific calc + * using a specific TI link cable type through the proper DLL + * files using statically linked libraries. The program itself + * runs at the Win32 console. + * + * (C) 2001 Thomas Wolf (tw...@ch...) + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program; if not, write to the Free + * Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ Added: libticables/trunk/win32/msvc/net.bat ============================================================================== --- (empty file) +++ libticables/trunk/win32/msvc/net.bat Sat May 3 11:47:25 2003 @@ -0,0 +1,15 @@ +del *.ncb +del *.ilk +del *.dep +del *.opt +del *.plg +del *.aps +del *.exp +del *.idb +del *.obj +del *.pch +del *.exe +del *.*~ +deltree /y output +deltree /y debug +deltree /y release \ No newline at end of file Added: libticables/trunk/win32/msvc/net.sh ============================================================================== --- (empty file) +++ libticables/trunk/win32/msvc/net.sh Sat May 3 11:47:25 2003 @@ -0,0 +1,2 @@ +#!/bin/sh +rm *.exp *.lib *.mak *.ncb *.opt *.plg Added: libticables/trunk/win32/msvc/resource.h ============================================================================== --- (empty file) +++ libticables/trunk/win32/msvc/resource.h Sat May 3 11:47:25 2003 @@ -0,0 +1,15 @@ +//{{NO_DEPENDENCIES}} +// Microsoft Developer Studio generated include file. +// Used by ticables.rc +// + +// Next default values for new objects +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS +#define _APS_NEXT_RESOURCE_VALUE 101 +#define _APS_NEXT_COMMAND_VALUE 40001 +#define _APS_NEXT_CONTROL_VALUE 1000 +#define _APS_NEXT_SYMED_VALUE 101 +#endif +#endif Added: libticables/trunk/win32/msvc/test_ticables.dsp ============================================================================== --- (empty file) +++ libticables/trunk/win32/msvc/test_ticables.dsp Sat May 3 11:47:25 2003 @@ -0,0 +1,102 @@ +# Microsoft Developer Studio Project File - Name="test_ticables" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Console Application" 0x0103 + +CFG=test_ticables - Win32 Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "test_ticables.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "test_ticables.mak" CFG="test_ticables - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "test_ticables - Win32 Release" (based on "Win32 (x86) Console Application") +!MESSAGE "test_ticables - Win32 Debug" (based on "Win32 (x86) Console Application") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "test_ticables - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "" +# PROP Intermediate_Dir "C:\msvc\Output\ticables" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c +# ADD CPP /nologo /w /W0 /GX /O2 /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D "__WIN32__" /YX /FD /c +# ADD BASE RSC /l 0x40c /d "NDEBUG" +# ADD RSC /l 0x40c /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 + +!ELSEIF "$(CFG)" == "test_ticables - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "C:\msvc\tilp" +# PROP Intermediate_Dir "C:\msvc\Output\ticables" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c +# ADD CPP /nologo /w /W0 /Gm /GX /ZI /Od /I "../../ti_libs" /I "../dep/win32" /D "_DEBUG" /D "__WIN32__" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c +# ADD BASE RSC /l 0x40c /d "_DEBUG" +# ADD RSC /l 0x40c /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept + +!ENDIF + +# Begin Target + +# Name "test_ticables - Win32 Release" +# Name "test_ticables - Win32 Debug" +# Begin Group "Source Files" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" +# Begin Source File + +SOURCE=..\..\tests\test_ticables.c +# End Source File +# End Group +# Begin Group "Header Files" + +# PROP Default_Filter "h;hpp;hxx;hm;inl" +# End Group +# Begin Group "Resource Files" + +# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" +# End Group +# End Target +# End Project Added: libticables/trunk/win32/msvc/test_ticables.dsw ============================================================================== --- (empty file) +++ libticables/trunk/win32/msvc/test_ticables.dsw Sat May 3 11:47:25 2003 @@ -0,0 +1,44 @@ +Microsoft Developer Studio Workspace File, Format Version 6.00 +# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! + +############################################################################### + +Project: "test_ticables"=.\test_ticables.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name ticables + End Project Dependency +}}} + +############################################################################### + +Project: "ticables"=.\ticables.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + Added: libticables/trunk/win32/msvc/ticables.aps ============================================================================== Binary file. No diff available. Added: libticables/trunk/win32/msvc/ticables.dsp ============================================================================== --- (empty file) +++ libticables/trunk/win32/msvc/ticables.dsp Sat May 3 11:47:25 2003 @@ -0,0 +1,325 @@ +# Microsoft Developer Studio Project File - Name="ticables" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102 + +CFG=ticables - Win32 Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "ticables.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "ticables.mak" CFG="ticables - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "ticables - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library") +!MESSAGE "ticables - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +MTL=midl.exe +RSC=rc.exe + +!IF "$(CFG)" == "ticables - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "" +# PROP Intermediate_Dir "C:\msvc\Output\ticables" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c +# ADD CPP /nologo /MT /w /W0 /GX /I "./tiglusb" /D "NDEBUG" /D "TICABLES_EXPORTS" /D "__WIN32__" /D "WIN32" /D "_WINDOWS" /D "__I386__" /D "ENABLE_NLS" /YX /FD /c +# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o /win32 "NUL" +# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o /win32 "NUL" +# ADD BASE RSC /l 0x40c /d "NDEBUG" +# ADD RSC /l 0x40c /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /machine:I386 +# ADD LINK32 intl.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /machine:I386 /out:"..\..\tests\ticables.dll" + +!ELSEIF "$(CFG)" == "ticables - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "C:\msvc\tilp" +# PROP Intermediate_Dir "C:\msvc\Output\ticables" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c +# ADD CPP /nologo /MTd /W3 /GX /ZI /Od /I "./tiglusb" /D "_DEBUG" /D "TICABLES_EXPORTS" /D "__WIN32__" /D "WIN32" /D "_WINDOWS" /D "__I386__" /D "ENABLE_NLS" /YX /FD /c +# SUBTRACT CPP /Fr +# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o /win32 "NUL" +# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o /win32 "NUL" +# ADD BASE RSC /l 0x40c /d "_DEBUG" +# ADD RSC /l 0x40c /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# SUBTRACT BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /debug /machine:I386 /pdbtype:sept +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib intl.lib /nologo /subsystem:windows /dll /debug /debugtype:both /machine:I386 /pdbtype:sept +# SUBTRACT LINK32 /map + +!ENDIF + +# Begin Target + +# Name "ticables - Win32 Release" +# Name "ticables - Win32 Debug" +# Begin Group "Link cables" + +# PROP Default_Filter "" +# Begin Group "TiglUsb" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\..\src\TiglUsb.h +# End Source File +# End Group +# Begin Source File + +SOURCE=..\..\src\Avr_link.c +# End Source File +# Begin Source File + +SOURCE=..\..\src\Dev_link.c +# End Source File +# Begin Source File + +SOURCE=..\..\src\dfl_link.c +# End Source File +# Begin Source File + +SOURCE=..\..\src\Par_link.c +# End Source File +# Begin Source File + +SOURCE=..\..\src\Ser_link.c +# End Source File +# Begin Source File + +SOURCE=..\..\src\slv_link.c +# End Source File +# Begin Source File + +SOURCE=..\..\src\Tie_link.c +# End Source File +# Begin Source File + +SOURCE=..\..\src\Tig_link.c +# End Source File +# Begin Source File + +SOURCE=..\..\src\Vti_link.c +# End Source File +# Begin Source File + +SOURCE=..\..\src\Vtl_link.c +# End Source File +# End Group +# Begin Group "Others" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\..\src\Error.c +# End Source File +# Begin Source File + +SOURCE=..\..\src\Intrface.c +# End Source File +# Begin Source File + +SOURCE=..\..\src\Ioports.c +# End Source File +# Begin Source File + +SOURCE=..\..\src\Logging.c +# End Source File +# Begin Source File + +SOURCE=..\..\src\porttalk.c +# End Source File +# Begin Source File + +SOURCE=..\..\src\Probe.c +# End Source File +# Begin Source File + +SOURCE=..\..\src\timodules.c +# End Source File +# Begin Source File + +SOURCE=..\..\src\type2str.c +# End Source File +# Begin Source File + +SOURCE=..\..\src\verbose.c +# End Source File +# End Group +# Begin Group "Headers" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\..\src\Avr_link.h +# End Source File +# Begin Source File + +SOURCE=..\..\src\Cabl_def.h +# End Source File +# Begin Source File + +SOURCE=..\..\src\Cabl_err.h +# End Source File +# Begin Source File + +SOURCE=..\..\src\Cabl_int.h +# End Source File +# Begin Source File + +SOURCE=..\..\src\default.h +# End Source File +# Begin Source File + +SOURCE=..\..\src\Dev_link.h +# End Source File +# Begin Source File + +SOURCE=..\..\src\externs.h +# End Source File +# Begin Source File + +SOURCE=..\..\src\Intl.h +# End Source File +# Begin Source File + +SOURCE=..\..\src\Iocompat.h +# End Source File +# Begin Source File + +SOURCE=..\..\src\Ioports.h +# End Source File +# Begin Source File + +SOURCE=..\..\src\Links.h +# End Source File +# Begin Source File + +SOURCE=..\..\src\Logging.h +# End Source File +# Begin Source File + +SOURCE=..\..\src\Par_link.h +# End Source File +# Begin Source File + +SOURCE=..\..\src\pause.h +# End Source File +# Begin Source File + +SOURCE=..\..\src\plerror.h +# End Source File +# Begin Source File + +SOURCE=..\..\src\porttalk_ioctl.h +# End Source File +# Begin Source File + +SOURCE=..\..\src\Probe.h +# End Source File +# Begin Source File + +SOURCE=..\..\src\Ser_link.h +# End Source File +# Begin Source File + +SOURCE=..\..\src\slv_link.h +# End Source File +# Begin Source File + +SOURCE=..\..\src\Str.h +# End Source File +# Begin Source File + +SOURCE=..\..\src\ticables.h +# End Source File +# Begin Source File + +SOURCE=..\..\src\Tie_link.h +# End Source File +# Begin Source File + +SOURCE=..\..\src\Tig_link.h +# End Source File +# Begin Source File + +SOURCE=..\..\src\Timeout.h +# End Source File +# Begin Source File + +SOURCE=..\..\src\timodules.h +# End Source File +# Begin Source File + +SOURCE=..\..\src\typedefs.h.old +# End Source File +# Begin Source File + +SOURCE=..\..\src\Usb_defs.h +# End Source File +# Begin Source File + +SOURCE=..\..\src\Verbose.h +# End Source File +# Begin Source File + +SOURCE=..\..\src\Vti_link.h +# End Source File +# Begin Source File + +SOURCE=..\..\src\Vtl_link.h +# End Source File +# End Group +# Begin Source File + +SOURCE=..\..\src\Cabl_ver.h +# End Source File +# Begin Source File + +SOURCE=..\..\ChangeLog +# End Source File +# Begin Source File + +SOURCE=..\..\src\Export.h +# End Source File +# Begin Source File + +SOURCE=.\ticables.rc +# End Source File +# End Target +# End Project Added: libticables/trunk/win32/msvc/ticables.dsw ============================================================================== --- (empty file) +++ libticables/trunk/win32/msvc/ticables.dsw Sat May 3 11:47:25 2003 @@ -0,0 +1,29 @@ +Microsoft Developer Studio Workspace File, Format Version 5.00 +# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! + +############################################################################### + +Project: "ticables"=.\ticables.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + Added: libticables/trunk/win32/msvc/ticables.rc ============================================================================== --- (empty file) +++ libticables/trunk/win32/msvc/ticables.rc Sat May 3 11:47:25 2003 @@ -0,0 +1,109 @@ +//Microsoft Developer Studio generated resource script. +// +#include "resource.h" + +#define APSTUDIO_READONLY_SYMBOLS +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 2 resource. +// +#include "afxres.h" + +///////////////////////////////////////////////////////////////////////////// +#undef APSTUDIO_READONLY_SYMBOLS + +///////////////////////////////////////////////////////////////////////////// +// French (France) resources + +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_FRA) +#ifdef _WIN32 +LANGUAGE LANG_FRENCH, SUBLANG_FRENCH +#pragma code_page(1252) +#endif //_WIN32 + +#ifndef _MAC +///////////////////////////////////////////////////////////////////////////// +// +// Version +// + +VS_VERSION_INFO VERSIONINFO + FILEVERSION 3,0,7,2 + PRODUCTVERSION 3,0,7,2 + FILEFLAGSMASK 0x3fL +#ifdef _DEBUG + FILEFLAGS 0x21L +#else + FILEFLAGS 0x20L +#endif + FILEOS 0x40004L + FILETYPE 0x2L + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "04090000" + BEGIN + VALUE "Comments", "This lib is placed under LGPL license. The license can be found on www.gnu.org\0" + VALUE "CompanyName", "Linux Programmer Group\0" + VALUE "FileDescription", "TI link cable library\0" + VALUE "FileVersion", "3.7.2\0" + VALUE "InternalName", "libticables\0" + VALUE "LegalCopyright", "Copyright © 1999-2003, Romain Liévin\0" + VALUE "LegalTrademarks", "\0" + VALUE "OriginalFilename", "libticables.dll\0" + VALUE "PrivateBuild", "\0" + VALUE "ProductName", "TI link cable library for Linux & Windows9x/Me, NT4/2000/XP\0" + VALUE "ProductVersion", "3.7.2\0" + VALUE "SpecialBuild", "Windows 9x/Me, NT4/2000/XP version\0" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x409, 0 + END +END + +#endif // !_MAC + + +#ifdef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// TEXTINCLUDE +// + +1 TEXTINCLUDE DISCARDABLE +BEGIN + "resource.h\0" +END + +2 TEXTINCLUDE DISCARDABLE +BEGIN + "#include ""afxres.h""\r\n" + "\0" +END + +3 TEXTINCLUDE DISCARDABLE +BEGIN + "\r\n" + "\0" +END + +#endif // APSTUDIO_INVOKED + +#endif // French (France) resources +///////////////////////////////////////////////////////////////////////////// + + + +#ifndef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 3 resource. +// + + +///////////////////////////////////////////////////////////////////////////// +#endif // not APSTUDIO_INVOKED + Added: libticables/trunk/win32/scan.awk ============================================================================== --- (empty file) +++ libticables/trunk/win32/scan.awk Sat May 3 11:47:25 2003 @@ -0,0 +1,22 @@ +#! /usr/bin/awk +# scan - scan source files for exported functions +# Copyright (C) Romain Lievin 2003 +# Contact: ro...@ti... +# + +BEGIN { + if (ARGC < 2) { + print "usage: cat <src_file> | awk -f scan.awk dst=<file>"; + exit; + } +} + +/TICALL/ { + nf = split($0, array, /TICALL/); +# print array[nf] >> dst; + nf2 = split(array[nf], array2, /\(/); + print array2[1] >> dst; +} + +END { +} Added: libticables/trunk/win32/scan.sh ============================================================================== --- (empty file) +++ libticables/trunk/win32/scan.sh Sat May 3 11:47:25 2003 @@ -0,0 +1,22 @@ +#! /bin/sh +# scan - scan source files for exported functions +# Copyright (C) Romain Lievin 2003 +# Contact: ro...@ti... +# + +SRC=../src +DST=ticables.def + +echo "Parsing..." + +rm -f $DST +echo "LIBRARY ticables.dll" >> $DST +echo "EXPORTS" >> $DST +echo "" >> $DST + +for I in $SRC/*.c ; do \ + echo $I + cat $I | awk -f scan.awk dst=$DST +done + +echo "Done !" Added: libticables/trunk/win32/ticables.def ============================================================================== --- (empty file) +++ libticables/trunk/win32/ticables.def Sat May 3 11:47:25 2003 @@ -0,0 +1,53 @@ +LIBRARY ticables.dll +EXPORTS + + ticable_link_set_cable + ticable_link_init + ticable_link_open + ticable_link_put + ticable_link_get + ticable_link_probe + ticable_link_close + ticable_link_exit + ticable_link_check + ticable_link_set_red + ticable_link_set_white + ticable_link_get_red + ticable_link_get_white + ticable_get_error + ticable_init + ticable_exit + ticable_get_version + ticable_set_timeout + ticable_get_timeout + ticable_set_delay + ticable_get_delay + ticable_set_baudrate + ticable_get_baudrate + ticable_set_io_address + ticable_get_io_address + ticable_set_io_device + ticable_get_io_device + ticable_set_hfc + ticable_get_hfc + ticable_set_port + ticable_get_port + ticable_set_method + ticable_get_method + ticable_get_datarate + ticable_set_param2 + ticable_set_param + ticable_get_param + ticable_get_default_param + ticable_set_cable + ticable_get_support + ticable_detect_os + ticable_detect_port + ticable_detect_cable + ticable_detect_all + ticable_DISPLAY_set_output_to_stream + ticable_DISPLAY_set_output_to_file + ticable_DISPLAY_close_file + DISPLAY + DISPLAY_ERROR + ticable_DISPLAY_settings |