下面是对第1步的讲解:使能系统配置控制器时钟 使能SYSCFG时种函数传入的第一个参数:RCC_APB2Periph_SYSCFG 配置RCC_APB2ENR寄存器手册:寄存器绝对地址及位 RCC_APB2ENR寄存器地址头文件部分: 第5步配置中断优先分组NVIC详解 第2步初始GPIO详解 第3步io口与中断线映射详解 第7步配置外部中断线--EXTIX_Init函数注解