modified callback type

This commit is contained in:
Markus Fröschle
2013-07-29 21:06:18 +00:00
parent 8e899f146b
commit fa35d25903
3 changed files with 4 additions and 26 deletions

View File

@@ -39,7 +39,7 @@ typedef enum
ILLEGAL_SECTOR /* flash sector number invalid */
} err_t;
typedef err_t (*memcpy_callback_t)(uint8_t *dst, uint8_t *src, uint32_t length);
typedef err_t (*memcpy_callback_t)(uint8_t *dst, uint8_t *src, size_t length);
extern void srec_execute(char *filename);
extern err_t read_srecords(char *filename, void **start_address, uint32_t *actual_length, memcpy_callback_t callback);