mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-09-28 15:05:27 +00:00
Replace the fallback of avr_read_byte() and avr_write_byte() to
avr_read_byte_default() and avr_write_byte_default (resp.) by directly calling the latter functions from within all programmers that don't implement their own read_byte()/write_byte() methods. In turn, make the read_byte() and write_byte() methods mandatory, and the cmd() method (direct ISP command) optional instead (it's effectively mandatory for any programmer using avr_read_byte_default()/avr_write_byte_default() though). Remove all the pointless cmd() method stubs from those programmers that don't need it. Eliminate avr_read_byte() as it was now completely identical to pgm->read_byte(). git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@684 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
@@ -1,3 +1,29 @@
|
||||
2006-11-13 Joerg Wunsch <j@uriah.heep.sax.de>
|
||||
|
||||
* avr.c: Replace the fallback of avr_read_byte() and avr_write_byte() to
|
||||
avr_read_byte_default() and avr_write_byte_default (resp.) by directly
|
||||
calling the latter functions from within all programmers that don't
|
||||
implement their own read_byte()/write_byte() methods. In turn, make the
|
||||
read_byte() and write_byte() methods mandatory, and the cmd() method
|
||||
(direct ISP command) optional instead (it's effectively mandatory for
|
||||
any programmer using avr_read_byte_default()/avr_write_byte_default()
|
||||
though). Remove all the pointless cmd() method stubs from those programmers
|
||||
that don't need it.
|
||||
Eliminate avr_read_byte() as it was now completely identical to
|
||||
pgm->read_byte().
|
||||
* avr.h: (Ditto.)
|
||||
* bitbang.c: (Ditto.)
|
||||
* butterfly.c: (Ditto.)
|
||||
* jtagmkI.c: (Ditto.)
|
||||
* jtagmkII.c: (Ditto.)
|
||||
* par.c: (Ditto.)
|
||||
* pgm.c: (Ditto.)
|
||||
* safemode.c: (Ditto.)
|
||||
* stk500.c: (Ditto.)
|
||||
* stk500v2.c: (Ditto.)
|
||||
* term.c: (Ditto.)
|
||||
* usbasp.c: (Ditto.)
|
||||
|
||||
2006-11-13 Joerg Wunsch <j@uriah.heep.sax.de>
|
||||
|
||||
* jtagmkI.c: Avoid sending a CMD_RESET when leaving programming
|
||||
|
Reference in New Issue
Block a user