On Sun, Jan 9, 2011 at 10:53 PM, Freddie Chopin <[email protected]> wrote: > On 2011-01-09 21:34, Øyvind Harboe wrote: >> >> This is a general problem of procedural programming. How >> do you push information into some deep dark fn without >> resorting to global variables? >> >> How about passing the reset-init sequence(or part of it) as an >> argument? >> >> # this proc takes an initsequence as an argument >> proc someproc {initsequence} { >> } >> >> someproc { >> mww xxx >> wmw yyy >> } >> >>> The same would be true for names like $_FLASHNAME and so on. >> >> Rather than exporting the target& flash name, push the >> information down into the proc's that need it. > > You suggest a scheme of "registering" such handlers (like reset init) with > special functions?
I don't think so, I'm not sure what you mean. -- Ø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
