diff options
author | Spencer Oliver <spen@spen-soft.co.uk> | 2012-04-19 14:04:46 +0100 |
---|---|---|
committer | Spencer Oliver <spen@spen-soft.co.uk> | 2012-04-30 13:04:22 +0000 |
commit | 9cc733ae312dd79471f4cc5116f675116d5176b3 (patch) | |
tree | 609b0eaab4fcc9e0a0b19b44ba4cad63c6d14e2e /src/flash | |
parent | 0ce2e9a2597ab7f714e83bed9fed0e26e949e6ee (diff) | |
download | riscv-openocd-9cc733ae312dd79471f4cc5116f675116d5176b3.zip riscv-openocd-9cc733ae312dd79471f4cc5116f675116d5176b3.tar.gz riscv-openocd-9cc733ae312dd79471f4cc5116f675116d5176b3.tar.bz2 |
flash: update stm32f0x version info
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>
Diffstat (limited to 'src/flash')
-rw-r--r-- | src/flash/nor/stm32f1x.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/flash/nor/stm32f1x.c b/src/flash/nor/stm32f1x.c index e9c2fb9..9a3d459 100644 --- a/src/flash/nor/stm32f1x.c +++ b/src/flash/nor/stm32f1x.c @@ -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: |