Encapsulate the global "jtag" jtag_interface pointer:
- Add jtag_interface_quit, factored from exit_handler() in openocd.c. - Remove its extern declaration. - Add static keyword to its definition. git-svn-id: svn://svn.berlios.de/openocd/trunk@1952 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
@@ -512,8 +512,6 @@ typedef struct jtag_event_callback_s
|
||||
|
||||
extern jtag_event_callback_t* jtag_event_callbacks;
|
||||
|
||||
extern jtag_interface_t* jtag; /* global pointer to configured JTAG interface */
|
||||
|
||||
extern int jtag_speed;
|
||||
extern int jtag_speed_post_reset;
|
||||
|
||||
@@ -535,6 +533,9 @@ extern enum reset_types jtag_reset_config;
|
||||
*/
|
||||
extern int jtag_interface_init(struct command_context_s* cmd_ctx);
|
||||
|
||||
/// Shutdown the JTAG interface upon program exit.
|
||||
extern int jtag_interface_quit(void);
|
||||
|
||||
/* initialize JTAG chain using only a RESET reset. If init fails,
|
||||
* try reset + init.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user