aboutsummaryrefslogtreecommitdiff
path: root/src/lpc43xx.c
diff options
context:
space:
mode:
authorGareth McMullin2013-06-17 15:57:13 +1200
committerGareth McMullin2013-06-17 15:57:13 +1200
commit3caaa28fa14834044f5c572ae964732df0314582 (patch)
treee26dedd6dc6e8857cb951f58da1e4b9bd233e081 /src/lpc43xx.c
parent8c877d6dfa5aff2b70ce2c96ef6314bcae7a25c2 (diff)
Fix warning about implicit cast.
Diffstat (limited to 'src/lpc43xx.c')
-rw-r--r--src/lpc43xx.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lpc43xx.c b/src/lpc43xx.c
index 200a8a4..0a8745d 100644
--- a/src/lpc43xx.c
+++ b/src/lpc43xx.c
@@ -452,7 +452,9 @@ static int lpc43xx_flash_write(struct target_s *target, uint32_t dest, const uin
}
/* copy buffer into target memory */
- target_mem_write_words(target, IAP_RAM_BASE + offsetof(struct flash_program, data), flash_pgm.data, sizeof(flash_pgm.data));
+ target_mem_write_words(target,
+ IAP_RAM_BASE + offsetof(struct flash_program, data),
+ (uint32_t*)flash_pgm.data, sizeof(flash_pgm.data));
/* set the destination address and program */
flash_pgm.p.command = IAP_CMD_PROGRAM;