From cb41855d9118a904cd1938177b28f4af460dccb8 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Tue, 23 Oct 2012 19:40:23 +0200 Subject: [PATCH] Added support for STM32F3. --- src/stm32f1.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/stm32f1.c b/src/stm32f1.c index df6dcce..48e7d95 100644 --- a/src/stm32f1.c +++ b/src/stm32f1.c @@ -57,6 +57,7 @@ static int stm32f1_flash_write(struct target_s *target, uint32_t dest, static const char stm32f1_driver_str[] = "STM32, Medium density."; static const char stm32hd_driver_str[] = "STM32, High density."; +static const char stm32f3_driver_str[] = "STM32F3xx"; static const char stm32f1_xml_memory_map[] = "" /* "flash_write = stm32f1_flash_write; target_add_commands(target, stm32f1_cmd_list, "STM32"); return 0; + case 0x422: /* STM32F3 */ + target->driver = stm32f3_driver_str; + target->xml_mem_map = stm32hd_xml_memory_map; + target->flash_erase = stm32hd_flash_erase; + target->flash_write = stm32f1_flash_write; + target_add_commands(target, stm32f1_cmd_list, "STM32"); + return 0; default: return -1; }