Am 01/07/2011 05:18 PM, schrieb Øyvind Harboe:
> 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.
Like this?
proc flash_boot { {FILE "/tftpboot/actux3/u-boot.bin"} } {
echo "writing bootloader: $FILE"
flash write_image erase $FILE 0x50000000 bin
}
(from actux3.cfg - works fine).
cu
Michael
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development