From 55f2fe830a541a297d6bf3906c6a28df81acbf05 Mon Sep 17 00:00:00 2001 From: ntfreak Date: Thu, 20 Dec 2007 16:19:10 +0000 Subject: - removed flash write_image - binary compare function has been moved to verify_image command - minor code reformat and cleanup - updated docs to include new commands git-svn-id: svn://svn.berlios.de/openocd/trunk@243 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/flash/flash.h | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/flash/flash.h') diff --git a/src/flash/flash.h b/src/flash/flash.h index b90b64eb..e8f91500 100644 --- a/src/flash/flash.h +++ b/src/flash/flash.h @@ -63,18 +63,11 @@ typedef struct flash_bank_s struct flash_bank_s *next; } flash_bank_t; -enum flash_image_op -{ - flash_image_op_write = 0, - flash_image_op_verify, - flash_image_op_erase -}; - extern int flash_register_commands(struct command_context_s *cmd_ctx); extern int flash_init(struct command_context_s *cmd_ctx); extern int flash_erase(target_t *target, u32 addr, u32 length); -extern int flash_image_operation(target_t *target, image_t *image, u32 *written, char **error_str, int *failed, enum flash_image_op op); +extern int flash_write(target_t *target, image_t *image, u32 *written, char **error, int *failed, int erase); extern flash_bank_t *get_flash_bank_by_num(int num); extern flash_bank_t *get_flash_bank_by_addr(target_t *target, u32 addr); -- cgit v1.2.3