Make the pin definitions configurable based on entries in a config

file.  This makes supporting other programmers much easier.

Rename AVRprog.pdf to avrprog.pdf.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@67 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
Brian S. Dean
2001-09-19 17:04:25 +00:00
parent 2c603dd52c
commit 9003ed1183
10 changed files with 533 additions and 62 deletions

View File

@@ -113,6 +113,31 @@ ll.
8515 AT90S8515
8535 AT90S8535
.TE
.It Fl c Ar Pin-Configuration
Use the pin configuration specified by the argument. Pin
configurations are read from the config file (see the
.Fl C
option). New pin configurations can be easily added or modified
through the use of a config file to make
.Nm avrprog
work with different programmers as long as the programmer supports the
Atmel AVR serial program method.
.It Fl C Ar Config-File
Use the specified config file to locate the desired pin configuration.
Pin configurations are specified in the config file using a colon
seperated field format. The configuration name is the first field,
the remaining fields are of the form:
.Ar PIN=VALUE ,
where
.Ar PIN
can be
.Ar VCC , RESET , SCK , MOSI , MISO , BUFF , PGMLED , RDYLED , VFYLED , ERRLED .
The value is the pin number of the PC parallel port assigned to that
function. The
.Ar VCC
pin can take multible values seperated by a comma. It's value(s) must
come from pins 2 through 9. The default configuration file is
.Pa /usr/local/etc/avrprog.conf .
.It Fl e
Causes a chip erase to be executed. This will reset the contents of the
flash ROM and EEPROM to the value
@@ -300,6 +325,8 @@ ll.
.It Pa /dev/ppi0
default device to be used for communication with the programming
hardware
.It Pa /usr/local/etc/avrprog.conf
default pin configuration file
.It Pa ~/.inputrc
Initialization file for the
.Xr readline 3