--- eep24c-0.1.2.orig/mcdelay.h +++ eep24c-0.1.2/mcdelay.h @@ -24,7 +24,7 @@ #ifndef _MICRODELAY_H #define _MICRODELAY_H -void microdelay_init(int multiply_factor); +void microdelay_init(unsigned int multiply_factor); void microdelay(unsigned int microsec); #endif --- eep24c-0.1.2.orig/mcdelay.c +++ eep24c-0.1.2/mcdelay.c @@ -43,7 +43,7 @@ int old_port_value; unsigned int m_f; -void microdelay_init(int multiply_factor) { +void microdelay_init(unsigned int multiply_factor) { /* permition to write in port 0x80 nothing is suposed to use this port however, we will write the same value we read... */ @@ -61,19 +61,15 @@ } void microdelay(unsigned int microsec) { - unsigned int i; - i = m_f; + unsigned long int i; + i = m_f * microsec; while (i) { - while (microsec) - { #ifdef __dos__ - outportb(0x80, old_port_value); + outportb(0x80, old_port_value); #else - outb(old_port_value,0x80); + outb(old_port_value,0x80); #endif - microsec--; - } i--; } } --- eep24c-0.1.2.orig/debian/rules +++ eep24c-0.1.2/debian/rules @@ -0,0 +1,75 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +CFLAGS = -Wall -g +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) +CFLAGS += -O0 +else +CFLAGS += -O2 +endif + +configure: configure-stamp + +configure-stamp: + dh_testdir + touch configure-stamp + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + $(MAKE) CFLAGS="$(CFLAGS)" + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + [ ! -f Makefile ] || $(MAKE) clean + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + $(MAKE) install DESTDIR=$(CURDIR)/debian/eep24c + cat $(CURDIR)/Changelog | gzip -9 > $(CURDIR)/debian/eep24c/usr/share/doc/eep24c/changelog.gz + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot +# dh_installdebconf + dh_installdocs +# dh_installexamples +# dh_installmenu +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron + dh_installman +# dh_installinfo +# dh_undocumented + dh_installchangelogs + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_makeshlibs + dh_installdeb +# dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- eep24c-0.1.2.orig/debian/changelog +++ eep24c-0.1.2/debian/changelog @@ -0,0 +1,72 @@ +eep24c (0.1.2-5) unstable; urgency=low + + * Added hurd-i386 to arch list. Thanks to Samuel Thibault for reporting + it. (closes: #482836) + * Updated standards-version to 3.7.3 + * Fixed lintian warnings + + -- Pedro Zorzenon Neto Mon, 26 May 2008 08:38:49 -0300 + +eep24c (0.1.2-4) unstable; urgency=low + + * Added kfreebsd-amd64 to arch list. (closes: #361617) + + -- Pedro Zorzenon Neto Wed, 15 Nov 2006 18:20:07 -0200 + +eep24c (0.1.2-3) unstable; urgency=low + + * Fixed copyright file, included GPL disclaimer. (closes: #323664) + + -- Pedro Zorzenon Neto Tue, 11 Oct 2005 12:29:59 -0300 + +eep24c (0.1.2-2) unstable; urgency=low + + * Bugfix; changed timing function, so compiler does not optimize + more than desired. + + -- Pedro Zorzenon Neto Thu, 14 Jul 2005 10:32:54 -0300 + +eep24c (0.1.2-1) unstable; urgency=low + + * Added kfreebsd-i386 to arch list. Thanks to Aurelien Jarno. + (closes: #314336) + * New Upstream Version: has option to increase clock delays, useful + for long cables. Thanks to Roland Gruber. (closes: #296495) + + -- Pedro Zorzenon Neto Tue, 12 Jul 2005 17:04:52 -0300 + +eep24c (0.1.1-3) unstable; urgency=low + + * Added amd64 to arch list. Thanks to + (closes: #249985) + * Upgraded package Standards-Version. + + -- Pedro Zorzenon Neto Sun, 23 May 2004 18:24:23 -0300 + +eep24c (0.1.1-2) unstable; urgency=low + + * Changed debian/control file. Included new eeprom type 24xx515. + + -- Pedro Zorzenon Neto Sun, 6 Jul 2003 18:31:11 -0300 + +eep24c (0.1.1-1) unstable; urgency=low + + * New upstream release, fixes a bug related to bit masking and add + a new eeprom type 24xx515. + + -- Pedro Zorzenon Neto Sat, 5 Jul 2003 15:32:33 -0300 + +eep24c (0.1.0-2) unstable; urgency=low + + * Added IMPORTANT and HARDWARE sections to manpage. + * Merry Christmas. + + -- Pedro Zorzenon Neto Thu, 26 Dec 2002 09:12:21 -0200 + +eep24c (0.1.0-1) unstable; urgency=low + + * Initial Release. + * First upload, closing ITP (Closes: #169500) + + -- Pedro Zorzenon Neto Sun, 17 Nov 2002 16:05:54 -0200 + --- eep24c-0.1.2.orig/debian/control +++ eep24c-0.1.2/debian/control @@ -0,0 +1,27 @@ +Source: eep24c +Section: electronics +Priority: extra +Maintainer: Pedro Zorzenon Neto +Build-Depends: debhelper (>> 3.0.0), po-debconf +Standards-Version: 3.7.3 + +Package: eep24c +Architecture: amd64 i386 kfreebsd-i386 kfreebsd-amd64 hurd-i386 +Depends: ${shlibs:Depends} +Description: read and write serial I2C eeprom devices + eep24c is a program that can read and write I2C serial eeprom + devices. + . + Currently supported devices are: + 24c01, 24c02, 24c04, 24c08, 24c16, 24c32, 24c64, 24c128, + 24c256, 24c512 and 24xx515 + . + This program uses Intelhex file format. + It comes also with two file converters: ihex2txt and txt2ihex + that can help the user to edit data inside Intelhex files. + . + It needs a hardware to connect the eeprom to the parallel port + of the PC. See /usr/share/doc/eep24c/ for hardware schematics. + The hardware was designed to be simple and inexpensive. + . + The source code can also be compiled to work in DOS. --- eep24c-0.1.2.orig/debian/dirs +++ eep24c-0.1.2/debian/dirs @@ -0,0 +1,4 @@ +etc/eep24c +usr/bin +usr/share/doc/eep24c +usr/share/man/man1 --- eep24c-0.1.2.orig/debian/copyright +++ eep24c-0.1.2/debian/copyright @@ -0,0 +1,21 @@ +This package was debianized by Pedro Zorzenon Neto on +Sun, 17 Nov 2002 16:05:54 -0200. + + EEP24C - read and write serial I2C eeprom devices + Copyright (C) 1998-2005 Pedro Zorzenon Neto + + 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; version 2 of the License. + + 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + +On Debian systems, the complete text of the GNU General Public License can +be found at /usr/share/common-licenses/GPL --- eep24c-0.1.2.orig/debian/compat +++ eep24c-0.1.2/debian/compat @@ -0,0 +1 @@ +4 --- eep24c-0.1.2.orig/debian/docs +++ eep24c-0.1.2/debian/docs @@ -0,0 +1,4 @@ +README.txt +copyright +eep.ps.gz +eep.jpg