Skip to main content
dk_vhd
Associate II
Jan 11, 2009 2:40 AM UTC
Question

using external interrupt in STR912

Posted on January 11, 2009 at 03:40

using external interrupt in STR912

This topic has been closed for replies.

2 replies

dk_vhd
dk_vhdAuthor
Associate II
Jan 11, 2009 2:40 AM UTC
Posted on January 11, 2009 at 03:40

I am a newbie am working on a STR912 development board. I want to use external interrupt for IR interface (such as remote). I am using the following configuration in main function :

GPIO_DeInit(GPIO3);

GPIO_Struct.GPIO_Pin= GPIO_Pin_2;

GPIO_Struct.GPIO_Direction=GPIO_PinInput;

GPIO_Struct.GPIO_Type=GPIO_Type_PushPull;

// GPIO_Struct.GPIO_Alternate = GPIO_InputAlt1;

GPIO_Struct.GPIO_IPConnected = GPIO_IPConnected_Enable;

SCU_WakeUpLineConfig(2);

GPIO_Init(GPIO3,&GPIO_Struct);

I am trying to use EXTIT2() handler function provided in 91x_it.c. However I cannot make it work. How do I setup the code to access this handler ?

Can somebody help please...

Thanks in Advance

Nickname12655_O
Visitor II
Feb 5, 2010 7:09 PM UTC
Posted on February 05, 2010 at 20:09

.