On Fri, Jan 7, 2011 at 5:25 PM, Freddie Chopin <freddie_cho...@op.pl> wrote: > On 2011-01-07 17:18, Øyvind Harboe wrote: >> >> How about using named parameters instead? > > Is that possible? How would that be done? This could be very nice, as now > the comment with explanation is necessary. The same is true for "flash bank" > command. There is one "con" of such idea - the call to setup_lpc2xxx is > pretty long now, adding names will make it even longer...
Perhaps someone with decent tcl scripts can step up? :-) I think you can split it across multiple lines more or less like so: setup_lpc21xxx { chip_name lpc2103 cputapid 0x4f1f0f0f ...} Another idea I had was to define a separate directory for files that are not useful standalone, like defs/lpc2xxxx.cfg or something. So the rule would be that *all* scripts in target/ and board/ would be runnable standalone with some default assumptions or settings. -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 87 40 27 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development