Skip to main content
stm32239955_st
Associate
February 5, 2010
Question

EXTI detection on STM32F103VET6

  • February 5, 2010
  • 2 replies
  • 625 views
Posted on February 05, 2010 at 09:47

EXTI detection on STM32F103VET6

    This topic has been closed for replies.

    2 replies

    stm32239955_st
    Associate
    May 17, 2011
    Posted on May 17, 2011 at 13:39

    Hi Edison,

    thanks for your replay.

    I already used GPIO_EXTILineConfig(port, pin) to set up the right port pin. But this was not working. After a closer look on this function i found that the parameter are not port and pin, i.e. GPIOB and GPIO_Pin_7. Instead of this they have to be GPIO_PortSourceGPIOB and GPIO_PinSource7 in this case. And with this it works like expected.

    I was only a bit confused because the function was working (or even not working) with the wrong parameters without any error message. I would have expect a compiler error.

    Best regards

    Tom

    Tomas DRESLER
    Associate II
    May 17, 2011
    Posted on May 17, 2011 at 13:39

    Seems you get interrupts from port A, huh?

    Use GPIO_EXTILineConfig(port, pin) to configure the mapping right.