上拉引脚

Signed-off-by: kevin <kevin@lmve.net>
This commit is contained in:
2022-03-28 23:04:05 +08:00
parent 6210daa445
commit c42d351bfa
3 changed files with 8 additions and 5 deletions
+1 -1
View File
@@ -326,7 +326,7 @@ static void MX_GPIO_Init(void)
/*Configure GPIO pins : tack_A_Pin tack_B_Pin */
GPIO_InitStruct.Pin = tack_A_Pin|tack_B_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Pull = GPIO_PULLUP;
HAL_GPIO_Init(GPIOF, &GPIO_InitStruct);
/*Configure GPIO pin : charge_det_Pin */