From 67f9b2e17e1fd66927bbed3667503065c9129c41 Mon Sep 17 00:00:00 2001 From: QuakeGod <12890699+quakegod@user.noreply.gitee.com> Date: 星期五, 26 五月 2023 10:17:15 +0800 Subject: [PATCH] add README.md. add Readme.md --- Src/BSP.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/Src/BSP.c b/Src/BSP.c index f2e255c..e312c08 100644 --- a/Src/BSP.c +++ b/Src/BSP.c @@ -596,10 +596,11 @@ PA2 ------> USART2_TX PA3 ------> USART2_RX */ + GPIO_InitStruct.Pin = LL_GPIO_PIN_1|LL_GPIO_PIN_2|LL_GPIO_PIN_3; GPIO_InitStruct.Mode = LL_GPIO_MODE_ALTERNATE; GPIO_InitStruct.Speed = LL_GPIO_SPEED_FREQ_HIGH; - GPIO_InitStruct.OutputType = LL_GPIO_OUTPUT_PUSHPULL; + GPIO_InitStruct.OutputType = LL_GPIO_OUTPUT_OPENDRAIN; GPIO_InitStruct.Pull = LL_GPIO_PULL_NO; GPIO_InitStruct.Alternate = LL_GPIO_AF_1; LL_GPIO_Init(GPIOA, &GPIO_InitStruct); -- Gitblit v1.9.1