diff options
author | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-02 23:15:12 +0000 |
---|---|---|
committer | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-02 23:15:12 +0000 |
commit | a5467296097cc0a820da3aad65dcd9de196fc1be (patch) | |
tree | 06fe064c886f05e120a43645e0149179bfb91c9f /src/jtag/zy1000.c | |
parent | 7dc29156fee5d4ae30f65f4c82e8cefde763fe40 (diff) |
Add header file for JTAG minidriver:
- Wraps all minidriver API functions using API front-ends:
- Outlines jtag_add_dr_out() and jtag_alloc_in_value32().
- Adds interface_ prefix to existing jtag_alloc_invalue_32 routines.
- Re-inline these interface definitions in new header file.
- Re-inline parts of the (mini)driver implementations in minidriver.h.
- Replace INCLUDE_JTAG_MINIDRIVER_H with #include directives.
The next patch will finish removing '#ifdef HAVE_JTAG_MINIDRIVER_H'
from jtag.h.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2006 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/jtag/zy1000.c')
-rw-r--r-- | src/jtag/zy1000.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/jtag/zy1000.c b/src/jtag/zy1000.c index 2c196679..73a40f2e 100644 --- a/src/jtag/zy1000.c +++ b/src/jtag/zy1000.c @@ -20,9 +20,9 @@ #include "config.h" #endif -#define INCLUDE_JTAG_MINIDRIVER_H #define INCLUDE_JTAG_INTERFACE_H #include "embeddedice.h" +#include "minidriver.h" #include "bitbang.h" #include <cyg/hal/hal_io.h> // low level i/o @@ -380,19 +380,6 @@ int zy1000_quit(void) } -void interface_jtag_add_scan_check_alloc(scan_field_t *field) -{ - /* We're executing this synchronously, so try to use local storage. */ - if (field->num_bits > 32) - { - unsigned num_bytes = TAP_SCAN_BYTES(field->num_bits); - field->in_value = (u8 *)malloc(num_bytes); - field->allocated = 1; - } - else - field->in_value = field->intmp; -} - int interface_jtag_execute_queue(void) { |