209f979c7f
prompted. avr.c avr.h fileio.c term.c : Change the avrpart data structure so that the typedef AVRMEM is used as an index into an array for the sizes of the memory types and also for pointers to buffers that represent the chip data for that memory type. This removes a lot of conditional code of the form: switch (memtype) { case AVR_FLASH : ... } Also, re-code avr_read_byte() and avr_write_byte() to properly handle the flash memory type without having to tell them whether they should program the high byte or the low byte - figure that out from the address itself. For flash memory type, these routines now take the actual byte address instead of the word address. This _greatly_ simplifies many otherwise simple operations, such a reading or writing a range of memory, by not having to worry about whether the address starts on an odd byte or an even byte. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@45 81a1dc3b-b13d-400b-aceb-764788c761c2 |
||
---|---|---|
Makefile | ||
Usage | ||
avr.c | ||
avr.h | ||
avrdude.1 | ||
avrprog-programmer.jpg | ||
avrprog-schematic.jpg | ||
fileio.c | ||
fileio.h | ||
main.c | ||
ppi.c | ||
ppi.h | ||
term.c | ||
term.h |