初级会员

- 积分
- 55
- 金钱
- 55
- 注册时间
- 2015-6-25
- 在线时间
- 7 小时
|
发表于 2016-8-15 17:14:49
|
显示全部楼层
void EXTI15_10_IRQHandler(void) /* Key 2 & 3 */
{
if(EXTI_GetITStatus(EXTI_Line10) != RESET)
{
delay(150000);
if(KEY2IBB == 0)
{
LED2OBB = ~LED2OBB;
//printf("\n\r Key 2 interrupt \n\r");
}
while(KEY2IBB == 0);
delay(150000);
/*Clear the EXTI Line 10 */
EXTI_ClearITPendingBit(EXTI_Line10);
}
if(EXTI_GetITStatus(EXTI_Line13) != RESET)
{
delay(150000);
if(KEY3IBB == 0)
{
LED3OBB = ~LED3OBB;
//printf("\n\r Key 3 interrupt \n\r");
}
while(KEY3IBB == 0);
delay(150000);
/* Clear the EXTI Line 13 */
EXTI_ClearITPendingBit(EXTI_Line13);
}
} |
|