]> git.sur5r.net Git - openocd/commitdiff
lpc8xx: Allow CHIPNAME override
authorAndreas Färber <afaerber@suse.de>
Sat, 31 Oct 2015 14:15:58 +0000 (15:15 +0100)
committerFreddie Chopin <freddie.chopin@gmail.com>
Tue, 3 Nov 2015 21:45:28 +0000 (21:45 +0000)
Default to lpc8xx as before, but allow setting the actual CHIPNAME.

Change-Id: I5a48fa75c640440a0d4c3f2858653e94bed846d2
Signed-off-by: Andreas Färber <afaerber@suse.de>
Reviewed-on: http://openocd.zylin.com/3084
Tested-by: jenkins
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
tcl/target/lpc8xx.cfg

index 565415049cad048a2dcd819b04d3a8297d694be2..e0e210b967782715f836cd1be225ed0beb210ab1 100644 (file)
@@ -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