The construct below has a comment to explain
what the following statement means => duplication.
How about using named parameters instead?
I think named parameters might even have a concept
of default values in Tcl, but offhand I don't know the syntax
or construct.
So something like:
setup_lpc21xxx {chip_name lpc2103 cputapid 0x4f1f0f0f ...}
Instead of:
6 # 32kB flash and 8kB SRAM, clocked with 12MHz crystal
7 # setup_lpc2xxx <chip_name> <cputapid> <flash_size>
<flash_variant> <workarea_size> <core_freq_khz> <adapter_freq_khz>
8 setup_lpc2xxx lpc2103 0x4f1f0f0f 0x8000 lpc2000_v2 0x2000
12000 1500
9 }
--
Ø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
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development