CH32V208C的PA8,PA11可以作為外部中斷配置成下降沿或者上升沿觸發(fā)嗎?
在例程里沒有EXTI8_IRQn
? ? GPIO_InitStructure.GPIO_Pin = GPIO_Pin_8;
? ? GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IPU;
? ? GPIO_Init(GPIOA, &GPIO_InitStructure);
? ? /* GPIOA ----> EXTI_Line0 */
? ? GPIO_EXTILineConfig(GPIO_PortSourceGPIOA, GPIO_PinSource8);
? ? EXTI_InitStructure.EXTI_Line = EXTI_Line8;
? ? EXTI_InitStructure.EXTI_Mode = EXTI_Mode_Interrupt;
? ? EXTI_InitStructure.EXTI_Trigger = EXTI_Trigger_Falling;
? ? EXTI_InitStructure.EXTI_LineCmd = ENABLE;
? ? EXTI_Init(&EXTI_InitStructure);
? ? NVIC_InitStructure.NVIC_IRQChannel = EXTI8_IRQn;
? ? NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 0;
? ? NVIC_InitStructure.NVIC_IRQChannelSubPriority = 2;
? ? NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;
? ? NVIC_Init(&NVIC_InitStructure);