diff options
author | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-02 04:55:05 +0000 |
---|---|---|
committer | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-02 04:55:05 +0000 |
commit | 76bd16e9e343b3ac10245a9b76c032b10596bd6d (patch) | |
tree | 197ef4ebd795f759b6b7ec4749bc656bee9e2591 /src | |
parent | d0a6db31a3d4c7691a6eedc04cd2b883322f6b73 (diff) | |
download | openocd+libswd-76bd16e9e343b3ac10245a9b76c032b10596bd6d.tar.gz openocd+libswd-76bd16e9e343b3ac10245a9b76c032b10596bd6d.tar.bz2 openocd+libswd-76bd16e9e343b3ac10245a9b76c032b10596bd6d.tar.xz openocd+libswd-76bd16e9e343b3ac10245a9b76c032b10596bd6d.zip |
Encapsulate JTAG command interfaces for moving to jtag_interface.h.
git-svn-id: svn://svn.berlios.de/openocd/trunk@1991 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src')
-rw-r--r-- | src/jtag/jtag.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/jtag/jtag.h b/src/jtag/jtag.h index a0ee427f..4a1be9fc 100644 --- a/src/jtag/jtag.h +++ b/src/jtag/jtag.h @@ -279,6 +279,8 @@ typedef struct scan_field_s u8 intmp[4]; /* temporary storage for checking synchronously */ } scan_field_t; +#ifdef INCLUDE_JTAG_INTERFACE_H + enum scan_type { /* IN: from device to host, OUT: from host to device */ SCAN_IN = 1, SCAN_OUT = 2, SCAN_IO = 3 @@ -363,6 +365,8 @@ typedef struct jtag_command_s extern jtag_command_t* jtag_command_queue; +#endif // INCLUDE_JTAG_INTERFACE_H + /* forward declaration */ typedef struct jtag_tap_event_action_s jtag_tap_event_action_t; @@ -804,10 +808,13 @@ extern int jtag_srst_asserted(int* srst_asserted); /* execute jtag queue and check value and use mask if mask is != NULL. invokes * jtag_set_error() with any error. */ extern void jtag_check_value_mask(scan_field_t *field, u8 *value, u8 *mask); + +#ifdef INCLUDE_JTAG_INTERFACE_H extern enum scan_type jtag_scan_type(const scan_command_t* cmd); extern int jtag_scan_size(const scan_command_t* cmd); extern int jtag_read_buffer(u8* buffer, const scan_command_t* cmd); extern int jtag_build_buffer(const scan_command_t* cmd, u8** buffer); +#endif // INCLUDE_JTAG_INTERFACE_H extern void jtag_sleep(u32 us); extern int jtag_call_event_callbacks(enum jtag_event event); |