From a87a5d0671b79fb84364b05cb06e75f28edc7dc4 Mon Sep 17 00:00:00 2001 From: "Brian S. Dean" Date: Thu, 25 Jan 2001 16:24:08 +0000 Subject: [PATCH] Get rid of the Usage file. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@51 81a1dc3b-b13d-400b-aceb-764788c761c2 --- Usage | 29 ----------------------------- avr.h | 11 +++++++++-- 2 files changed, 9 insertions(+), 31 deletions(-) delete mode 100644 Usage diff --git a/Usage b/Usage deleted file mode 100644 index e70c69f6..00000000 --- a/Usage +++ /dev/null @@ -1,29 +0,0 @@ -Usage: avrprog [options] - - Available Options: - - -m MemType : select memory type for reading or writing - \"e\", \"eeprom\" = EEPROM - \"f\", \"flash\" = FLASH (default) - - -i Filename : select input file, \"-\" = stdin - - -o Filename : select output file, \"-\" = stdout - - -f Format : select input / output file format - \"i\" = Intel Hex - \"s\" = Motorola S-Record - \"r\" = Raw binary (default for output) - \"a\" = Auto detect (default for input) - (valid for input only) - - - -p Part : select Atmel part number (see below for valid parts) - - -P Parallel : select parallel port device name (default = /dev/ppi0) - - -F : override invalid device signature check - - -t : enter terminal mode (or read commands from stdin) - - -e : perform a chip erase (required before programming) diff --git a/avr.h b/avr.h index d3c8edda..29e88a4a 100644 --- a/avr.h +++ b/avr.h @@ -37,7 +37,8 @@ /* * AVR memory designations; the order of these is important, these are * used as indexes into statically initialized data, don't change them - * around. + * around. Specifically, avr_read_byte() and avr_write_byte() rely on + * the order. */ typedef enum { AVR_EEPROM, @@ -48,7 +49,6 @@ typedef enum { #if 0 struct avrmem { - AVRMEM memtype; int startaddr; int size; unsigned char * buf; @@ -67,11 +67,18 @@ struct avrpart { int min_write_delay; /* microseconds */ int max_write_delay; /* microseconds */ int chip_erase_delay; /* microseconds */ +#if 1 unsigned char * mem[AVR_MAXMEMTYPES]; /* pointers to avr memory buffers, indexed by AVR_EEPROM or AVR_FLASH */ +#else + struct avrmem * mem[AVR_MAXMEMTYPES]; /* pointers to avr memory + buffers, indexed by + AVR_EEPROM or AVR_FLASH */ +#endif }; + extern struct avrpart parts[];