From 00958c56ebc4c386523218fb51e25b5c0e66597f Mon Sep 17 00:00:00 2001 From: YunHorn Technology Date: Mon, 15 Apr 2024 16:39:29 +0800 Subject: [PATCH] revise GPIO pull up instead of nopull --- Core/Src/gpio.c | 2 +- STM32CubeIDE/Release/STS_O7.bin | Bin 253488 -> 253488 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/Src/gpio.c b/Core/Src/gpio.c index 679c1cb..c24b8dc 100644 --- a/Core/Src/gpio.c +++ b/Core/Src/gpio.c @@ -83,7 +83,7 @@ void MX_GPIO_Init(void) #ifdef STS_O7 GPIO_InitStruct.Pin = HALL1_Pin|HALL2_Pin; GPIO_InitStruct.Mode = GPIO_MODE_IT_RISING_FALLING; - GPIO_InitStruct.Pull = GPIO_NOPULL; + GPIO_InitStruct.Pull = GPIO_PULLUP; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); #else diff --git a/STM32CubeIDE/Release/STS_O7.bin b/STM32CubeIDE/Release/STS_O7.bin index 70d4951adbe74be453d74dcf8ba12b45d0b8d941..ba411ab3d267c0365fcd22f453645da600785296 100644 GIT binary patch delta 28 hcmdn6hkpYQUDam{Z@#AAeodbdh?%xu(`Sxa2LQd93~c}a delta 28 hcmdn6hkpYQUDaoFZ@#AAeodbdh?%xu(`Sxa2LQZz3|#;K