From: Andreas Färber Date: Sat, 31 Oct 2015 14:15:58 +0000 (+0100) Subject: lpc8xx: Allow CHIPNAME override X-Git-Tag: v0.10.0-rc1~405 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=951061c972a58215403b86b36dbbdb9de7f3dfad;p=openocd lpc8xx: Allow CHIPNAME override 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 --- 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