外部中断线一共不是有16根对吧,对应16个引脚,比如说我要配置PD13,PD10这两根作为外部终端输入线,那么怎么配置啊,好像中断线配置里面把5-9连在一起了,而10-15又连在一起了,
NVIC_InitStructure.NVIC_IRQChannel = EXTI15_10_IRQn; //通道
NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 1;//
NVIC_InitStructure.NVIC_IRQChannelSubPriority = 1;
NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;
NVIC_Init(&NVIC_InitStructure);
NVIC_InitStructure.NVIC_IRQChannel = EXTI15_10_IRQn; //通道
NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 1;//
NVIC_InitStructure.NVIC_IRQChannelSubPriority = 2;
NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;
NVIC_Init(&NVIC_InitStructure);
可是这样写芯片怎么知道是PD10,和PD13呢?求解释啊!!!!!!!! |