summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-18 13:40:38 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-18 13:40:38 +0000
commit01823f5e0b0a602e1e99d535dbd0ff5a46cf077b (patch)
treeafd3021d256ade7b4795ebd324c2bd7a93e73fd4 /src
parent8f87f8945e4919b9561d8ba8e21f88fbddc76383 (diff)
downloadopenocd+libswd-01823f5e0b0a602e1e99d535dbd0ff5a46cf077b.tar.gz
openocd+libswd-01823f5e0b0a602e1e99d535dbd0ff5a46cf077b.tar.bz2
openocd+libswd-01823f5e0b0a602e1e99d535dbd0ff5a46cf077b.tar.xz
openocd+libswd-01823f5e0b0a602e1e99d535dbd0ff5a46cf077b.zip
less warnings
git-svn-id: svn://svn.berlios.de/openocd/trunk@2288 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src')
-rw-r--r--src/jtag/zy1000/zy1000.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/src/jtag/zy1000/zy1000.c b/src/jtag/zy1000/zy1000.c
index 8f7edc70..f4fee3af 100644
--- a/src/jtag/zy1000/zy1000.c
+++ b/src/jtag/zy1000/zy1000.c
@@ -36,8 +36,6 @@
/* low level command set
*/
-int zy1000_read(void);
-static void zy1000_write(int tck, int tms, int tdi);
void zy1000_reset(int trst, int srst);
@@ -126,18 +124,6 @@ jtag_interface_t zy1000_interface =
.srst_asserted = zy1000_srst_asserted,
};
-static void zy1000_write(int tck, int tms, int tdi)
-{
-
-}
-
-int zy1000_read(void)
-{
- return -1;
-}
-
-extern bool readSRST(void);
-
void zy1000_reset(int trst, int srst)
{
LOG_DEBUG("zy1000 trst=%d, srst=%d", trst, srst);
@@ -426,7 +412,7 @@ static void shiftValueInnerFlip(const tap_state_t state, const tap_state_t endSt
extern int jtag_check_value(uint8_t *captured, void *priv);
-static __inline void scanFields(int num_fields, scan_field_t *fields, tap_state_t shiftState, tap_state_t end_state)
+static __inline void scanFields(int num_fields, const scan_field_t *fields, tap_state_t shiftState, tap_state_t end_state)
{
int i;
int j;
@@ -436,8 +422,6 @@ static __inline void scanFields(int num_fields, scan_field_t *fields, tap_state_
{
cyg_uint32 value;
- static uint8_t *in_buff=NULL; /* pointer to buffer for scanned data */
- static int in_buff_size=0;
uint8_t *inBuffer=NULL;