Fixed configuration of JTAG signals.

This commit is contained in:
Gareth McMullin 2011-02-05 12:24:13 +13:00
parent 69d790fcf6
commit d0a1c7f4df
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ int jtagtap_init(void)
gpio_port_write(GPIOA, 0x8180);
gpio_port_write(GPIOB, 0x0002);
gpio_set_mode(JTAG_PORT, GPIO_MODE_OUTPUT_2_MHZ,
gpio_set_mode(JTAG_PORT, GPIO_MODE_OUTPUT_10_MHZ,
GPIO_CNF_OUTPUT_PUSHPULL, TMS_PIN);
/* Go to JTAG mode for SWJ-DP */

View File

@ -67,7 +67,7 @@ platform_init(void)
gpio_set_mode(JTAG_PORT, GPIO_MODE_OUTPUT_10_MHZ,
GPIO_CNF_OUTPUT_PUSHPULL,
TMS_PIN | TCK_PIN | TDO_PIN);
TMS_PIN | TCK_PIN | TDI_PIN);
gpio_set_mode(LED_PORT, GPIO_MODE_OUTPUT_2_MHZ,
GPIO_CNF_OUTPUT_PUSHPULL,