Re: [Openocd-development] [PATCH 1/3] target: add check_reset hook

2010-01-13 Thread David Brownell
On Wednesday 13 January 2010, Øyvind Harboe wrote: > @@ -5088,6 +5116,14 @@ static const struct command_registration > target_exec_command_handlers[] = { > "and write the 8/16/32 bit values", > .usage = "arrayname bitwidth address count", > }, > +   

[Openocd-development] [PATCH 1/3] target: add check_reset hook

2010-01-13 Thread Øyvind Harboe
Allow targets to run checks post reset. Used to check that e.g. DCC downloads have been enabled. Signed-off-by: Øyvind Harboe --- src/target/target.c | 36 src/target/target.h |4 +++- src/target/target_type.h |7 +++ 3 files changed,

Re: [Openocd-development] [PATCH 1/3] target: add check_reset hook

2010-01-12 Thread David Brownell
On Monday 11 January 2010, Øyvind Harboe wrote: > Allow targets to run checks post reset. Used to check > that e.g. DCC downloads have been enabled. The only thing that bothered me about this is the notion that this hook doesn't seem to be needed for other purposes. Then I realized that it could

[Openocd-development] [PATCH 1/3] target: add check_reset hook

2010-01-11 Thread Øyvind Harboe
Allow targets to run checks post reset. Used to check that e.g. DCC downloads have been enabled. Signed-off-by: Øyvind Harboe --- src/target/target.c | 14 ++ src/target/target_type.h |7 +++ 2 files changed, 21 insertions(+), 0 deletions(-) diff --git a/src/target/ta