解决中断冲突

This commit is contained in:
2025-03-12 15:03:24 +08:00
parent 145dde360e
commit 84ad34d5f1
20 changed files with 164 additions and 116 deletions

View File

@ -51,7 +51,7 @@ void MX_GPIO_Init(void)
/*Configure GPIO pin : PA0 */
GPIO_InitStruct.Pin = GPIO_PIN_0;
GPIO_InitStruct.Mode = GPIO_MODE_IT_RISING;
GPIO_InitStruct.Mode = GPIO_MODE_IT_FALLING;
GPIO_InitStruct.Pull = GPIO_NOPULL;
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);