diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-04-21 05:29:23 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-04-21 05:29:23 +0000 |
commit | d2d75efb3929b0067f7dcb6f9973ec8c47948135 (patch) | |
tree | aad5fcb1f187a39c40824f14314b196f1416d5b0 /src/jtag/bitbang.c | |
parent | 81f9e0a0bce7a3446949d9280208a6f9e9b13bcf (diff) | |
download | riscv-openocd-d2d75efb3929b0067f7dcb6f9973ec8c47948135.zip riscv-openocd-d2d75efb3929b0067f7dcb6f9973ec8c47948135.tar.gz riscv-openocd-d2d75efb3929b0067f7dcb6f9973ec8c47948135.tar.bz2 |
Zach Welch <zw@superlucidity.net> use static keyword in jtag layer and drivers
git-svn-id: svn://svn.berlios.de/openocd/trunk@1479 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/jtag/bitbang.c')
-rw-r--r-- | src/jtag/bitbang.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/jtag/bitbang.c b/src/jtag/bitbang.c index 44e8898..fe5f86c 100644 --- a/src/jtag/bitbang.c +++ b/src/jtag/bitbang.c @@ -71,12 +71,9 @@ bitbang_interface_t *bitbang_interface; */ #define CLOCK_IDLE() 0 -int bitbang_execute_queue(void); - /* The bitbang driver leaves the TCK 0 when in idle */ - -void bitbang_end_state(tap_state_t state) +static void bitbang_end_state(tap_state_t state) { if (tap_is_state_stable(state)) tap_set_end_state(state); @@ -87,7 +84,7 @@ void bitbang_end_state(tap_state_t state) } } -void bitbang_state_move(void) +static void bitbang_state_move(void) { int i=0, tms=0; u8 tms_scan = tap_get_tms_path(tap_get_state(), tap_get_end_state()); @@ -103,7 +100,7 @@ void bitbang_state_move(void) tap_set_state(tap_get_end_state()); } -void bitbang_path_move(pathmove_command_t *cmd) +static void bitbang_path_move(pathmove_command_t *cmd) { int num_states = cmd->num_states; int state_count; @@ -139,7 +136,7 @@ void bitbang_path_move(pathmove_command_t *cmd) tap_set_end_state(tap_get_state()); } -void bitbang_runtest(int num_cycles) +static void bitbang_runtest(int num_cycles) { int i; @@ -182,7 +179,7 @@ static void bitbang_stableclocks(int num_cycles) -void bitbang_scan(int ir_scan, enum scan_type type, u8 *buffer, int scan_size) +static void bitbang_scan(int ir_scan, enum scan_type type, u8 *buffer, int scan_size) { tap_state_t saved_end_state = tap_get_end_state(); int bit_cnt; |