f4discovery: Slow done JTAG pin slew rate to avoid ringing #742

This commit is contained in:
Uwe Bonnes 2020-10-01 13:27:25 +02:00 committed by UweBonnes
parent 38bc5bbf82
commit 747336e927
1 changed files with 4 additions and 1 deletions

View File

@ -81,10 +81,13 @@ void platform_init(void)
TCK_PIN | TDI_PIN);
gpio_mode_setup(JTAG_PORT, GPIO_MODE_INPUT,
GPIO_PUPD_NONE, TMS_PIN);
gpio_set_output_options(JTAG_PORT, GPIO_OTYPE_PP, GPIO_OSPEED_2MHZ,
TCK_PIN | TDI_PIN | TMS_PIN);
gpio_mode_setup(TDO_PORT, GPIO_MODE_INPUT,
GPIO_PUPD_NONE,
TDO_PIN);
gpio_set_output_options(TDO_PORT, GPIO_OTYPE_PP, GPIO_OSPEED_2MHZ,
TDO_PIN| TMS_PIN);
gpio_mode_setup(LED_PORT, GPIO_MODE_OUTPUT,
GPIO_PUPD_NONE,