cancel
Showing results for 
Search instead for 
Did you mean: 

EXTI detection on STM32F103VET6

stm32239955_st
Associate
Posted on February 05, 2010 at 09:47

EXTI detection on STM32F103VET6

2 REPLIES 2
Tomas DRESLER
Senior II
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.

stm32239955_st
Associate
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