title: STM32L-Discovery EXTI Interrupt fail
body: <p>working on STM32L151xx on IAR compiler.</p>
  
  <p>I am trying getting EXTI interrupt but getting nowhere, here is my code which is basically direct from sample codes but not working, </p>
  
  <pre><code>  EXTI_InitTypeDef EXTI_InitStructure;
    NVIC_InitTypeDef NVIC_InitStructure;
    GPIO_InitTypeDef GPIO_InitStructure;
    GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN;
    GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_NOPULL;
    GPIO_InitStructure.GPIO_Pin = GPIO_Pin_10;
    GPIO_Init(GPIOA, &amp;GPIO_InitStructure);
    RCC_APB2PeriphClockCmd(RCC_APB2Periph_SYSCFG, ENABLE);
    SYSCFG_EXTILineConfig(EXTI_PortSourceGPIOA, EXTI_PinSource10);
    EXTI_InitStructure.EXTI_Line = EXTI_Line1;
    EXTI_InitStructure.EXTI_Mode = EXTI_Mode_Interrupt;
    EXTI_InitStructure.EXTI_Trigger = EXTI_Trigger_Rising_Falling;  
    EXTI_InitStructure.EXTI_LineCmd = ENABLE;
    EXTI_Init(&amp;EXTI_InitStructure);
    NVIC_InitStructure.NVIC_IRQChannel = EXTI1_IRQn;
    NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 1;//0x0F;
    NVIC_InitStructure.NVIC_IRQChannelSubPriority = 1;//0x0F;
    NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;
    NVIC_Init(&amp;NVIC_InitStructure);
    EXTI_GenerateSWInterrupt(EXTI_Line1);
  </code></pre>
  
  <p>When I HIGH the PA10 pin, I get no software interrupt, The code does not goes to <code>EXTI1_IRQHandler()</code>, What seems to be missing?
  <strong>Edit</strong>
  On <code>EXTI_GetFlagStatus</code> I am getting 0
  and <code>EXTI_GETITStatus</code> I am getting 0</p>