From 951061c972a58215403b86b36dbbdb9de7f3dfad Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andreas=20F=C3=A4rber?= Date: Sat, 31 Oct 2015 15:15:58 +0100 Subject: [PATCH] lpc8xx: Allow CHIPNAME override MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Default to lpc8xx as before, but allow setting the actual CHIPNAME. Change-Id: I5a48fa75c640440a0d4c3f2858653e94bed846d2 Signed-off-by: Andreas Färber Reviewed-on: http://openocd.zylin.com/3084 Tested-by: jenkins Reviewed-by: Andreas Fritiofson --- tcl/target/lpc8xx.cfg | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tcl/target/lpc8xx.cfg b/tcl/target/lpc8xx.cfg index 56541504..e0e210b9 100644 --- a/tcl/target/lpc8xx.cfg +++ b/tcl/target/lpc8xx.cfg @@ -1,5 +1,7 @@ # NXP LPC8xx Cortex-M0+ with at least 1kB SRAM -set CHIPNAME lpc8xx +if { ![info exists CHIPNAME] } { + set CHIPNAME lpc8xx +} set CHIPSERIES lpc800 if { ![info exists WORKAREASIZE] } { set WORKAREASIZE 0x400 -- 2.39.5