This commit is contained in:
qiyongshuang
2024-05-09 16:45:21 +08:00
parent 3ae6808745
commit eec5b06019
25 changed files with 1814 additions and 29 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ void TIM3_Encoder_Init()
GPIO_InitTypeDef GPIO_InitStructure;
NVIC_InitTypeDef NVIC_InitStructure;
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOC, ENABLE);
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA, ENABLE);
RCC_APB1PeriphClockCmd(RCC_APB1Periph_TIM3, ENABLE);
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_6 | GPIO_Pin_7;