From b39572e17c5b1de096c0b2a5d1ae025dac8c802e Mon Sep 17 00:00:00 2001 From: Gareth McMullin Date: Sun, 22 Apr 2012 12:21:24 +1200 Subject: [PATCH] Correct jtag port init to not interfere with usb vbus detect. --- src/stm32/jtagtap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stm32/jtagtap.c b/src/stm32/jtagtap.c index 4c5bbeb..3703279 100644 --- a/src/stm32/jtagtap.c +++ b/src/stm32/jtagtap.c @@ -31,10 +31,10 @@ int jtagtap_init(void) /* This needs some fixing... */ /* Toggle required to sort out line drivers... */ gpio_port_write(GPIOA, 0x8100); - gpio_port_write(GPIOB, 0x0000); + gpio_port_write(GPIOB, 0x2000); gpio_port_write(GPIOA, 0x8180); - gpio_port_write(GPIOB, 0x0002); + gpio_port_write(GPIOB, 0x2002); gpio_set_mode(JTAG_PORT, GPIO_MODE_OUTPUT_50_MHZ, GPIO_CNF_OUTPUT_PUSHPULL, TMS_PIN);