aboutsummaryrefslogtreecommitdiff
path: root/src/target/target.h
diff options
context:
space:
mode:
authorDavid Brownell <dbrownell@users.sourceforge.net>2009-11-27 18:50:20 -0800
committerDavid Brownell <dbrownell@users.sourceforge.net>2009-11-27 18:50:20 -0800
commit4e56a2303b3f68bb647d8bb640a830f7f21ea231 (patch)
tree87df3a19a84c9fa5b591043e2451db68e26550cd /src/target/target.h
parent4d2750e571b6a3f700cd95542a4bb5c7949e476c (diff)
downloadriscv-openocd-4e56a2303b3f68bb647d8bb640a830f7f21ea231.zip
riscv-openocd-4e56a2303b3f68bb647d8bb640a830f7f21ea231.tar.gz
riscv-openocd-4e56a2303b3f68bb647d8bb640a830f7f21ea231.tar.bz2
target: groundwork for "reset-assert" event
This defines a "reset-assert" event and a supporting utility routine, and documents both how targets should implement it and how config scripts should use it. Core-specific updates are needed to make this work. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src/target/target.h')
-rw-r--r--src/target/target.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/target/target.h b/src/target/target.h
index 15003c6..55e9088 100644
--- a/src/target/target.h
+++ b/src/target/target.h
@@ -196,6 +196,7 @@ enum target_event
TARGET_EVENT_RESET_START,
TARGET_EVENT_RESET_ASSERT_PRE,
+ TARGET_EVENT_RESET_ASSERT, /* C code uses this instead of SRST */
TARGET_EVENT_RESET_ASSERT_POST,
TARGET_EVENT_RESET_DEASSERT_PRE,
TARGET_EVENT_RESET_DEASSERT_POST,
@@ -226,7 +227,9 @@ struct target_event_action {
struct Jim_Obj *body;
int has_percent;
struct target_event_action *next;
- };
+};
+
+bool target_has_event_action(struct target *target, enum target_event event);
struct target_event_callback
{