summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2010-06-18 14:30:26 +0800
committerØyvind Harboe <oyvind.harboe@zylin.com>2010-06-18 10:03:40 +0200
commitb8f8d756a255936ccfb60ac3dda076e4e06108a6 (patch)
tree707526e1e8bac479417d933fa6aaae641239684f
parent2319caff7d9ddf27311a9d592f6d143d71cd5602 (diff)
downloadopenocd_libswd-b8f8d756a255936ccfb60ac3dda076e4e06108a6.tar.gz
openocd_libswd-b8f8d756a255936ccfb60ac3dda076e4e06108a6.tar.bz2
openocd_libswd-b8f8d756a255936ccfb60ac3dda076e4e06108a6.tar.xz
openocd_libswd-b8f8d756a255936ccfb60ac3dda076e4e06108a6.zip
target/dsp563xx: review unused symbols
Remove unused functions: - dsp563xx_jtag_senddat - dsp563xx_write_ir_u16 - dsp563xx_write_dr_u16 - dsp563xx_write_ir_u32 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
-rw-r--r--src/target/dsp563xx.c50
-rw-r--r--src/target/dsp563xx.h6
2 files changed, 0 insertions, 56 deletions
diff --git a/src/target/dsp563xx.c b/src/target/dsp563xx.c
index 48e559ea..a454c769 100644
--- a/src/target/dsp563xx.c
+++ b/src/target/dsp563xx.c
@@ -51,8 +51,6 @@ static int dsp563xx_write_ir_u8(struct jtag_tap *tap, uint8_t * ir_in, uint8_t i
/* IR and DR functions */
static int dsp563xx_jtag_sendinstr(struct jtag_tap *tap, uint8_t * ir_in, uint8_t ir_out);
-int dsp563xx_jtag_senddat(struct jtag_tap *tap, uint32_t * dr_in, uint32_t dr_out,
- int len);
#define ASM_REG_R_R0 0x607000
#define ASM_REG_R_R1 0x617000
@@ -819,12 +817,6 @@ static int dsp563xx_write_memory_p(struct target *target, uint32_t address, uint
return ERROR_OK;
}
-int dsp563xx_jtag_senddat(struct jtag_tap *tap, uint32_t * dr_in, uint32_t dr_out,
- int len)
-{
- return dsp563xx_write_dr_u32(tap, dr_in, dr_out, len, 1);
-}
-
static int dsp563xx_jtag_sendinstr(struct jtag_tap *tap, uint8_t * ir_in, uint8_t ir_out)
{
return dsp563xx_write_ir_u8(tap, ir_in, ir_out, DSP563XX_JTAG_INS_LEN, 1);
@@ -896,48 +888,6 @@ int dsp563xx_write_dr_u8(struct jtag_tap *tap, uint8_t * dr_in, uint8_t dr_out,
return ERROR_OK;
}
-int dsp563xx_write_ir_u16(struct jtag_tap *tap, uint16_t * ir_in, uint16_t ir_out,
- int ir_len, int rti)
-{
- if (ir_len > 16)
- {
- LOG_ERROR("ir_len overflow, maxium is 16");
- return ERROR_FAIL;
- }
-
- dsp563xx_write_ir(tap, (uint8_t *) ir_in, (uint8_t *) & ir_out, ir_len, rti);
-
- return ERROR_OK;
-}
-
-int dsp563xx_write_dr_u16(struct jtag_tap *tap, uint16_t * dr_in, uint16_t dr_out,
- int dr_len, int rti)
-{
- if (dr_len > 16)
- {
- LOG_ERROR("dr_len overflow, maxium is 16");
- return ERROR_FAIL;
- }
-
- dsp563xx_write_dr(tap, (uint8_t *) dr_in, (uint8_t *) & dr_out, dr_len, rti);
-
- return ERROR_OK;
-}
-
-int dsp563xx_write_ir_u32(struct jtag_tap *tap, uint32_t * ir_in, uint32_t ir_out,
- int ir_len, int rti)
-{
- if (ir_len > 32)
- {
- LOG_ERROR("ir_len overflow, maxium is 32");
- return ERROR_FAIL;
- }
-
- dsp563xx_write_ir(tap, (uint8_t *) ir_in, (uint8_t *) & ir_out, ir_len, rti);
-
- return ERROR_OK;
-}
-
int dsp563xx_write_dr_u32(struct jtag_tap *tap, uint32_t * dr_in, uint32_t dr_out,
int dr_len, int rti)
{
diff --git a/src/target/dsp563xx.h b/src/target/dsp563xx.h
index 3258faab..f8070fa7 100644
--- a/src/target/dsp563xx.h
+++ b/src/target/dsp563xx.h
@@ -68,12 +68,6 @@ static inline struct dsp563xx_common *target_to_dsp563xx(struct target *target)
int dsp563xx_write_dr_u8(struct jtag_tap *tap, uint8_t * ir_in, uint8_t ir_out,
int dr_len, int rti);
-int dsp563xx_write_ir_u16(struct jtag_tap *tap, uint16_t * ir_in, uint16_t ir_out,
- int ir_len, int rti);
-int dsp563xx_write_dr_u16(struct jtag_tap *tap, uint16_t * ir_in, uint16_t ir_out,
- int dr_len, int rti);
-int dsp563xx_write_ir_u32(struct jtag_tap *tap, uint32_t * ir_in, uint32_t ir_out,
- int ir_len, int rti);
int dsp563xx_write_dr_u32(struct jtag_tap *tap, uint32_t * ir_in, uint32_t ir_out,
int dr_len, int rti);