revise GPIO pull up instead of nopull
This commit is contained in:
parent
b3b210bb53
commit
00958c56eb
|
@ -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.
Loading…
Reference in New Issue