X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fflash%2Fnor%2Favrf.c;h=1984c9ef1f3c425284430201cc3a5d071d6a8dfd;hb=cc50a428829d6feaf9b6eb2a796c4a834bd6368e;hp=e408282b5cbcd895ac67cbd628339142a9140308;hpb=32c4c18045599ddfed36f52b276166ce932b1bf7;p=openocd.git diff --git a/src/flash/nor/avrf.c b/src/flash/nor/avrf.c index e408282b5c..1984c9ef1f 100644 --- a/src/flash/nor/avrf.c +++ b/src/flash/nor/avrf.c @@ -69,6 +69,7 @@ static const struct avrf_type avft_chips_info[] = { */ {"atmega128", 0x9702, 256, 512, 8, 512}, {"at90can128", 0x9781, 256, 512, 8, 512}, + {"at90usb128", 0x9782, 256, 512, 8, 512}, {"atmega164p", 0x940a, 128, 128, 4, 128}, {"atmega324p", 0x9508, 128, 256, 4, 256}, {"atmega324pa", 0x9511, 128, 256, 4, 256}, @@ -142,7 +143,7 @@ static int avr_jtagprg_chiperase(struct avr_common *avr) } static int avr_jtagprg_writeflashpage(struct avr_common *avr, - uint8_t *page_buf, + const uint8_t *page_buf, uint32_t buf_size, uint32_t addr, uint32_t page_size) @@ -239,7 +240,7 @@ static int avrf_protect(struct flash_bank *bank, int set, int first, int last) return ERROR_OK; } -static int avrf_write(struct flash_bank *bank, uint8_t *buffer, uint32_t offset, uint32_t count) +static int avrf_write(struct flash_bank *bank, const uint8_t *buffer, uint32_t offset, uint32_t count) { struct target *target = bank->target; struct avr_common *avr = target->arch_info;