aboutsummaryrefslogtreecommitdiff
path: root/src/stm32/jtagtap.c
diff options
context:
space:
mode:
authorGareth McMullin2012-01-08 18:42:24 +1300
committerGareth McMullin2012-01-08 18:49:58 +1300
commit7e0de5b86b654842c85e38bd36b22fe4176068bf (patch)
tree5c65fd36619be039978ddb35ed789e91951d8a44 /src/stm32/jtagtap.c
parent7c6317a426d118967a9a4d9d7f5149e6c5b8c764 (diff)
Inline GPIO functions and optimise for speed.
This gives a modest but measurable performance improvement.
Diffstat (limited to 'src/stm32/jtagtap.c')
-rw-r--r--src/stm32/jtagtap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/stm32/jtagtap.c b/src/stm32/jtagtap.c
index ee00eef..4c5bbeb 100644
--- a/src/stm32/jtagtap.c
+++ b/src/stm32/jtagtap.c
@@ -20,7 +20,6 @@
/* This file implements the low-level JTAG TAP interface. */
-#include <libopencm3/stm32/f1/gpio.h>
#include <stdio.h>
#include "general.h"
@@ -37,7 +36,7 @@ int jtagtap_init(void)
gpio_port_write(GPIOA, 0x8180);
gpio_port_write(GPIOB, 0x0002);
- gpio_set_mode(JTAG_PORT, GPIO_MODE_OUTPUT_10_MHZ,
+ gpio_set_mode(JTAG_PORT, GPIO_MODE_OUTPUT_50_MHZ,
GPIO_CNF_OUTPUT_PUSHPULL, TMS_PIN);
/* Go to JTAG mode for SWJ-DP */