初级会员

- 积分
- 157
- 金钱
- 157
- 注册时间
- 2013-5-30
- 在线时间
- 0 小时
|

楼主 |
发表于 2013-6-4 15:16:47
|
显示全部楼层
回复【3楼】aleda303:
---------------------------------
static void NVIC_Configuration(void)
{
NVIC_InitTypeDef NVIC_InitStructure;
/* Configure one bit for preemption priority */
NVIC_PriorityGroupConfig(NVIC_PriorityGroup_1);
/* 配置P[A|B|C|D|E]5为中断源 */
NVIC_InitStructure.NVIC_IRQChannel = EXTI9_5_IRQn;
NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 0;
NVIC_InitStructure.NVIC_IRQChannelSubPriority = 0;
NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;
NVIC_Init(&NVIC_InitStructure);
}
就是配置这个外部中断的时候 |
|