gpio_clock creates n clock pulses by writing 0, 1, 0 n times this patch optimizes things by writing 0, 1 n times followed by a final 0. Improves performance slightly if n > 1
Signed-off-by: Frans Meulenbroeks <[email protected]> --- urjtag/src/tap/cable/gpio.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/urjtag/src/tap/cable/gpio.c b/urjtag/src/tap/cable/gpio.c index 6be232b..b9e875a 100644 --- a/urjtag/src/tap/cable/gpio.c +++ b/urjtag/src/tap/cable/gpio.c @@ -339,8 +339,8 @@ gpio_clock (urj_cable_t *cable, int tms, int tdi, int n) { gpio_set_value (p->fp_gpios[GPIO_TCK], 0); gpio_set_value (p->fp_gpios[GPIO_TCK], 1); - gpio_set_value (p->fp_gpios[GPIO_TCK], 0); } + gpio_set_value (p->fp_gpios[GPIO_TCK], 0); } static int -- 1.7.0.4 ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ UrJTAG-development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/urjtag-development
