GPIO的main.c测试程序内有这样一段代码:
EXTI_InitStructure.EXTI_Line = EXTI_Line9;
EXTI_InitStructure.EXTI_Mode = EXTI_Mode_Interrupt;
EXTI_InitStructure.EXTI_Trigger = EXTI_Trigger_Falling;
EXTI_InitStructure.EXTI_LineCmd = ENABLE;
EXTI_Init(&EXTI_InitStructure);
设置中断寄存器,而EXTI_Init()的函数中有如下代码:
if (EXTI_InitStruct->!= DISABLE
{
/* Clear EXTI line configuration */ |