projects
/
fw
/
openocd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
arm_adi_v5: drop ANY_ID from table dap_part_nums
[fw/openocd]
/
src
/
target
/
avr32_jtag.c
diff --git
a/src/target/avr32_jtag.c
b/src/target/avr32_jtag.c
index 64ebf12ba34cc67f213a91c3cebe0106ecb0c0a3..a23ddf7b1c70a9f473897958c6e200c083126498 100644
(file)
--- a/
src/target/avr32_jtag.c
+++ b/
src/target/avr32_jtag.c
@@
-29,7
+29,7
@@
static int avr32_jtag_set_instr(struct avr32_jtag *jtag_info, int new_instr)
int busy = 0;
tap = jtag_info->tap;
int busy = 0;
tap = jtag_info->tap;
- if (
tap == NULL
)
+ if (
!tap
)
return ERROR_FAIL;
if (buf_get_u32(tap->cur_instr, 0, tap->ir_length) != (uint32_t)new_instr) {
return ERROR_FAIL;
if (buf_get_u32(tap->cur_instr, 0, tap->ir_length) != (uint32_t)new_instr) {
@@
-55,7
+55,7
@@
static int avr32_jtag_set_instr(struct avr32_jtag *jtag_info, int new_instr)
return ERROR_OK;
}
return ERROR_OK;
}
-int avr32_jtag_nexus_set_address(struct avr32_jtag *jtag_info,
+
static
int avr32_jtag_nexus_set_address(struct avr32_jtag *jtag_info,
uint32_t addr, int mode)
{
struct scan_field fields[2];
uint32_t addr, int mode)
{
struct scan_field fields[2];
@@
-92,7
+92,7
@@
int avr32_jtag_nexus_set_address(struct avr32_jtag *jtag_info,
}
}
-int avr32_jtag_nexus_read_data(struct avr32_jtag *jtag_info,
+
static
int avr32_jtag_nexus_read_data(struct avr32_jtag *jtag_info,
uint32_t *pdata)
{
uint32_t *pdata)
{
@@
-129,7
+129,7
@@
int avr32_jtag_nexus_read_data(struct avr32_jtag *jtag_info,
return ERROR_OK;
}
return ERROR_OK;
}
-int avr32_jtag_nexus_write_data(struct avr32_jtag *jtag_info,
+
static
int avr32_jtag_nexus_write_data(struct avr32_jtag *jtag_info,
uint32_t data)
{
uint32_t data)
{
@@
-184,7
+184,7
@@
int avr32_jtag_nexus_write(struct avr32_jtag *jtag_info,
return avr32_jtag_nexus_write_data(jtag_info, value);
}
return avr32_jtag_nexus_write_data(jtag_info, value);
}
-int avr32_jtag_mwa_set_address(struct avr32_jtag *jtag_info, int slave,
+
static
int avr32_jtag_mwa_set_address(struct avr32_jtag *jtag_info, int slave,
uint32_t addr, int mode)
{
struct scan_field fields[2];
uint32_t addr, int mode)
{
struct scan_field fields[2];
@@
-223,7
+223,7
@@
int avr32_jtag_mwa_set_address(struct avr32_jtag *jtag_info, int slave,
return ERROR_OK;
}
return ERROR_OK;
}
-int avr32_jtag_mwa_read_data(struct avr32_jtag *jtag_info,
+
static
int avr32_jtag_mwa_read_data(struct avr32_jtag *jtag_info,
uint32_t *pdata)
{
uint32_t *pdata)
{
@@
-260,7
+260,7
@@
int avr32_jtag_mwa_read_data(struct avr32_jtag *jtag_info,
return ERROR_OK;
}
return ERROR_OK;
}
-int avr32_jtag_mwa_write_data(struct avr32_jtag *jtag_info,
+
static
int avr32_jtag_mwa_write_data(struct avr32_jtag *jtag_info,
uint32_t data)
{
uint32_t data)
{