Consolidate target selection code into single get_target() that handles both names and numbers. Provided by David Brownell <david-b@pacbell.net>
git-svn-id: svn://svn.berlios.de/openocd/trunk@1804 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
@@ -371,7 +371,7 @@ extern int target_call_timer_callbacks_now(void);
|
||||
|
||||
extern target_t* get_current_target(struct command_context_s *cmd_ctx);
|
||||
extern int get_num_by_target(target_t *query_target);
|
||||
extern target_t* get_target_by_num(int num);
|
||||
extern target_t *get_target(const char *id);
|
||||
|
||||
extern int target_write_buffer(struct target_s *target, u32 address, u32 size, u8 *buffer);
|
||||
extern int target_read_buffer(struct target_s *target, u32 address, u32 size, u8 *buffer);
|
||||
|
||||
Reference in New Issue
Block a user