]> git.sur5r.net Git - openocd/commitdiff
flash: update stm32f0x version info
authorSpencer Oliver <spen@spen-soft.co.uk>
Thu, 19 Apr 2012 13:04:46 +0000 (14:04 +0100)
committerSpencer Oliver <spen@spen-soft.co.uk>
Mon, 30 Apr 2012 13:04:22 +0000 (13:04 +0000)
Change-Id: Iab0962021e6243d1df3e7c647654a51b4bf50d72
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/578
Tested-by: jenkins
Reviewed-by: Mathias Küster <kesmtp@freenet.de>
Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
src/flash/nor/stm32f1x.c

index e9c2fb978cfa1f6fed460447de55c004b6ecb2c7..9a3d459b592dabf5c011c5477170d1e8f8356888 100644 (file)
@@ -1176,7 +1176,11 @@ static int get_stm32x_info(struct flash_bank *bank, char *buf, int buf_size)
 
                switch (device_id >> 16) {
                        case 0x1000:
-                               snprintf(buf, buf_size, "A");
+                               snprintf(buf, buf_size, "1.0");
+                               break;
+
+                       case 0x2000:
+                               snprintf(buf, buf_size, "2.0");
                                break;
 
                        default: