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>
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user