revise GPIO pull up instead of nopull

This commit is contained in:
Yunhorn 2024-04-15 16:39:29 +08:00
parent b3b210bb53
commit 00958c56eb
2 changed files with 1 additions and 1 deletions

View File

@ -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

Binary file not shown.