aboutsummaryrefslogtreecommitdiff
path: root/src/lmi.c
diff options
context:
space:
mode:
authorGareth McMullin2012-06-18 20:53:06 +1200
committerGareth McMullin2012-06-18 20:53:06 +1200
commit6089a66dcec19ef650a4c3f71dab414e0fd6a1cc (patch)
tree0392cfd75ec5fbb543772641833fb6de39f03dbc /src/lmi.c
parentbc7e7d21128f8aaac4d2b6191bfd904fe76f7deb (diff)
Renamed target_flash_write_words to target_flash_write.
Buffer from GDB may not be aligned or integer number of words. Corrected alignment in in STM32F1 driver.
Diffstat (limited to 'src/lmi.c')
-rw-r--r--src/lmi.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lmi.c b/src/lmi.c
index 8539297..732cd92 100644
--- a/src/lmi.c
+++ b/src/lmi.c
@@ -35,8 +35,8 @@
#include "target.h"
static int lmi_flash_erase(struct target_s *target, uint32_t addr, int len);
-static int lmi_flash_write_words(struct target_s *target, uint32_t dest,
- const uint32_t *src, int len);
+static int lmi_flash_write(struct target_s *target, uint32_t dest,
+ const uint8_t *src, int len);
static const char lmi_driver_str[] = "LuminaryMicro Stellaris";
@@ -96,7 +96,7 @@ int lmi_probe(struct target_s *target)
target->driver = lmi_driver_str;
target->xml_mem_map = lmi_xml_memory_map;
target->flash_erase = lmi_flash_erase;
- target->flash_write_words = lmi_flash_write_words;
+ target->flash_write = lmi_flash_write;
return 0;
}
@@ -131,8 +131,8 @@ int lmi_flash_erase(struct target_s *target, uint32_t addr, int len)
return 0;
}
-int lmi_flash_write_words(struct target_s *target, uint32_t dest,
- const uint32_t *src, int len)
+int lmi_flash_write(struct target_s *target, uint32_t dest,
+ const uint8_t *src, int len)
{
uint32_t data[(len>>2)+2];
data[0] = dest;