[Pkg-electronics-commits] [openocd] 15/19: flash: add stm32f3 rev 2 flash support

Jonathan McDowell noodles at moszumanska.debian.org
Tue Oct 31 21:15:17 UTC 2017


This is an automated email from the git hooks/post-receive script.

noodles pushed a commit to annotated tag v0.6.1
in repository openocd.

commit 65440183213bb025d8b896610fb2bd3a1c4bf027
Author: Spencer Oliver <spen at spen-soft.co.uk>
Date:   Mon Sep 10 11:16:20 2012 +0100

    flash: add stm32f3 rev 2 flash support
    
    Change-Id: Ibab5112f5f70a609136d01ebc50530a334640d03
    Signed-off-by: Spencer Oliver <spen at spen-soft.co.uk>
    Reviewed-on: http://openocd.zylin.com/875
    Tested-by: jenkins
---
 src/flash/nor/stm32f1x.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/flash/nor/stm32f1x.c b/src/flash/nor/stm32f1x.c
index f077fe5..f6eb21b 100644
--- a/src/flash/nor/stm32f1x.c
+++ b/src/flash/nor/stm32f1x.c
@@ -1142,6 +1142,10 @@ static int get_stm32x_info(struct flash_bank *bank, char *buf, int buf_size)
 				snprintf(buf, buf_size, "1.0");
 				break;
 
+			case 0x2000:
+				snprintf(buf, buf_size, "2.0");
+				break;
+
 			default:
 				snprintf(buf, buf_size, "unknown");
 				break;
@@ -1188,6 +1192,10 @@ static int get_stm32x_info(struct flash_bank *bank, char *buf, int buf_size)
 				snprintf(buf, buf_size, "1.0");
 				break;
 
+			case 0x2000:
+				snprintf(buf, buf_size, "2.0");
+				break;
+
 			default:
 				snprintf(buf, buf_size, "unknown");
 				break;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-electronics/openocd.git



More information about the Pkg-electronics-commits mailing list