Commit Graph

211 Commits

Author SHA1 Message Date
joerg_wunsch f505f78f8a Atmel has rearranged their web site, so now the AVR docs have been moved
to a more logically sounding URL.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@232 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-24 23:27:31 +00:00
arcanum aac7d66784 Integrate Windows search of config files.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@231 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-24 23:13:55 +00:00
arcanum e2894fea5a config file search on Windows.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@230 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-24 22:48:47 +00:00
arcanum f2009d4849 Change port value from lpt1alt to lpt3. Other formatting changes.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@229 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-24 21:02:01 +00:00
arcanum 46c28924d0 Add giveio device driver source. Requires MS DDK to build.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@228 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-24 17:56:42 +00:00
arcanum 8ddff90eae Add giveio device driver binary.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@227 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-24 17:49:02 +00:00
arcanum aaf66b0dd7 Move Windows specific files.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@226 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-24 17:47:33 +00:00
arcanum 71a9aae9a6 Add Windows specific files.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@225 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-24 17:42:12 +00:00
arcanum 1ff068469e Usage back to stderr.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@224 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-24 17:27:38 +00:00
bdean 4e1e3d01aa Add note about .avrduderc.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@223 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-22 16:47:46 +00:00
bdean 66d2a710db Add the ability to read a per-user config file located at
$HOME/.avrduderc.  Entries from .avrduderc take precedence over those
from the system wide config file in ${PREFIX}/etc/avrdude.conf.

Track and display the config file name and line number when we print
out the available parts and programmers.  This is useful in case
someone has overridden a definition in their .avrduderc file and is
wondering why the definition in the system wide config file is not
being used.

Remove the default programmer 'stk500' from the distributed config
file.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@222 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-22 16:45:13 +00:00
bdean 2c3d88da51 Spelling.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@221 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-22 03:58:52 +00:00
bdean 574bbe7dd2 Put some stuff in the CHANGELOG for this upcoming new version before I
forget.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@220 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-21 21:45:38 +00:00
bdean 6b29e029b6 Update comment due to removal of the default parallel port pin config.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@219 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-21 21:19:56 +00:00
bdean 61ab2bc318 Introduce 'default_programmer' to the config file instead of requiring
one of the programmers to be tagged "default" within its definition.

Also, axe the notion of a compiled-in default programmer.  It is
kind've pointless now that nearly all configuration comes from the
config file, thus, avrdude is not very useful without the config file,
and thus, having a programmer compiled-in offers little or no benefit.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@218 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-21 21:07:43 +00:00
arcanum 131cd12d10 Change usage text to be verbose.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@217 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-21 21:04:34 +00:00
arcanum 1164e56da4 Add Windows parallel port device driver (binary).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@216 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-21 19:09:11 +00:00
arcanum 64052dd5c8 Windows batch files to work with giveio.sys.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@215 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-21 18:55:59 +00:00
bdean 2c01281231 Add port name defaults to the config file instead of hard-coding.
This adds 'default_parallel' and 'default_serial' keywords to the
grammar, which take quoted string arguments.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@214 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-21 18:46:51 +00:00
bdean 1de68cabfb Document the recent additions to the config file.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@213 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-21 18:12:57 +00:00
bdean 2367f41d5f Add the ability to specify which pin to pulse when retrying entry into
programming mode.  Use 'retry_pulse' in the per-part specification
that can currently take values of 'reset' or 'sck', the default being
'sck' which preserves the previous behaviour.  Some newer parts
indicate that /RESET should be pulsed, while older parts say to pulse
SCK.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@212 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-21 17:24:47 +00:00
arcanum 36d980ee58 Make verbose global. Make debug code in par_cmd() based on verbose=2.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@211 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-20 19:59:11 +00:00
bdean 5c554ef79d Fix pseudo/full parallel mode selection logic.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@210 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-20 19:50:32 +00:00
bdean a629cb7f3d Woops, didn't really mean to commit those changes that slipped in with
the last commit.  Those were just there for testing.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@209 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-20 19:47:16 +00:00
bdean 36195d4655 Add 'serial' and 'parallel' keywords to the grammar so that one can
say whether parts support these programming modes or not.  Possible
values for 'serial' are 'yes' or 'no'.  Possible values for 'parallel'
are 'yes', 'no', or 'pseudo'.  Add a bit mask of flags to the AVRPART
structure to capture these settings.  Use these within
stk500_initialize() to set the device parameters correctly.

