aboutsummaryrefslogtreecommitdiff
path: root/src/include/target.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/target.h')
-rw-r--r--src/include/target.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/include/target.h b/src/include/target.h
index 6f97950..cb0e34b 100644
--- a/src/include/target.h
+++ b/src/include/target.h
@@ -103,8 +103,8 @@
#define target_flash_erase(target, addr, len) \
(target)->flash_erase((target), (addr), (len))
-#define target_flash_write_words(target, dest, src, len) \
- (target)->flash_write_words((target), (dest), (src), (len))
+#define target_flash_write(target, dest, src, len) \
+ (target)->flash_write((target), (dest), (src), (len))
#define TARGET_LIST_FREE() { \
@@ -165,8 +165,8 @@ typedef struct target_s {
/* Flash memory access functions */
const char *xml_mem_map;
int (*flash_erase)(struct target_s *target, uint32_t addr, int len);
- int (*flash_write_words)(struct target_s *target, uint32_t dest,
- const uint32_t *src, int len);
+ int (*flash_write)(struct target_s *target, uint32_t dest,
+ const uint8_t *src, int len);
const char *driver;