The STK500 can perform paged read/write operations even on standard

"non-paged" parts.  Take advantage of that and use the faster internal
routines of the STK500 for those parts as well.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@162 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
Brian S. Dean
2002-12-01 15:05:56 +00:00
parent d36b48d92b
commit 5a8ebeb1ce
5 changed files with 124 additions and 89 deletions

5
pgm.h
View File

@@ -53,6 +53,7 @@ typedef struct programmer_t {
unsigned int pinno[N_PINS];
int ppidata;
int fd;
int page_size; /* page size if the programmer supports paged write/load */
int (*rdy_led) (struct programmer_t * pgm, int value);
int (*err_led) (struct programmer_t * pgm, int value);
int (*pgm_led) (struct programmer_t * pgm, int value);
@@ -72,9 +73,9 @@ typedef struct programmer_t {
void (*open) (struct programmer_t * pgm, char * port);
void (*close) (struct programmer_t * pgm);
int (*paged_write) (struct programmer_t * pgm, AVRPART * p, AVRMEM * m,
int n_bytes);
int page_size, int n_bytes);
int (*paged_load) (struct programmer_t * pgm, AVRPART * p, AVRMEM * m,
int n_bytes);
int page_size, int n_bytes);
} PROGRAMMER;