Defaults for 'serial' and 'parallel' are 'yes' unless specified
otherwise.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@208 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-20 19:46:23 +00:00
arcanum 2b6a365392 Get rid of CRs.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@207 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-20 19:02:02 +00:00
arcanum e32706cfb7 Get rid of CRs.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@206 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-20 18:54:32 +00:00
arcanum 3f4325b0ce Add ppiwin.c to avrdude_SOURCES.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@205 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-20 18:18:39 +00:00
arcanum a5961a7694 Added ppiwin.c: Windows parallel port driver.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@204 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-20 18:15:50 +00:00
arcanum 770e3b55c2 Add error message for fail to enter programming mode. Fix typos.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@203 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-20 18:09:57 +00:00
bdean 9de52d215d Add a few parameters needed for parallel programming: assignment of
PAGEL and BS2 signals and the disposition of the reset pin
('dedicated' or 'io').


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@202 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-20 14:11:34 +00:00
troth 05efe2725a Fix spacing for m169 entry. (tabs not spaces ;-)
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@201 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-20 04:18:11 +00:00
bdean eb7359e45d Add Motorola S-record support.
Submitted by:		"Alexey V.Levdikov" <tsar@kemford.com>


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@200 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-20 03:53:49 +00:00
troth 92c0e99aa4 Add m169 to list of supported targets.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@199 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-19 16:54:25 +00:00
joerg_wunsch 02a19ab687 My colleague contributed a part definition for the AT90S2343.
Submitted by:	Mirko Kaffka <mirko@mkaffka.de>


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@198 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-19 09:01:54 +00:00
troth 7b9806b163 Add support for mega169. (tested with stk500 with 1.7 firmware)
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@197 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-18 19:09:07 +00:00
troth 0ebe08f247 Add commments to separate parts (makes it easier for the eye to parse).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@196 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-18 18:47:59 +00:00
troth 9e73540ea9 Add $srcdir to sample config filename so that building in a separate dir works.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@195 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-15 19:49:29 +00:00
joerg_wunsch ef7e3586c8 Only GNU make sets $< in non-inference rules, so rather explicitly
spell the source file(s) to remain compatible.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@194 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-15 14:16:10 +00:00
troth 38f0dd7a4d Add distclean rule and EXTRA_DIST list to get 'make distcheck' to succeed.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@193 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-14 22:19:42 +00:00
troth 1997cc5188 These changes add basic support for a autoconf/automake based build system.
* .cvsignore: Ignore autoconf files.
	* AUTHORS: New file.
	* ChangeLog: New file.
	* Makefile: Removed file.
	* Makefile.am: New file.
	* NEWS: New file.
	* README: New file.
	* bootstrap: New file.
	* configure.ac: New file.
	* avr.c: Include ac_cfg.h (generated by autoconf).
	* config.c: Include ac_cfg.h.
	Include config_gram.h instead of y.tab.h.
	* config.h: If HAS_YYSTYPE is not defined, define YYSTYPE.
	* config_gram.y: Include ac_cfg.h.
	* fileio.c: Include ac_cfg.h.
	* lexer.l: Include config_gram.h instead of y.tab.h.
	* lists.c: Include ac_cfg.h.
	* main.c: Include ac_cfg.h.
	* par.c: Include ac_cfg.h.
	* pgm.c: Include ac_cfg.h.
	* ppi.c: Include ac_cfg.h.
	* stk500.c: Include ac_cfg.h.
	* term.c: Include ac_cfg.h.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@192 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-14 20:34:03 +00:00
bdean c5d9b556ea Fix typos. Fix error messages.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@191 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-14 04:09:50 +00:00
bdean dca2176204 Split higher level parallel port programmer code off from ppi.c into
its own file par.c, leaving low level parallel port accessor routines
in ppi.c to help with portability.  Change the programmer type to
'PAR' now instead of 'PPI' - 'PAR' represents the parallel port
programmer type.

Be more liberal with 'static' function declarations within the
programmer implimentation files - these functions should never be
called directly - always use the programmer function references.

There are still a few places in 'main.c' that directly reference the
parallel programmer explicitly (par_getpinmask).  These should be
fixed somehow.

Axe a few unused functions.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@190 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-13 19:27:50 +00:00
troth a6f8bc8e20 New file.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@189 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-12 17:58:04 +00:00
troth 0d58d31f3a Remove need for inttypes.h.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@188 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-12 17:47:47 +00:00
troth 0ac9932d83 Define YY_NO_UNPUT to quell a compiler warning.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@187 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-12 17:46:24 +00:00
troth d098cce80a Remove YACC assignment.
Add '-b y' options to YACC invocation.
Remove leading '-' from 'include .depend'.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@186 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-12 17:24:43 +00:00
joerg_wunsch 546e18c753 Declare the internally used static functions on top, to get rid of the
compiler warnings.

Reported by:	bison-generated parsers


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@185 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-12 09:08:10 +00:00
troth 3176513162 * linux_ppdev.h: New file.
* ppi.c: Include system dependant parallel port interface file.
(ppi_open): Add call to ppi_claim().
(ppi_close): Add call to ppi_release().
* ppi.h: Define ppi_claim() and ppi_release() as NOPs if not previously
    defined.
* stk500.c: Include inttypes header to quell compiler warning.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@184 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-11 23:50:31 +00:00
joerg_wunsch 6e82f6ee9c Fix some implicit declaration warnings.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@183 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-11 21:58:07 +00:00