summaryrefslogtreecommitdiff
path: root/src/flash/flash.h
diff options
context:
space:
mode:
authorntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-01-09 15:58:01 +0000
committerntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-01-09 15:58:01 +0000
commit0160320060cab521f66ea100d67a31b0b906d35f (patch)
tree84e6d208afe665c7d0091b942144bf67d43d5518 /src/flash/flash.h
parent2e01a1ad1930aabb9e3bc7a0e3eb98b2b3331b1c (diff)
downloadopenocd+libswd-0160320060cab521f66ea100d67a31b0b906d35f.tar.gz
openocd+libswd-0160320060cab521f66ea100d67a31b0b906d35f.tar.bz2
openocd+libswd-0160320060cab521f66ea100d67a31b0b906d35f.tar.xz
openocd+libswd-0160320060cab521f66ea100d67a31b0b906d35f.zip
- rename flash_init and flash_erase to flash_init_drivers and flash_erase_address_range - stops conflicts with redboot. Thanks Øyvind Harboe
- gdb connection not dropped if we fail to allocate memory in query packets git-svn-id: svn://svn.berlios.de/openocd/trunk@249 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/flash/flash.h')
-rw-r--r--src/flash/flash.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/flash/flash.h b/src/flash/flash.h
index 0f616a9a..a0529aa4 100644
--- a/src/flash/flash.h
+++ b/src/flash/flash.h
@@ -64,9 +64,9 @@ typedef struct flash_bank_s
} flash_bank_t;
extern int flash_register_commands(struct command_context_s *cmd_ctx);
-extern int flash_init(struct command_context_s *cmd_ctx);
+extern int flash_init_drivers(struct command_context_s *cmd_ctx);
-extern int flash_erase(target_t *target, u32 addr, u32 length);
+extern int flash_erase_address_range(target_t *target, u32 addr, u32 length);
extern int flash_write(target_t *target, image_t *image, u32 *written, char **error, int *failed, int erase);
extern void flash_set_dirty(void);