获取引脚信号

Signed-off-by: kevin <kevin@lmve.net>
This commit is contained in:
2022-03-28 11:41:27 +08:00
parent e96e31d399
commit 1a4632417a
7 changed files with 231 additions and 11 deletions
+2 -2
View File
@@ -350,8 +350,8 @@ static void MX_GPIO_Init(void)
/*Configure GPIO pin : SW_C_Pin */
GPIO_InitStruct.Pin = SW_C_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_IT_RISING;
GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
GPIO_InitStruct.Pull = GPIO_PULLUP;
HAL_GPIO_Init(SW_C_GPIO_Port, &GPIO_InitStruct);
}