修复编码器bug

Signed-off-by: kevin <kevin@lmve.net>
This commit is contained in:
2022-08-11 19:23:50 +08:00
parent f2feab9cbb
commit 0188e7ae9c
13 changed files with 1477 additions and 1477 deletions
+2 -8
View File
@@ -320,8 +320,8 @@ static void MX_GPIO_Init(void)
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
HAL_GPIO_Init(mute_GPIO_Port, &GPIO_InitStruct);
/*Configure GPIO pins : tack_a_Pin tack_b_Pin en_c_Pin */
GPIO_InitStruct.Pin = tack_a_Pin|tack_b_Pin|en_c_Pin;
/*Configure GPIO pins : tack_a_Pin tack_b_Pin en_c_Pin en_a_Pin */
GPIO_InitStruct.Pin = tack_a_Pin|tack_b_Pin|en_c_Pin|en_a_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_IT_RISING_FALLING;
GPIO_InitStruct.Pull = GPIO_PULLUP;
HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
@@ -347,12 +347,6 @@ static void MX_GPIO_Init(void)
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
HAL_GPIO_Init(pwr_en_GPIO_Port, &GPIO_InitStruct);
/*Configure GPIO pin : en_a_Pin */
GPIO_InitStruct.Pin = en_a_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_IT_RISING;
GPIO_InitStruct.Pull = GPIO_PULLUP;
HAL_GPIO_Init(en_a_GPIO_Port, &GPIO_InitStruct);
/*Configure GPIO pin : en_b_Pin */
GPIO_InitStruct.Pin = en_b_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;