X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fflash%2Fnor%2Fefm32.c;h=3c46c76da0b02eec183a4f0f153a5ee78d8743e0;hp=6e2ebce25767e34e2533f7fe007583475c04751c;hb=565f8481c7b71614a05d79ab79af8610d2535a81;hpb=cd091c36305d9d2de838c7ba145ee7547e4e1640 diff --git a/src/flash/nor/efm32.c b/src/flash/nor/efm32.c index 6e2ebce257..3c46c76da0 100644 --- a/src/flash/nor/efm32.c +++ b/src/flash/nor/efm32.c @@ -98,7 +98,7 @@ struct efm32_info { uint16_t page_size; }; -static int efm32x_write(struct flash_bank *bank, uint8_t *buffer, +static int efm32x_write(struct flash_bank *bank, const uint8_t *buffer, uint32_t offset, uint32_t count); static int efm32x_get_flash_size(struct flash_bank *bank, uint16_t *flash_sz) @@ -499,7 +499,7 @@ static int efm32x_protect(struct flash_bank *bank, int set, int first, int last) return ERROR_OK; } -static int efm32x_write_block(struct flash_bank *bank, uint8_t *buf, +static int efm32x_write_block(struct flash_bank *bank, const uint8_t *buf, uint32_t offset, uint32_t count) { struct target *target = bank->target; @@ -735,7 +735,7 @@ static int efm32x_write_word(struct flash_bank *bank, uint32_t addr, return ERROR_OK; } -static int efm32x_write(struct flash_bank *bank, uint8_t *buffer, +static int efm32x_write(struct flash_bank *bank, const uint8_t *buffer, uint32_t offset, uint32_t count) { struct target *target = bank->target;