EXTI_Configuration(void)
代码说明:
STM32F103C8T6自编简单中断程序,以及中断优先级,每行代码都有中文注释,十分好理解(void EXTI_Configuration(void) { EXTI_InitTypeDef EXTI_InitStructure EXTI_ClearITPendingBit(EXTI_Line8) GPIO_EXTILineConfig(GPIO_PortSourceGPIOB, 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) })
下载说明:请别用迅雷下载,失败请重下,重下不扣分!